diff options
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/strains.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/strains.scm b/examples/strains.scm index c22a8fc..4e62b49 100755 --- a/examples/strains.scm +++ b/examples/strains.scm @@ -86,7 +86,11 @@ At this point it is not very clear how Name, Name2, Symbol and Alias are used. (set rdfs:label (sanitize-rdf-string (field Strain Name))) (set skos:altLabel (sanitize-rdf-string (field ("IF ((Strain.Name2 != Strain.Name), Strain.Name2, '')" Name2)))) (set gnt:alias (sanitize-rdf-string (field ("IF ((Strain.Alias != Strain.Name), Strain.Alias, '')" Alias)))) - (set gnt:symbol (field ("IF ((Strain.Symbol != Strain.Name), Strain.Symbol, '')" Symbol))))) + (set gnt:symbol + (string->identifier + "gene" (regexp-substitute/global #f "[^A-Za-z0-9:]" + (field Strain Symbol) + 'pre "_" 'post))))) (define-transformer mapping-method (tables (MappingMethod)) |