nhanhocu / metamicrobiomeR

An R package for analysis of microbiome relative abundance data using zero inflated beta GAMLSS and meta-analysis across microbiome studies using random effects models
https://github.com/nhanhocu/metamicrobiomeR
33 stars 11 forks source link

problem with parameter othervar in taxa.meansdn #2

Open VGalata opened 5 years ago

VGalata commented 5 years ago

Hi all,

There is a minor issue when using the parameter othervar in function taxa.meansdn:

  1. The test othervar != "none" produces a warning, i.e. "the condition has length > 1 and only the first element will be used". Which is of course not critical but annoying.
  2. The columns sumvar and groupvar are added to the table before choosing the rel. abundance columns. So, these are also selected (because they are not in othervar list) resulting in many warnings and other problems. My current workaround is to include sumvar and groupvar when setting othervar.
nhanhocu commented 4 years ago

Hi, Thanks for pointing out, will fix it in the next update. Thanks

nhanhocu commented 4 years ago

Hi, Please try out the new version on R cran in which the above issues have been fixed. Thanks, Nhan