parsnp icon indicating copy to clipboard operation
parsnp copied to clipboard

Index error if file is empty

Open mlarjim opened this issue 7 months ago • 1 comments

Hi! I am a big fan of parsnp. I was using v1.7.4 so I decided to update parsnp to v2.0.5. However, I get this error:

File "miniconda3/envs/parsnp2/bin/parsnp", line 969, in parse_input_files
    if hdr[0] != ">":
       ~~~^^^
IndexError: string index out of range

It is due to an empty file in my genomes directory, but older versions overcome this problem. Thank you in advance

mlarjim avatar Jul 26 '24 07:07 mlarjim