Tks very much. I think I have searched with error keywords.
How to truncate the short reads to 30x coverage from 60x coverage
In experiments of some paper, they try to truncate the coverage of short reads for a reasonable running times. But, I don't know how to do that, such as truncating the short reads to 30x coverage from 60x coverage.
• 2,689 views
•
link
3 answers
This is super common. Should be loads of answers (and many ways of doing it) in google, e.g:
http://ivory.idyll.org/blog/2014-downsample-to-given-coverage.html
• 0 views
•
link
• 0 views
•
link
In this instance, "downsample" is the magical search keyword. Depending on your pipeline, you'll probably want to downsample the BAM, or the FASTQ.
• 0 views
•
link
Both samtools and Picard tools support downsampling of SAM/BAM/CRAM files.
• 0 views
•
link
Log in to answer this question.
To get from 60x to 30x, you just remove half the reads (making sure that, if they are pair, you include or exclude both reads of the pair together). Note that the reads themselves are not shorted/truncated/modified in any way, you just use fewer of them.
Edit: technically you could get to 30x from 60x by halving the read length, but I've never seen a paper that does that - they've all just downsampled the input.
I can't see a situation where shortening your already short reads would be a good idea!
Also, you wouldn't necessarily half the coverage depth by halving the read length if they overlap significantly (which you would hope they do if you want to assemble well)
Shortening reads won't change your physical coverage (number of fragment remains unchanged), but you will halve your sequenced coverage since you have half the number of bases sequenced. If your pipeline involves merging overlapping reads then yes, your post-merge coverage might be more than half, but at a cost of a higher error rate due to fewer overlapping bases.
Regardless,changing you read length is almost always^ going to give you worse results than down-sampling.
^ exceptions are read pair based structural variant calling, and libraries in which the median fragment length is already comparable to the read length.