baseSum ERROR

39 views
Skip to first unread message

Da-eun Ryu

unread,
Sep 22, 2014, 8:20:46 PM9/22/14
to bamu...@googlegroups.com


Hi, 

  I want to use for QC bam file, 
  So I downloaded BamUtilLibStatGen.1.0.12.tar.gz and unpack this file.
  

 I want to know the mean coverage of bam file, so i executed "bam stats -- in test.bam --baseSum".
 But It shows this error

 Exiting due to ERROR:
Overflow on the pileup buffer: specifiedPosition = 93252, pileup buffer start position: 92227, pileup buffer end position: 93251

 
Why I show this error, and how to I execute this option or other options for mean coverage ?

Thanks,

Mary Kate Wing

unread,
Sep 23, 2014, 11:11:27 AM9/23/14
to bamutils
By default, bam stats assumes that a single read covers less than 1024 reference bases.
This type of error appears if a read is longer than that.  This is most likely to happen if you have large skipped regions in your cigar ('N's).
You can look for those using something like:
    ../bin/bam findCigars --noph --cskip --in test.bam --out - |grep -v "^@" |cut -f 6

You can will need to increase the size of the pileup buffer to cover the largest number of bases a single read covers.
Add --bufferSize 3000
Replace 3000 by the appropriate number to handle the largest size of the reference covered by a read.
You can increase this to a large number - it will just take up more memory.

I will update bamUtil so that in the future it will print out a little more information about the first read it encountered as a problem.  This will help to figure out what to increase the bufferSize to, however, a future read may require an even larger buffer.

Let me know if that helps or if you have more questions or issues about how to figure out how to update the buffer size.

Mary Kate




--
You received this message because you are subscribed to the Google Groups "bamUtils" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bamutils+u...@googlegroups.com.
To post to this group, send email to bamu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bamutils/87951f13-094d-4215-93a0-6662b1f11688%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages