diff options
author | Munyoki Kilyungi | 2023-04-03 11:52:20 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-04-05 16:17:11 +0300 |
commit | b60361e2fcf74f07315cb06d1122752495853f23 (patch) | |
tree | c3ff12da614f60cb363f56f8d226cb4a07067bc5 | |
parent | 69fb07b21f85f7c8f270082756d40ff529cc3777 (diff) | |
download | gn-transform-databases-b60361e2fcf74f07315cb06d1122752495853f23.tar.gz |
Dump species, symbols and indicate generif type when a geneid = 0
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rwxr-xr-x | dump.scm | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -878,10 +878,17 @@ is a <table> object." (field GeneRIF symbol)) (ontology 'generif: geneid))) - (set gn:species (let ([geneid (field GeneRIF_BASIC GeneId)]) - (if (eq? geneid 0) + (set rdf:type (if (eq? (field GeneRIF_BASIC GeneId) 0) + 'gn:geneWikiEntry + "")) + (set gn:species (if (eq? (field GeneRIF_BASIC GeneId) 0) (field Species SpeciesName) - ""))) + "")) + ;; This only dumps symbols not present in the GeneRIF_BASIC table + (set gn:symbol (let ([geneid (field GeneRIF_BASIC GeneId)]) + (if (eq? geneid 0) + (field GeneRIF symbol) + ""))) (multiset gn:geneWikiEntryOfGn (let* ([entries (replace-substrings |