Error in `[<-`(`*tmp*`, i, trimer, value = beep[trimer]) : subscript out of bounds in R -


i trying read file , run function mut.to.sigs.input (library: deconstructsigs). when use following commands sample_1 runs fine,

x<- read.table("sample_1.txt", sep="\t",   header=true) head(x)   sample  chr       pos ref alt 1      4 chr1 115227854   t   2      4 chr1 115227854   t   c 3      4 chr1 115227855   t   4      4 chr1 115227855   t   c sigs.input <- mut.to.sigs.input(mut.ref = x, sample.id = "sample", chr = "chr", pos = "pos",  ref = "ref", alt = "alt")                             

but similar file sample_2.txt gives me following error

error in `[<-`(`*tmp*`, i, trimer, value = beep[trimer]) : subscript out of bounds 

i looked other posts similar error, not solution. can suggest going on here?

dput sample_1.txt , sample_2.txt


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -