From abe23c624c6604026bb7140909e2ce0c919d3f52 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Thu, 30 Nov 2023 16:07:44 +0300 Subject: Set a phenotype's gnt:locus to a genotype. Signed-off-by: Munyoki Kilyungi --- examples/phenotype.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/phenotype.scm b/examples/phenotype.scm index 8263ca9..91cc624 100755 --- a/examples/phenotype.scm +++ b/examples/phenotype.scm @@ -82,7 +82,15 @@ #\,)) (set gnt:mean (annotate-field (field ("IFNULL(PublishXRef.mean, '')" mean)) '^^xsd:double)) - (set gnt:locus (field PublishXRef Locus)) + (set gnt:locus + (string->identifier + "" + (regexp-substitute/global + #f "[^A-Za-z0-9:]" + (sanitize-rdf-string (field PublishXRef Locus)) + 'pre "_" 'post) + #:separator "" + #:proc string-capitalize-first)) (set gnt:lodScore (annotate-field (field ("IFNULL((PublishXRef.LRS/4.604), '')" lrs)) '^^xsd:double)) -- cgit v1.2.3