New feature: allow merge_taxa to keep recored of merged (and inextension tax_glom). #1707
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi Paul,
are you interested in adding a (tiny) new feature to phyloseq?
I needed something to track what
tax_glom
andmerge_taxa
are doing and implemented a small feature to allow for a function (mostly relevant for pasting together or counting) to be applied to the length>1 entries of the merged/agglomerated taxa.I exposed the argument I implemented for
merge_taxa
only totax_glom
, not to any other of the relevant higher level functions (the only other relevant one would probably betip_glom
, I guess).I left the default intact, so it should not break anything. I added the required documentation (via
devtools::document()
) and did my best to make sure thatdevtools::check()
complains only about stuff that has nothing to do with my changes.Feel free to pull or ignore!
All the best,
Emanuel