Skip to content
Prev 7844 / 21312 Next

[Bioc-devel] error using the DEXSeqDataSet function

On 07/30/2015 09:02 AM, Alejandro Reyes wrote:
with options(error=recover) we end up at

Enter a frame number, or 0 to exit

  1: summarizeOverlaps(exonicParts, bamlst, mode = "Union", singleEnd = FALSE, i
  2: summarizeOverlaps(exonicParts, bamlst, mode = "Union", singleEnd = FALSE, i
  3: .local(features, reads, mode, algorithm, ignore.strand, ...)
  4: .dispatchBamFiles(features, reads, mode, match.arg(algorithm), ignore.stran
  5: SummarizedExperiment(assays = SimpleList(counts = counts), rowRanges = feat
  6: SimpleList(counts = counts)
  7: new("SimpleList", listData = args)
  8: initialize(value, ...)
  9: initialize(value, ...)
10: validObject(.Object)

Selection: 4
Called from: stop(msg, ": ", errors, domain = NA)
Browse[2]> SimpleList(counts=counts)
Error during wrapup: invalid class "SimpleList" object: invalid object for slot 
"listData" in class "SimpleList": got class "matrix", should be or extend class 
"list"
Browse[2]> class(counts)
[1] "matrix"
Browse[2]> dim(counts)  ## suspicious!
[1] 2 3
Browse[2]> cat(counts[[1]])
sequences 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 
21, 22, X, Y have incompatible seqlengths:
   - in 'x': 248956422, 242193529, 198295559, 190214555, 181538259, 170805979, 
159345973, 145138636, 138394717, 133797422, 135086622, 133275309, 114364328, 
107043718, 101991189, 90338345, 83257441, 80373285, 58617616, 64444167, 
46709983, 50818468, 156040895, 57227415
   - in 'y': 249250621, 243199373, 198022430, 191154276, 180915260, 171115067, 
159138663, 146364022, 141213431, 135534747, 135006516, 133851895, 115169878, 
107349540, 102531392, 90354753, 81195210, 78077248, 59128983, 63025520, 
48129895, 51304566, 155270560, 59373566

So (a) the genome build of the alignment is different from the genome build of 
the annotations (b) BiocParallel (I think) is capturing the messages rather than 
the return values (c) SimpleList(matrix(list())) fails.

Martin