aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-05-15 00:31:48 +0300
committerMunyoki Kilyungi2024-05-15 00:31:48 +0300
commit87f99793f9f8dd5d513b01a810f7368b690b79b1 (patch)
tree22b6a226b7fca4dc56ef6eb93649bd76e798c9d7
parenteed289041e3508199c9ba607eab9197d90a99221 (diff)
downloadgn-transform-databases-87f99793f9f8dd5d513b01a810f7368b690b79b1.tar.gz
Use a set to represent a phenotype's owner.
The owners in the database is not a consistent comma separated list. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rwxr-xr-xexamples/phenotype.scm6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/phenotype.scm b/examples/phenotype.scm
index fd5ed85..aa1e9c5 100755
--- a/examples/phenotype.scm
+++ b/examples/phenotype.scm
@@ -80,11 +80,7 @@
(set gnt:labCode (field Phenotype Lab_code))
(set gnt:submitter
(sanitize-rdf-string (field Phenotype Submitter)))
- (multiset dct:contributor
- (map string-trim-both
- (string-split
- (sanitize-rdf-string (field Phenotype Owner))
- #\,)))
+ (set dct:contributor (sanitize-rdf-string (field Phenotype Owner)))
(set gnt:mean (annotate-field (field ("IFNULL(PublishXRef.mean, '')" mean))
'^^xsd:double))
(set gnt:locus