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

Inconsistency with API on empty strings #228

Open
nkkarpov opened this issue Sep 7, 2024 · 0 comments
Open

Inconsistency with API on empty strings #228

nkkarpov opened this issue Sep 7, 2024 · 0 comments
Labels

Comments

@nkkarpov
Copy link

nkkarpov commented Sep 7, 2024

For example, edlib.align("ACGT", "", k=1) returns 4 instead of -1. Additionally, it appears that the CIGAR string and locations are unreliable when the query string is empty, as they contain None even when k is larger than the edit distance.

edlib.align("ACGT", "", k=5, task="path")
{'editDistance': 4,
 'alphabetLength': 4,
 'locations': [(None, -1)],
 'cigar': None}
@nkkarpov nkkarpov added the bug label Sep 7, 2024
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

1 participant