Skip to content

Commit

Permalink
Merge pull request #61 from geneontology/feb_updates
Browse files Browse the repository at this point in the history
MGI provided by then exclude
  • Loading branch information
sierra-moxon authored Mar 19, 2024
2 parents 212a95b + c74ffe1 commit fbd62e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gopreprocess/file_processors/gaf_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion src/gopreprocess/goa_annotation_creation_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fbd62e7

Please sign in to comment.