We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83962e1 commit 491b69cCopy full SHA for 491b69c
1 file changed
newmap/search.py
@@ -717,6 +717,11 @@ def main(args):
717
index_filename = Path(fasta_filename).stem + \
718
"." + INDEX_EXTENSION
719
720
+ # Check that the index file exists
721
+ index_filename = Path(index_filename)
722
+ if not index_filename.is_file():
723
+ raise FileNotFoundError(f"Index file not found: {index_filename}")
724
+
725
# Parse the kmer lengths
726
# NB: Either comma seperated or a range seperated by a colon
727
kmer_lengths = []
0 commit comments