Skip to content
Snippets Groups Projects
Commit feb724fa authored by ermueller's avatar ermueller
Browse files

Names were in all caps

parent 6dcb8dec
No related branches found
No related tags found
No related merge requests found
......@@ -535,8 +535,20 @@ gatherData <- function(id)
if(iupacName == ""){
warning(paste0("Compound ID ",id,": no IUPAC name could be identified."))
}
if(toupper(dbname) == toupper(synonym)){
synonym <- dbname
}
if(toupper(dbname) == toupper(iupacName)){
iupacName <- dbname
}
if(toupper(synonym) == toupper(iupacName)){
synonym <- iupacName
}
names <- as.list(unique(toupper(c(dbname, synonym, iupacName))))
names <- as.list(unique(c(dbname, synonym, iupacName)))
##If no name is found, it must be supplied in one way or another
if(all(sapply(names, function(x) x == ""))){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment