microbiome / mia

Microbiome analysis
https://microbiome.github.io/mia/
Artistic License 2.0
47 stars 28 forks source link

Add explanation for agglomerateByPrevalence #509

Closed thpralas closed 5 months ago

thpralas commented 5 months ago

This PR aims to solve the issue (https://github.com/microbiome/mia/issues/407) by making the function agglomerateByPrevalence easier to understand :

TuomasBorman commented 5 months ago

Very nice. I think we could still move it under agglomerate-methods with agglomerateByRank and agglomerateByVariable

I think this is more "agglomeration" than "prevalence" function, so that would be the best place for it

TuomasBorman commented 5 months ago

If you check the man page of agglomerate-methods, it does not describe detection and prevalence and as_relative parameters. (They are passed through with ...). You could add to agglomerate.R file those parameters under ... parameter.

" Passed to getPrevalence and getPrevalentTaxa functions. Used in agglomeratebyPrev function..." (Along with the current text.

As agglomerate.R already has ... parameter, you cannot ... above agglomerateByPrevalence function (otherwise it overwrites the one in agglomerate.R).

TuomasBorman commented 5 months ago

See the man page. You could modify description so that it describes the agglomeration functions in more general (it now only says about agglomerateByRank) --> Agglomeration functions can be used to sum-up to rank or variable or prevalence...