diff options
author | Munyoki Kilyungi | 2023-05-26 13:01:44 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-05-30 11:51:30 +0300 |
commit | f5bcefab17ee0e4a5230c4a95b6b1afb5893c4df (patch) | |
tree | 2407d361b7eeed80e5fde9ff6627ad2d5b45fc1a /examples | |
parent | 304c35e25c33ee6af576c9122e897b0972602481 (diff) | |
download | gn-transform-databases-f5bcefab17ee0e4a5230c4a95b6b1afb5893c4df.tar.gz |
Make a probeset's alias a multiset
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/dump-probeset.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/dump-probeset.scm b/examples/dump-probeset.scm index 4fa030f..ecd74e3 100755 --- a/examples/dump-probeset.scm +++ b/examples/dump-probeset.scm @@ -35,7 +35,9 @@ (set gn:description (field ProbeSet description)) (set gn:chr (field ProbeSet Chr)) (set gn:mb (annotate-field (field ("IFNULL(ProbeSet.Mb, '')" Mb)) '^^xsd:double)) - (set gn:alias (string-trim-both (field ProbeSet alias))) + (multiset gn:alias (map string-trim-both + (string-split (sanitize-rdf-string (field ProbeSet alias)) + #\;))) (set gn:generif (ontology 'generif: (field ProbeSet GeneId))) (set gn:genbank (ontology 'nuccore: (field ProbeSet GenbankId))) (set gn:snp (field ("IFNULL(ProbeSet.SNP, '')" SNP))) |