Skip to content

Commit

Permalink
Merge pull request #54 from EBI-Metagenomics/dev
Browse files Browse the repository at this point in the history
Skip mRNA-related genes - wrong number of fields
  • Loading branch information
tgurbich authored Dec 20, 2024
2 parents 0d08e4f + 1b1c57c commit a70e121
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bin/adjust_pseudofinder_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,12 @@ def load_gff(gff_file, chromosome_dictionary):
elif line.startswith("#"):
continue
else:
chromosome, _, feature, start, end, _, strand, _, col9 = (
line.strip().split("\t")
)
try:
chromosome, _, feature, start, end, _, strand, _, col9 = (
line.strip().split("\t")
)
except ValueError:
continue
if "|" in chromosome:
chromosome = chromosome.split("|")[-1]
if chromosome in chromosome_dictionary:
Expand Down

0 comments on commit a70e121

Please sign in to comment.