aboutsummaryrefslogtreecommitdiff
path: root/uploader/phenotypes/models.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-04-21 10:01:58 -0500
committerFrederick Muriuki Muriithi2025-04-21 10:01:58 -0500
commiteb9bad471e15ce77bcdeac901909bf53098dc22d (patch)
tree5d786da8f7e1e33cb2b4021340779e58c44aa843 /uploader/phenotypes/models.py
parent88d417bb38cbc288015a1fd1b8f376459224b2f5 (diff)
downloadgn-uploader-eb9bad471e15ce77bcdeac901909bf53098dc22d.tar.gz
Add "DataId" to top-level trait details.
The `DataId` is unique in the `PublishXRef` table.
Diffstat (limited to 'uploader/phenotypes/models.py')
-rw-r--r--uploader/phenotypes/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/uploader/phenotypes/models.py b/uploader/phenotypes/models.py
index 4a229e6..52f38cc 100644
--- a/uploader/phenotypes/models.py
+++ b/uploader/phenotypes/models.py
@@ -137,6 +137,7 @@ def __organise_by_phenotype__(pheno, row):
"Pre_publication_abbreviation": row["Pre_publication_abbreviation"],
"Post_publication_abbreviation": row["Post_publication_abbreviation"],
"xref_id": row["pxr.Id"],
+ "DataId": row["DataId"],
"data": {
**(_pheno["data"] if bool(_pheno) else {}),
(row["DataId"], row["StrainId"]): {