rcs333 / VAPiD

VAPiD: Viral Annotation and Identification Pipeline
MIT License
50 stars 15 forks source link

adjust() does not work properly #5

Closed jey1401 closed 5 years ago

jey1401 commented 5 years ago

Minimally reproducible example:

>>> import vapid
>>> d = vapid.build_num_arrays("a--g-", "accgt")
>>> vapid.adjust(2, d[0], d[1], "accgt")
'-1'
rcs333 commented 5 years ago

This is actually intentional behavior, the second character is not an alignment match so we return -1 as an error code to let me know that the alignment isn't matching at that location.