aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2026-04-20 10:12:30 +0300
committerMunyoki Kilyungi2026-04-20 10:12:30 +0300
commitb0ef58eaff0e5966dc1dafc6abba8e42e3db1fe2 (patch)
tree93a32a0727513d7e770c269777c0aa12cb8336d1
parent7f7272be9e0c43a2b80ccecb4055cec58b888514 (diff)
downloadgn-transform-databases-master.tar.gz
Add trait page link for probesets and phenotypes.HEADmaster
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rwxr-xr-xexamples/phenotype.scm5
-rwxr-xr-xexamples/probesets-experiment-metadata.scm7
2 files changed, 12 insertions, 0 deletions
diff --git a/examples/phenotype.scm b/examples/phenotype.scm
index 57fd2c5..70deed7 100755
--- a/examples/phenotype.scm
+++ b/examples/phenotype.scm
@@ -86,6 +86,11 @@
(set owl:equivalentClass
(field ("CONCAT(PublishFreeze.Name, '_', PublishXRef.Id)"
PublishFreeze)))
+ (set gnt:has_trait_page
+ (string->symbol
+ (format #f "<https://genenetwork.org/show_trait?trait_id=~a&dataset=~a>"
+ (field PublishXRef Id)
+ (field PublishFreeze Name))))
(set dcat:distribution
(string->symbol
(format #f "gnd:~a.json"
diff --git a/examples/probesets-experiment-metadata.scm b/examples/probesets-experiment-metadata.scm
index 83a8ead..4bab425 100755
--- a/examples/probesets-experiment-metadata.scm
+++ b/examples/probesets-experiment-metadata.scm
@@ -30,6 +30,13 @@
;; (format #f "gnd:~a.json"
;; (field ("CONCAT(ProbeSetFreeze.Name, '_', ProbeSet.Name)"
;; PublishFreeze))))) )
+ (set gnt:has_trait_page
+ (string->symbol
+ (format #f "<https://genenetwork.org/show_trait?trait_id=~a&dataset=~a>"
+ (field ProbeSet Name)
+ ;; GTEx_Lung _0414
+ (uri-encode
+ (field ProbeSetFreeze Name ProbeSetFreezeName)))))
(set gnt:has_probeset (string->identifier "probeset" (field ProbeSet Name ProbeSetName)))
(set dcat:isPartOf (string->identifier "dataset" (field ProbeSetFreeze Name ProbeSetFreezeName)
#:separator "_"))