Hi there,
thank you for the work on this package. I realized that there seems to be a bug (unless this behavior is intended) in the normalise() function.
If the data.frame you use as input was previously grouped (by dplyr::group_by()), the function seems to apply median normalization to the previous grouping and not to the sample column. I didn't check the source code but maybe you need to include dplyr::ungroup() to make sure that previous groupings are removed. Anyway, the normalisation works if I do dplyr::ungroup() before using normalise(). Let me know if something is unclear or if you need an example data set.
Best wishes,
Tobi
Version Info
protti version 0.9.0
R version 4.4
Hi there,
thank you for the work on this package. I realized that there seems to be a bug (unless this behavior is intended) in the
normalise()function.If the
data.frameyou use as input was previously grouped (bydplyr::group_by()), the function seems to apply median normalization to the previous grouping and not to thesamplecolumn. I didn't check the source code but maybe you need to includedplyr::ungroup()to make sure that previous groupings are removed. Anyway, the normalisation works if I dodplyr::ungroup()before usingnormalise(). Let me know if something is unclear or if you need an example data set.Best wishes,
Tobi
Version Info
protti version 0.9.0R version 4.4