Skip to content

bug normalise function #271

@toobiwankenobi

Description

@toobiwankenobi

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

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions