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

Question on secondary and supplementary reads #19

Closed
andosl opened this issue Nov 8, 2023 · 4 comments
Closed

Question on secondary and supplementary reads #19

andosl opened this issue Nov 8, 2023 · 4 comments

Comments

@andosl
Copy link

andosl commented Nov 8, 2023

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?

@Fu-Yilei
Copy link
Collaborator

Fu-Yilei commented Nov 8, 2023

Usually using supplementary and secondary alignment can cause methylation reading errors. MethPhaser will output errors if you use secondary and supplementary alignments.

@andosl
Copy link
Author

andosl commented Nov 8, 2023

Yep, I agree. But my point is about re-introducing those reads AFTER running methphaser before assembling.

@Fu-Yilei
Copy link
Collaborator

Fu-Yilei commented Nov 8, 2023

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.

@andosl
Copy link
Author

andosl commented Nov 9, 2023

Thanks for explaining, I see your point!

@andosl andosl closed this as completed Nov 9, 2023
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

2 participants