Open SilasK opened 5 months ago
interesting suggestion Silas,
I could allow users to supply any transform as a function instead of a string,
the transform would have to take and return an otu_table, acting as a drop-in replacement for this line within tax_transform
otu <- otuTransform(otu = otu, trans = trans, ...)
it would need to relax argument type checks in a few places to allow this...
I won't have time to look at this for a few weeks probably, feel free to attempt a PR if its more urgent and that will speed things up
cheers David
I would like to use variations of CLR transformation.
e.g., non-zero or iqlr CLR, both using only a subset of the features to estimate the geometric mean.
I can transform a phyloseq object before the taxatree_models, but then it complains that the input contains non-zero values, which messes up the aggregation. I found no way to turn off the aggregation.
Ideally, one could add a custom function to tax_aggregate or directly implement these transformations in microViz.
Here is my function: