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

Realignment and break points #354

Open
mmnikolic opened this issue Sep 13, 2023 · 3 comments
Open

Realignment and break points #354

mmnikolic opened this issue Sep 13, 2023 · 3 comments
Assignees
Labels

Comments

@mmnikolic
Copy link

Hi @tobiasrausch ! I have a question about "SV genotyping where reads are realigned to the REF and ALT allele.". (originally posted in #273 (comment)).

Can this change the break-point position? Or is the break-point position already established in the first step (SV discovery (BAM is taken as is)) where no realignment is applied?

I am curious if the realignment could cause discrepancy in visualising the reads from the BAM and the break points.

Thank you!

@tobiasrausch
Copy link
Member

Delly realigns reads to the REF and ALT (INFO/CONSENSUS) allele. This does not change the breakpoint position in the VCF file but if reads align equally good to REF and ALT they are uninformative for genotyping. In addition, this realignment uses dynamic programming which may produce an alignment that differs from the original read mapping.

@tobiasrausch tobiasrausch self-assigned this Sep 13, 2023
@mmnikolic
Copy link
Author

Thank you @tobiasrausch! What I am curious about specifically is that for some breakpoints, soft-clipped part of supporting reads are not exactly aligned with those breakpoints (breakpoint can be outside of the soft-clipped part or inside, not on the end of soft-clipped part). Is this expected? Does it relate to CONSENSUS sequence?

@tobiasrausch
Copy link
Member

Yes, delly computes a consensus to reference alignment using dynamic programming. If you compile from source you can also output this alignment to stderr:

Consensus to reference alignment code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants