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

Consider circularity when finding intra-contig breakpoints #28

Merged
merged 10 commits into from
Oct 6, 2023

Conversation

jdidion
Copy link
Contributor

@jdidion jdidion commented Sep 29, 2023

If the contig is circular, then we consider segment pairs where seg2.end < seg1.start (or seg1.end < seg2.start on the negative strand) to be normally oriented and calculate the distance between them relative to the origin.

I think I also fixed another bug (for the non-circular case), changing seg1.range.start < seg2.range.start to seg1.range.start < seg2.range.end for the negative strand comparison.

@jdidion jdidion requested a review from tfenne September 29, 2023 17:46
@jdidion
Copy link
Contributor Author

jdidion commented Sep 29, 2023

Leaving this as draft for now because I don't have time to add a test case.

@jdidion jdidion marked this pull request as ready for review September 29, 2023 22:14
@jdidion
Copy link
Contributor Author

jdidion commented Sep 29, 2023

@tfenne tests added, ready for review

Copy link
Member

@tfenne tfenne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks @jdidion! Just a few minor comments on formatting.

@jdidion jdidion requested a review from tfenne October 6, 2023 17:40
@tfenne tfenne merged commit 6ea1c2c into main Oct 6, 2023
2 checks passed
@tfenne tfenne deleted the JD-24-pileup-circular branch October 6, 2023 19:23
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

Successfully merging this pull request may close these issues.

2 participants