-
Notifications
You must be signed in to change notification settings - Fork 0
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
Question on secondary and supplementary reads #19
Comments
Usually using supplementary and secondary alignment can cause methylation reading errors. MethPhaser will output errors if you use secondary and supplementary alignments. |
Yep, I agree. But my point is about re-introducing those reads AFTER running methphaser before assembling. |
I would advise not to do that because MethPhaser flip the phaseblocks and flip the reads' haplotype assignments when it finds the relation between two neighbor phaseblocks are flipped. i.e., HP1 in phaseblock 1 is the same to HP2 in phaseblock2. Reintroducing those reads might be not optimal. |
Thanks for explaining, I see your point! |
It is necessary to exclude secondary and supplementary alignments with "samtools view -bF 2304 -o output.bam input.bam" before running methphaser. However, the secondary and supplementary reads could provide increased depth when assembling the haplotypes after phasing. I guess I can filter out secondary and supplementary reads that are already phased using whatsapp, and re-add them to the new bam file after methphasing?
The text was updated successfully, but these errors were encountered: