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

Character not occuring in the indexed text #2

Open
koeppl opened this issue Mar 8, 2024 · 0 comments
Open

Character not occuring in the indexed text #2

koeppl opened this issue Mar 8, 2024 · 0 comments

Comments

@koeppl
Copy link
Owner

koeppl commented Mar 8, 2024

Let R be the reference string(s) we will index, and let S be the query string(s).
If S contains a character that does not occur in R, then when computing the matching statistics of S w.r.t. R, PHONI crashes.

To build the index on test_ref.fa:

python3 phoni build -r ../data/test_ref.fa -g shaped

and to compute the matching statistics of test_coll.fa w.r.t. test_ref.fa:

python3 phoni ms -i ../data/test_ref.fa -p ../data/test_coll.fa -g shaped

used files:

test_ref.fa:

>R
ABCDEF

test_coll.fa:

>1
EFGAAA

By changing G into A-F, the error vanishes.

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

1 participant