This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error running ExomeDepth

Hello I'm testing ExomeDepth and I'm doing the tutorial from ExomeDepth-vignette, when I'm creating my reference set I write:

my.choice<-select.reference.set(test.counts=my.matrix[,i],
                                  reference.counts= my.matrix[,-i],
                                  bin.length= (ExomeCount.dafr$end - ExomeCount.dafr$start)/1000,
                                  n.bins.reduced=1000)

Then I receive this message:

Error in my.matrix[, i] : index out of bounds.

Can anybody help me?

Thank you very much

exome r

What value is i and what are the dimensions of my.matrix?

my.matrix has 185130 rows and 0 columns and obviously nsamples is equal to 0.

I've tried to do the same thing with tutorial data and the result is the same

Yeah, a 0-column matrix is empty, so that'll be your problem :)

Thank you very much for your help, I found the error

1 answer

I'm sorry, I'm wrong, the problem is only about my data, probably my dataset in not appropriate

Log in to answer this question.