Skip to content

Commit

Permalink
fix issue with undefined species in Macs2
Browse files Browse the repository at this point in the history
  • Loading branch information
opitzl committed Jun 14, 2024
1 parent 7e6b6dd commit 8d0fb4a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/app-macs2.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ ezMethodMacs2 = function(input=NA, output=NA, param=NA){
"Mus musculus (mouse)"="mm",
"Caenorhabditis elegans (worm)"="ce",
"Drosophila melanogaster (fruitfly)"="dm")
isGsize <- grepl(input$getColumn("Species"), names(gsizes),
ignore.case = TRUE)
species <- input$getColumn("Species")
if(species == ''){
species = 'undefined'
}
isGsize <- grepl(species, names(gsizes),ignore.case = TRUE)
if(any(isGsize)){
message("Use predefined gsize: ", gsizes[isGsize])
gsize <- gsizes[isGsize]
Expand Down

0 comments on commit 8d0fb4a

Please sign in to comment.