diff options
author | Munyoki Kilyungi | 2023-03-06 14:38:01 +0300 |
---|---|---|
committer | BonfaceKilz | 2023-03-06 22:30:50 +0300 |
commit | ad03253d9399040e71f1696f9c35c26509e6c53e (patch) | |
tree | 072dd8ab1380485d77f00f6f04a0f2dee1808b19 | |
parent | f5eb10c5b598753cd2c40920e4344c7f29a2bb99 (diff) | |
download | gn-transform-databases-ad03253d9399040e71f1696f9c35c26509e6c53e.tar.gz |
Delete phenotype and publish_xref metadata
* dump.scm (phenotype-id->id, dump-phenotype): Delete
(dump-publish-xref): Delete.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rwxr-xr-x | dump.scm | 38 |
1 files changed, 0 insertions, 38 deletions
@@ -385,31 +385,7 @@ must be remedied." (set gn:inbredSetOfSpecies (binomial-name->species-id (field Species FullName BinomialName))))) -(define (phenotype-id->id id) - (string->identifier "phenotype" (number->string id))) - -(define-dump dump-phenotype - (tables (Phenotype)) (schema-triples - (gn:prePublicationDescription rdfs:range rdfs:Literal) - (gn:postPublicationDescription rdfs:range rdfs:Literal) - (gn:originalDescription rdfs:range rdfs:Literal) - (gn:labCode rdfs:range rdfs:Literal) - (gn:submitter rdfs:range rdfs:Literal) - (gn:owner rdfs:range rdfs:Literal) - (gn:authorizedUsers rdfs:range rdfs:Literal) - (gn:units rdfs:range rdfs:Literal)) - (triples (phenotype-id->id (field Phenotype Id)) - (set rdf:type 'gn:phenotype) - (set gn:prePublicationDescription (field Phenotype Pre_publication_description)) - (set gn:postPublicationDescription (field Phenotype Post_publication_description)) - (set gn:originalDescription (field Phenotype Original_description)) - (set gn:labCode (field Phenotype Lab_code)) - (set gn:submitter (field Phenotype Submitter)) - (set gn:owner (field Phenotype Owner)) - (set gn:authorizedUsers (field Phenotype Authorized_Users)) - (set gn:units (and (string-ci=? (field Phenotype Units) "unknown") - (field Phenotype Units))))) (define-dump dump-publication (tables (Publication)) @@ -446,18 +422,6 @@ must be remedied." ;; still uses this. "\v")))) -(define-dump dump-publish-xref - (tables (PublishXRef - (inner-join InbredSet "USING (InbredSetId)"))) - (schema-triples - (gn:phenotypeOfSpecies rdfs:domain gn:phenotype) - (gn:phenotypeOfSpecies rdfs:range gn:species)) - (triples (phenotype-id->id (field PublishXRef PhenotypeId)) - (set gn:phenotypeOfSpecies (inbred-set-name->id (field InbredSet Name))) - (set gn:traitId (field PublishXRef id)) - (set gn:publicationId - (string->identifier "publication" - (number->string (field PublishXRef PublicationId)))))) (define tissue-short-name->id (cut string->identifier "tissue" <>)) @@ -819,9 +783,7 @@ is a <table> object." (dump-strain db) (dump-mapping-method db) (dump-inbred-set db) - (dump-phenotype db) (dump-publication db) - (dump-publish-xref db) (dump-tissue db) (dump-investigators db) (dump-avg-method db) |