VDBWRAIR / subsamplebam

Hopefully will allow you to randomly subsample a bam to get even depth
GNU General Public License v2.0
1 stars 4 forks source link

Unpaired reads #1

Closed averagehat closed 9 years ago

averagehat commented 9 years ago

Currently subsamplebam does not distinguish between orphaned (unpaired) and paired reads. But the ngs_mapper pipeline (specifically bam_to_depth and samtools mpileup only acknowledge paired reads. In this case, subsamplebam may subsample orphaned reads, giving less than the expected coverage depth from mpileup. Subsamplebam's behavior should be consistent with mpileup, and pick only paired reads unless otherwise specified.

Plan: My pull request will ignore unpaired reads by default. The "-A" flag (consistent with mpileup) will force it to consider unpaired reads.

necrolyte2 commented 9 years ago

This sounds right to me