From b77c64a2b07d0b84e9abf8660bf3d2b6a6a16815 Mon Sep 17 00:00:00 2001 From: Gemy Kaithakottil Date: Thu, 23 Nov 2023 11:51:42 +0000 Subject: [PATCH] fix: remove requirement for ID in match_part/exon lines for extrinsic repeat GFF3 file --- minos/scripts/parse_repeats.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/minos/scripts/parse_repeats.py b/minos/scripts/parse_repeats.py index 1b624e9..421af96 100644 --- a/minos/scripts/parse_repeats.py +++ b/minos/scripts/parse_repeats.py @@ -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) ) )