Skip to content

Commit

Permalink
Add warning about parentheses in fasta file names
Browse files Browse the repository at this point in the history
  • Loading branch information
baileythegreen authored Dec 19, 2021
1 parent c2b531b commit 0e209db
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/average_nucleotide_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,11 @@ def subsample_input(infiles):
logger.error("This will cause issues with MUMmer and BLAST")
logger.error("(exiting)")
sys.exit(1)
if any(['(' in fname, ')' in fname]):
logger.error("File or directory '%s' contains parentheses", fname)
logger.error("This will cause issues with MUMmer and BLAST")
logger.error("(exiting)")
sys.exit(1)

if args.labels and not os.path.isfile(args.labels):
logger.error("Missing labels file: %s", args.labels)
Expand Down

0 comments on commit 0e209db

Please sign in to comment.