Skip to content

Commit

Permalink
fixup: fix comments to match behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
j23414 committed May 8, 2024
1 parent 7755b99 commit dd45b63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phylogenetic/bin/newreference.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def new_reference(referencefile, outgenbank, outfasta, gene):
startofgene = int(list(feature.location)[0])
endofgene = int(list(feature.location)[-1])+1

# If user provides a --gene 'some name' that is not found, print a warning and use the entire genome.
# Otherwise do not print a warning.
# If user provides a --gene 'some name' that is not found, error out as this may indicate that
# the gene name is misspelled or the user may be using the wrong GenBank file.
if(gene is not None and startofgene is None and endofgene is None):
print(f"ERROR: No '{gene}' was found under 'gene' or 'CDS' features in the GenBank file.", file=sys.stderr)
sys.exit(1)
Expand Down

0 comments on commit dd45b63

Please sign in to comment.