Skip to content

Commit

Permalink
more encoded by processing
Browse files Browse the repository at this point in the history
  • Loading branch information
sierra-moxon committed Dec 21, 2023
1 parent 665c312 commit 37cf3f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gopreprocess/file_processors/gpi_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ def get_protein_xrefs(self) -> (dict, dict):
xref_ids[row.get("id")] = xid
if row.get("id") == "PR:Q9DAL9":
print(row)
if row.get("encoded_by").startswith("MGI:"):
parent_xref_ids[row.get("id")] = row.get("encoded_by")
for ebid in row.get("encoded_by"):
if ebid.startswith("MGI:"):
parent_xref_ids[row.get("id")] = ebid

qc_filename = "xref_pr.txt"
with open(qc_filename, "w") as file:
Expand Down

0 comments on commit 37cf3f6

Please sign in to comment.