Skip to content

Commit b40be46

Browse files
committed
kill the pipeline with no coding genes
1 parent 363ed90 commit b40be46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ def run(self):
942942
pipeline_args = self.get_pipeline_args()
943943
df = tools.gff3.parse_gff3(self.annotation_attrs, self.annotation_gp, self.genome != self.ref_genome)
944944
if 'protein_coding' not in set(df.GeneBiotype) or 'protein_coding' not in set(df.TranscriptBiotype):
945-
logger.critical('No protein_coding annotations found!')
945+
raise InvalidInputException('No genes or transcripts with biotype protein_coding found!')
946946
# validate number parsed
947947
tot_genes = len(open(self.annotation_gp).readlines())
948948
if tot_genes != len(df):

0 commit comments

Comments
 (0)