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

Min edit distance with sequence of variable length #5

Open
G2GreenTea opened this issue Dec 20, 2023 · 1 comment
Open

Min edit distance with sequence of variable length #5

G2GreenTea opened this issue Dec 20, 2023 · 1 comment

Comments

@G2GreenTea
Copy link

I have a question that I need to ask you. There are two different sequences, A and B. I need to compare sequence A with sequence B to find the segment on sequence B that has the smallest editing distance from sequence A. If I take the length of sequence A as the window and move one distance on sequence B each time, the following problem will occur.
1703050602036

If the length of the fragments on sequence B is not fixed, for example, if the length distribution is [len (A) -2, len (A)+2], the results will be more accurate, but there will be significant performance loss. I would like to know if you would have a better way to solve this problem. Looking forward to your reply.

@maxbachmann
Copy link
Member

For this use case you would probably want to use Smith Waterman. I have plans to add this to rapidfuzz for a while already: rapidfuzz/RapidFuzz#175 however I am not really sure when I will get around to 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

No branches or pull requests

2 participants