zellerlab / siamcat

R package for Statistical Inference of Associations between Microbial Communities And host phenoType
https://siamcat.embl.de/
52 stars 16 forks source link

No pdf for feature associations when only 1 species is significant #1

Closed apalleja closed 5 years ago

apalleja commented 5 years ago

Hi SIAMCAT developers,

I like very much your package! However when I run: plot.title=paste0("assoc_", analysis, ".pdf") check.associations( siamcat, sort.by = 'fc', fn.plot = plot.title, alpha = 0.1, mult.corr = "fdr", detect.lim = 10 ^ -6, max.show = 50, plot.type = "quantile.box", panels = c("fc", "prevalence", "auroc"), verbose = 2 )

I get this error and don't get any pdf for the significant species. It does not happen if I set the alpha much higher because then I have 3 species significant.

Please let me know if there is a quick fix for this ;P

Albert

jakob-wirbel commented 5 years ago

Hello Albert,

the quickest fix would be to up your alpha a bit, because it seems that there are fewer than 5 significant associations at your chosen alpha level. You could try alpha=0.2 in your function call (or any higher alpha) and check the results.

But indeed, there seems to be a bug which we will try to fix soon :-)

Cheers, Jakob

jakob-wirbel commented 5 years ago

The association plot should work already when you chose as plot.type one of these two:

The quantile plots should be fixed with this commit now, i hope 😄