Skip to content

Commit

Permalink
fix: remove requirement for ID in match_part/exon lines for extrinsic…
Browse files Browse the repository at this point in the history
… repeat GFF3 file
  • Loading branch information
gemygk committed Nov 23, 2023
1 parent ef49429 commit b77c64a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions minos/scripts/parse_repeats.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,9 @@ def parse_repeats(_in, _out, runid):
attrib = dict(
item.split("=") for item in row[8].strip(" ;").split(";")
)
if any(
map(
lambda x: x is None,
(attrib.get("ID"), attrib.get("Parent"),),
)
):
if any(map(lambda x: x is None, (attrib.get("Parent"),))):
raise ValueError(
"Error: Cannot parse all variables (ID, Parent). Please check entry:\n{}\n".format(
"Error: Cannot parse all variables (Parent). Please check entry:\n{}\n".format(
"\t".join(row)
)
)
Expand Down

0 comments on commit b77c64a

Please sign in to comment.