Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swapping first and second mates when pair aligned to reverse strand #31

Open
mikisvaz opened this issue Feb 22, 2021 · 0 comments
Open

Comments

@mikisvaz
Copy link

mikisvaz commented Feb 22, 2021

I noticed that Mutect2 filtered out a lot of variants based on orientation bias on a realigned pair of samples, which didn't happen when I used RevertSam instead. I seemed to have tracked the problem down to this:

A pair of samples might originally be

H0KU0ADXX130516:2:2112:19067:52017      163     1       30257   0       76M     =       30269   88      AAAAAGAGCATCATCAGTCCAAAGTCCAGCAGTTGTCCCTCCTGGAATCCGTTGGCTTGCCTCCGGCATTTTTGGC    CCDFCH<HHEBGDAHDHAHGEFEJBHGEJHCFBDJBHGGFHHGIIBGCHG@BDJHHFEJIGCIH@DGBCCEECGJF       MC:Z:76M        MD:Z:76 PG:Z:MarkDuplicates.1A  RG:Z:RG_H0KU0ADXX130516_2_R1    NM:i:0  MQ:i:0  AS:i:76 XS:i:76
H0KU0ADXX130516:2:2112:19067:52017      83      1       30269   0       76M     =       30257   -88     ATCAGTCCAAAGTCCAGCAGTTGTCCCTCCTGGAATCCGTTGGCTTGCCTCCGGCATTTTTGGCCCTTGCCTTTTA    BCHFFBIDBDFICDIGIIDDDDEBEIICHHBGHDCCH?GGDGHJEFJHHCH=GIHCEFFEEGHIHHFDHGEDDF?9       MC:Z:76M        MD:Z:76 PG:Z:MarkDuplicates.1A  RG:Z:RG_H0KU0ADXX130516_2_R1    NM:i:0  MQ:i:0  AS:i:76 XS:i:76

And after realignment become

H0KU0ADXX130516:2:2112:19067:52017      99      1       30257   0       76M     =       30269   88      AAAAAGAGCATCATCAGTCCAAAGTCCAGCAGTTGTCCCTCCTGGAATCCGTTGGCTTGCCTCCGGCATTTTTGGC    ABAFAF;GIEBHCAFCGAGGEFEIAIGEJHBDADIBGGFDHGEGGBFCIG@CDJGIFEJHFBGG@AEABBEDBDHE       MC:Z:76M        MD:Z:76 PG:Z:MarkDuplicates     RG:Z:H0KU0.2    NM:i:0  MQ:i:0  AS:i:76 XS:i:76
H0KU0ADXX130516:2:2112:19067:52017      147     1       30269   0       76M     =       30257   -88     ATCAGTCCAAAGTCCAGCAGTTGTCCCTCCTGGAATCCGTTGGCTTGCCTCCGGCATTTTTGGCCCTTGCCTTTTA    @CFEDBICCCEHBAIEHGDCDDDBDHICFGBGHDDCG@FFDGIIEFIGGCH>GIGCEFFDFGHHHGEEIFEDCA=9       MC:Z:76M        MD:Z:76 PG:Z:MarkDuplicates     RG:Z:H0KU0.2    NM:i:0  MQ:i:0  AS:i:76 XS:i:76

so the flags 163 and 83 become 99 and 147 all else being the same. In fact the first and second pairs come out of bazam swapped.

@mikisvaz mikisvaz changed the title Swapping first and second mates pairs when aligned to reverse strand Swapping first and second mates when pair aligned to reverse strand Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant