Skip to content

Commit

Permalink
Make command line raise warning on FASTA files missing sequence ident…
Browse files Browse the repository at this point in the history
…ifiers
  • Loading branch information
althonos committed Sep 3, 2024
1 parent 276b9a9 commit 15968d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyrodigal/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import os
import operator
import sys
import warnings
import typing

try:
Expand Down Expand Up @@ -206,6 +207,8 @@ def argument_parser(


def _process(gene_finder, sequence):
if not sequence.id:
warnings.warn("Input file contains a sequence without identifier", stacklevel=2)
return sequence.id, gene_finder.find_genes(sequence.seq)


Expand Down

0 comments on commit 15968d3

Please sign in to comment.