Is it possible to split dada2 output files based on metadata groups?


I'm currently starting using Picrust2 with Qiime2. I want to run the algorithm to both patients and healthy controls ASV tables, so we can get a first idea of the different metabolic pathways for both groups.

I already have DADA2 executed for all the samples together. However, If I now want to run picrust separately, do I have to run dada2 again (one time for patients and another one for HC) or is there any command that splits up the files based on metadata information?

I have been searching for any topic about this but didn't find anything...

Thank you so much in advanced :slight_smile:

1 Like

In that case you only need to filter your feature tables. Please, check filtering tutorial.


Hello Timur!

Thank you so much!

Hello Trimur!

I see in the link that is it possible to filter tables.qza by a metadata column. But is it possible to do the same with rep-seqs.qza (output from dada2)? I need to filter both table.qza and rep-seqs.qza for the picrust step.

Thank you :slight_smile:

One can filter rep-seq.qza file based on filtered feature table.

  qiime feature-table filter-seqs \
    --i-data rep-seq.qza \
    --i-table filtered-table.qza \
    --o-filtered-data filtered-rep-seq.qza

Perfect! Thank you so much

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