ness-lab / recombinant-reads

1 stars 0 forks source link

Update phase change script to incorporate mate pairs #12

Closed aays closed 4 years ago

aays commented 4 years ago

Our scripts currently just look at one read at a time, and it means that we're encountering lots of reads where there aren't enough SNPs to call phase changes. Scanning for phase changes across mate pairs will involve creating a lookup table and then using that to create tuples of bam records, from which haplotype phases can be individually determined and then combined (since phase change detection currently just boils down to looking for more than one parental phase in a read).

The ids in the qname column alongside rnext and pnext can be used to detect mate reads. See SAM specification.

aays commented 4 years ago

Did I really make a duplicate issue

Lol whoops