qiime2 / q2-taxa

BSD 3-Clause "New" or "Revised" License
3 stars 29 forks source link

taxa-barplot: set 'others' group when plotting taxa #147

Open lizgehret opened 2 years ago

lizgehret commented 2 years ago

After assigning taxa when making the associated bar plot, it would be nice to have the ability to set an "others" group. For example, for taxa that are lower than 1%, group all of them to something like "others" or "low-abundance".

OP from the QIIME 2 forum: https://forum.qiime2.org/t/how-to-set-others-while-assign-taxa/23196

thermokarst commented 2 years ago

Is this a feature request for q2-taxa, or for q2-feature-classifier (or both, or neither)? Taxonomic assignment happens with the various methods in q2-feature-classifier. I could certainly see having some sort of toggle-able widget in the barplot visualization that would allow for on-the-fly regrouping of low abundance features, but I think there's also precedent for addressing this kind of thing using standard filtering techniques, like:

https://docs.qiime2.org/jupyterbooks/cancer-microbiome-intervention-tutorial/030-tutorial-downstream/020-taxonomy.html

lizgehret commented 2 years ago

@thermokarst this is a feature request for q2-taxa when creating the barplot viz - the toggle-able widget that you mentioned sounds like what the OP was asking about (forum post linked above - although their question is somewhat vague).

thermokarst commented 2 years ago

Can you edit the title and issue body to clarify that? The "assigning taxa" parts are why I asked for clarification. Thanks!

lizgehret commented 2 years ago

@thermokarst can do, sorry for the confusion!