about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xexamples/phenotype.scm10
1 files changed, 9 insertions, 1 deletions
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))