Hi, is it possible to run several metrics at once? for example something like:
qiime diversity alpha \ --i-table table.qza \ --p-metric shannon,observed_otus,goods_coverage \ --o-alpha-diversity metrics.qza
above doesn’t work
thanks!
Hi, is it possible to run several metrics at once? for example something like:
qiime diversity alpha \ --i-table table.qza \ --p-metric shannon,observed_otus,goods_coverage \ --o-alpha-diversity metrics.qza
above doesn’t work
thanks!
As the following also doesn’t work,
qiime diversity alpha \
--i-table table.qza \
--p-metric shannon \
--p-metric pielou_e \
--o-alpha-diversity out
what I do is a simple bash for loop:
for i in shannon pielou_e
do
qiime diversity alpha
–i-table table.qza
–p-metric “$i”
–o-alpha-diversity out."$i"
done
and then we need to merge output .tsvs to merged.tsv bleeee,
I am using Jupyter lab to combine with Python (I don’t know bash commands)
variants = ['All', 'Root-Gall', 'Infected']
for variant in variants:
core = 'Data/Core-metrics_analysis/%s_Core-metrics' % variant
outdir = 'Results/Core-metrics_analysis/%s_Core-metrics' % variant
#Alpha diversity comparisons¶
alpha_diversity = ['shannon', 'faith_pd', 'evenness', 'observed_otus']
for alpha in alpha_diversity:
vector = core+'/%s_vector.qza' % alpha
ags_qzv = outdir+'/%s_vector_alpha-group-sign.qzv' % alpha
!qiime diversity alpha-group-significance \
--i-alpha-diversity $vector \
--m-metadata-file Metadata/metadata.tsv \
--o-visualization $ags_qzv
Yeah, after I use more Python to unpack the outputs, merge tables and plot figures.
I learned a lot of Python because of it.
Hey @timanix, I suggest you check out the Artifact API, it will provide a much more convenient way for working with QIIME 2 in a python environment:
Thanks! I will try it
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.