I've encountered a few CRAMs in the wild where there are reads that aren't from paired-end sequencing runs. These did not have the BAM_FMUNMAP bit set so I've added a check that the sequencing run was paired to the section writing to the discordants file.
I also reindented to remove a bunch of tabs.
I've a test in process and the code change seems to help, but please review critically. cc @brentp @ryanlayer
I've encountered a few CRAMs in the wild where there are reads that aren't from paired-end sequencing runs. These did not have the BAM_FMUNMAP bit set so I've added a check that the sequencing run was paired to the section writing to the discordants file.
I also reindented to remove a bunch of tabs.
I've a test in process and the code change seems to help, but please review critically. cc @brentp @ryanlayer
Thanks!