Export percentage of taxa-bar-plots.qzv to csv

when i export data from taxa-bar-plots.qzv to csv, how to export the percentage information? thx.!


Hi @Yanfei-Geng! Exposing this CSV download as relative abundances is on our radar, but we haven’t gotten to it just yet. You can always compute these values yourself using the absolute values available in the CSV. Stay tuned, we will update this post when that feature becomes available (although right now we don’t have a good ETA for when that will happen). Thanks! :t_rex:

1 Like

Hey @Yanfei-Geng,

I have had this issue before when needing percentages. I wrote this script to convert the csv file which you download from the taxa-bar-plots.qzv into percent abundance. Hope this helps!


Another question in this matter is, if there is any possibility to export aggregated counts of each taxa ?
Currently after exporting, one need to aggregate the same taxa using for example R (phyloseq) while it would be more useful to use qiime2 instead.
Thanks in advice :slight_smile:

thank you very much, 谢谢 xiexie.

Hi @Jaroslaw_Grzadziel - how about something like the following:

$ qiime taxa collapse \
  --i-table table.qza \
  --i-taxonomy taxonomy.qza \
  --p-level 6
  --o-collapsed-table genus-table.qza
$ qiime feature-table summarize \
  --i-table genus-table.qza \
  --o-visualization genus-table.qzv

Hi @thermokarst, it totally solved my problem !
Thank you, maybe this step should be placed somewhere inside a tutorial ?

1 Like

Hi @Jaroslaw_Grzadziel!

We have an example of collapsing a feature table in the Moving Pictures tutorial! :t_rex:

@thermokarst thank you and sorry for my mistake :slight_smile:

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.