diff options
author | Munyoki Kilyungi | 2023-11-30 17:32:11 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2023-11-30 17:32:11 +0300 |
commit | 7b2a0e1be7d8455c6b7430210d1c873f53f3eca6 (patch) | |
tree | 22f6888969d700f4c73e36005ece61fa37df6bcd | |
parent | 77f9036298e88f83d60b54de3d5f3895787f0f53 (diff) | |
download | gn-transform-databases-7b2a0e1be7d8455c6b7430210d1c873f53f3eca6.tar.gz |
Trim the contributor's name when transforming phenotype metadata.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rwxr-xr-x | examples/phenotype.scm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/phenotype.scm b/examples/phenotype.scm index c485658..8049265 100755 --- a/examples/phenotype.scm +++ b/examples/phenotype.scm @@ -78,9 +78,10 @@ (set gnt:submitter (sanitize-rdf-string (field Phenotype Submitter))) (multiset dct:contributor - (string-split - (sanitize-rdf-string (field Phenotype Owner)) - #\,)) + (map string-trim-both + (string-split + (sanitize-rdf-string (field Phenotype Owner)) + #\,))) (set gnt:mean (annotate-field (field ("IFNULL(PublishXRef.mean, '')" mean)) '^^xsd:double)) (set gnt:locus |