aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-05-26 08:36:59 +0300
committerBonfaceKilz2023-05-26 08:40:22 +0300
commit7982647f5d2f9f1752f7b777de4b5b65f8a3248f (patch)
treef3fa9f3d84a2612d5d6578e8a1ba95250f33d56f /examples
parent1578465fa2726d4ff96fdc9d66cb3c6e1bb1c298 (diff)
downloadgn-transform-databases-7982647f5d2f9f1752f7b777de4b5b65f8a3248f.tar.gz
Make tissue a multi-set during the probeset dump
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/dump-probeset.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/dump-probeset.scm b/examples/dump-probeset.scm
index a3eaa05..e659120 100755
--- a/examples/dump-probeset.scm
+++ b/examples/dump-probeset.scm
@@ -89,6 +89,10 @@
(field
("IFNULL(ProbeSet.PubChem_ID, '')"
PubChem_ID))))
+ (multiset gn:tissue (map string-trim-both
+ (string-split
+ (field ("IFNULL(ProbeSet.Tissue, '')" Tissue))
+ #\,)))
(set gn:primaryName (field ProbeSet PrimaryName))
(set gn:secondaryNames (field ProbeSet SecondaryNames))
(set gn:peptideSequence (field ProbeSet PeptideSequence))))