diff options
| author | Munyoki Kilyungi | 2025-12-23 12:07:10 +0300 |
|---|---|---|
| committer | Munyoki Kilyungi | 2026-01-13 12:02:49 +0300 |
| commit | 5f3ea3c988d8051d3ae3d969ac960037687903d0 (patch) | |
| tree | 50f62bef4146a3d0e91044fb76ebac0d9863c415 /transform/triples.scm | |
| parent | 1ca7e679b834ccaf53a3243d0e1c2f3f9e8d56d8 (diff) | |
| download | gn-transform-databases-5f3ea3c988d8051d3ae3d969ac960037687903d0.tar.gz | |
Move remap-species-identifiers to (transform triples).
* examples/classification.scm (remap-species-identifiers): Move this... * transform/triples.scm: ... here. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'transform/triples.scm')
| -rw-r--r-- | transform/triples.scm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/transform/triples.scm b/transform/triples.scm index 9775d36..f2dbcf7 100644 --- a/transform/triples.scm +++ b/transform/triples.scm @@ -8,8 +8,19 @@ triple scm->triples annotate-field + remap-species-identifiers string->binomial-name)) +(define (remap-species-identifiers str) + "This procedure remaps identifiers to standard binominal. Obviously this should + be sorted by correcting the database!" + (match str + ["Fly (Drosophila melanogaster dm6)" "Drosophila melanogaster"] + ["Oryzias latipes (Japanese medaka)" "Oryzias latipes"] + ["Macaca mulatta" "Macaca nemestrina"] + ["Bat (Glossophaga soricina)" "Glossophaga soricina"] + [str str])) + (define (annotate-field field schema) (let ([schema (cond ((symbol? schema) (symbol->string schema)) |
