Closed matthiasheinig closed 2 years ago
In general, the parameter ref.study
expects only DE genes in all rows. So the simulated data.frame from the example code needs to be filtered, then the function runs without any problems:
de.scenario<-de.scenario[de.scenario$DE,]
Mathematically, FDR correction can not be performed if all genes are DE genes, this causes the function to fail (division by 0). The code is updated now to have a better error message for this, when all expressed genes are defined as DE genes (package version 1.0.2).
I have an issue when trying to optimize the design for a sampled reference data set and choosing FDR as the MT method. When I use Bonferroni it works. Here is the error message:
And here is the full code