aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-04-03 11:52:20 +0300
committerBonfaceKilz2023-04-05 16:17:11 +0300
commitb60361e2fcf74f07315cb06d1122752495853f23 (patch)
treec3ff12da614f60cb363f56f8d226cb4a07067bc5
parent69fb07b21f85f7c8f270082756d40ff529cc3777 (diff)
downloadgn-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-xdump.scm13
1 files changed, 10 insertions, 3 deletions
diff --git a/dump.scm b/dump.scm
index d27810b..bd8bc22 100755
--- a/dump.scm
+++ b/dump.scm
@@ -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