RahmanTeamDevelopment / CoverView

A coverage and base/mapping quality evaluation tool for panel and whole exome next-generation sequencing
MIT License
4 stars 0 forks source link

Reads Array Does Not Handle Unmapped Reads Correctly #17

Open andyrimmer opened 7 years ago

andyrimmer commented 7 years ago

When loading reads using pysam.fetch (or Samtools view) unmapped reads have their end point determined as pos +1 (by convention, apparently). So an unmapped read of length 100 starting 10 bases to the left of the query interval would not be returned by fetch. In contrast, the ReadArray class does not filter these out, so unmapped reads are included in the array. This has led to at least one hard-to-pin-down bug.