Skip to content

Character not occuring in the indexed text #2

@koeppl

Description

@koeppl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions