[BioC] Rsamtools Error: vector of negative length
Martin Morgan
mtmorgan at fhcrc.org
Tue Nov 9 14:52:24 CET 2010
On 11/09/2010 05:22 AM, Christoph Bartenhagen wrote:
> Hello everyone,
>
> I am experiencing a strange error, while reading (large) BAM-files (>
> 2GB) in R with the function scanBam() in the Rsamtools package.
> It stops saying "negative length vectors are not allowed".
>
> I think my BAM-file is ok, because I can read it in small chunks like
> reads on positive strand first, then reads on the negative strand (using
> ScanBamParam). This might be a more general Error in R because it seems
> to occur in very different R programs.
>
> Has anyone experienced this error?
> I would really appreciate any ideas how to fix this problem or
> concerning the reason for this error (I don't really understand what a
> "negative length vector" is).
Hi Christoph --
This is an integer overflow when the (accumulated) underlying DNA or
quality strings are too long. But I think this has been addressed and so
your sessionInfo() and a reproducible example (or at least the explicit
command that triggers the problem) would help.
Martin
>
> Thanks in advance
> Christoph
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives:
> http://news.gmane.org/gmane.science.biology.informatics.conductor
--
Computational Biology
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109
Location: M1-B861
Telephone: 206 667-2793
More information about the Bioconductor
mailing list