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

break if both fwd and rev alignments are not okay #289

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ASLeonard
Copy link
Contributor

At least on same test cases that were getting stuck from #262, this change seems to be enough. If the forward and reverse alignments both fail, it seems reasonable anyway to break out. This doesn't appear to conflict with #288, which still froze at this stage.

The resulting alignment looked fine after checking with pafcheck, so this may not catch every case, but seems to resolve all cases I do have.

@ekg
Copy link
Collaborator

ekg commented Oct 29, 2024 via email

@ASLeonard
Copy link
Contributor Author

I tested that PR tip (263321c) and it still froze with the command

wfmash -s 50000 -l 250000 -p 85 -n 1 -P inf -k 19 -Y "#" -t 1 fa.gz -i mapping.paf > align.paf

but maybe wflign is still the default without adding additional flags. I'll check back once the new PR is merged so I don't preempt anything.

@ekg
Copy link
Collaborator

ekg commented Oct 29, 2024 via email

@ekg
Copy link
Collaborator

ekg commented Oct 29, 2024

So it seems that if you have very large alignment problems, then WF-Line is still almost unavoidably important. I guess the natural thing to do would be to increase the threshold at which we use BiWFA maybe to 100kbp, and still fall back to wflign. In the PR I'm not giving any fallback, only by setting -I should you get the same behavior.

@ASLeonard
Copy link
Contributor Author

My concern is that if there is any possibility of falling back to wflign (or even via --force-wflign), there currently appears to be a rare set of circumstances in wflign where patching alignments can get stuck in an infinite loop when both forward/backward alignments are not okay.

@ekg
Copy link
Collaborator

ekg commented Oct 30, 2024 via email

@ekg
Copy link
Collaborator

ekg commented Nov 14, 2024

We should probably merge this in though even if the code path is not used right now. We may resurrect it.

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