Skip to content

Commit

Permalink
gpiparser returns entity_types as a list, GPI spec declares this fiel…
Browse files Browse the repository at this point in the history
…d to be single valued, so just take first item in the list.
  • Loading branch information
sierra-moxon committed Jul 23, 2024
1 parent 691a9d4 commit 99ba686
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,8 @@ def fix_pro_isoforms_in_gaf(gaf_file_to_fix: str, gpi_file: str, ontology_graph,
"full_name": gpi_entry.get('full_name'),
"label": gpi_entry.get('label'),
"synonyms": gpi_entry.get('synonyms'),
"type": gpi_entry.get('type'),
# GPI spec says this is single valued, but GpiParser returns this as a list.
"type": gpi_entry.get('type')[0],
"id": gpi_entry.get('id')}

gafparser = GafParser(config=assocparser.AssocParserConfig(ontology=ontology_graph))
Expand Down

0 comments on commit 99ba686

Please sign in to comment.