joannawolthuis / MetaboShiny

Repository for MetaboShiny, a novel R and RShiny based metabolomics data analysis package.
https://www.biorxiv.org/content/10.1101/734236v1
Apache License 2.0
15 stars 9 forks source link

Crashes when plotting time-toggled data #19

Closed stefaniamagg closed 5 years ago

stefaniamagg commented 5 years ago

Warning: Error in mb.2D: The sample sizes or the biological condition group assignments are incorrect! 77: stop 76: mb.2D 73: performMB 72: observeEventHandler [/Users/smagnusdottir/Git/MetaboShiny/server.R#1207] 1: shiny::runApp

joannawolthuis commented 5 years ago

Heyyo : - ) you did this with the cat data right? What experimental value were you checking out?

stefaniamagg commented 5 years ago

When creating the csv I chose "group" and for the analysis it was just the defaults; I think it sets it to "sex" by default when loading in the data?

joannawolthuis commented 5 years ago

i'll take a look - i can't reproduce it w/ 'group identification/description' as variable, but i suspect there are some variables with only one level, or more than two levels, making problems :-V

stefaniamagg commented 5 years ago

I've tried a few different variables, changing "Do statistics on" to "group identification/description", "sex", etc doesn't matter, they all crash. Done on the cat data where I selected the variable "group" as "Which variable represents sample amount/concentration?" (the drop-down list doesn't display "group identification/description" as an option there).

joannawolthuis commented 5 years ago

hmm, this is strange!! what do you pick for the rest for normalization?

stefaniamagg commented 5 years ago

Max. missing feature: 1%, m/z filter: None, normalization: Quantile, transform: log, scale: autoscale, missing values: random forest

stefaniamagg commented 5 years ago

Exclude outliers: yes

joannawolthuis commented 5 years ago

alright :-) let's see if i can reproduce if i start from scratch

joannawolthuis commented 5 years ago

should be fixed now, auto-disables outlier removal for time series as a temp solution ^^