diff --git a/src/gopreprocess/file_processors/gaf_processor.py b/src/gopreprocess/file_processors/gaf_processor.py index cd3e598..906d2a6 100644 --- a/src/gopreprocess/file_processors/gaf_processor.py +++ b/src/gopreprocess/file_processors/gaf_processor.py @@ -163,7 +163,7 @@ def parse_p2g_gaf(self): for source_assoc in annotation.associations: if isinstance(source_assoc, dict): continue # skip the header - if self.source == "GOA" and source_assoc.provided_by == self.taxon_to_provider[self.target_taxon]: + if source_assoc.provided_by == "MGI": continue if ( self.source == "GOA" diff --git a/src/gopreprocess/goa_annotation_creation_controller.py b/src/gopreprocess/goa_annotation_creation_controller.py index f6fc478..cac14cd 100644 --- a/src/gopreprocess/goa_annotation_creation_controller.py +++ b/src/gopreprocess/goa_annotation_creation_controller.py @@ -108,7 +108,9 @@ def get_source_annotations(isoform: bool, taxon: str) -> tuple[dict, Any, Any, A xrefs = gpi_processor.get_xrefs() # assign the output of processing the source GAF to a source_annotations variable - gp = GafProcessor(filepath=p2go_file, source="GOA") + gp = GafProcessor(filepath=p2go_file, + source="GOA" + ) source_annotations = gp.parse_p2g_gaf() if isoform: