Skip to content

Commit

Permalink
prefix publication
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinschaper committed Jun 9, 2024
1 parent 3ae2cf2 commit f2271a3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/zfin_genotype_to_phenotype_ingest/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,15 @@
else:
seen_records.update({key:''})


if row["Publication ID"]:
publication_id = "ZFIN:" + row["Publication ID"]
else:
publication_id = None
association = GenotypeToPhenotypicFeatureAssociation(id=str(uuid.uuid1()),
subject="ZFIN:" + row["Fish ID"],
predicate="biolink:has_phenotype",
object=zp_term,
publications=[row["Publication ID"]],
publications=[publication_id],
aggregator_knowledge_source=["infores:monarchinitiative"],
primary_knowledge_source="infores:zfin",
knowledge_level=KnowledgeLevelEnum.knowledge_assertion,
Expand Down

0 comments on commit f2271a3

Please sign in to comment.