leosanbu / pyngoST

pyngoST: multiple sequence typing of Neisseria gonorrhoeae for large assembly collections
GNU General Public License v3.0
2 stars 0 forks source link

Parsing input file endings #2

Closed qinqin-yu closed 2 months ago

qinqin-yu commented 3 months ago

Hi Leonor,

I noticed that there may be a small typo in checking that the input filenames end in .fasta, .fas, .fa, .fna in the file pyngoST_utils.py line 665. I believe there should be parentheses so that any of the file endings are accepted (rather than only .fasta):

if not (fpath.endswith('.fasta') or fpath.endswith('.fas') or fpath.endswith('.fa') or fpath.endswith('.fna')):

Thank you! QinQin

leosanbu commented 2 months ago

Thanks very much QinQin :) This is now updated.