Hi,
I am attempting to use the feature-table filter samples to extract the ectomycorrhizal fungi from my table, and I keep having issues. I have done this before, so I am unsure why it is not working this time.
I have used the script below.
qiime feature-table filter-samples \
--i-table core-metrics-results/rarefied_table.qza \
--m-metadata-file FUNGuild/Fungal-T1-T17-table-with-taxonomy.guilds_matched.tsv \
--p-where "[Guild]='Ectomycorrhizal' AND [Confidence Ranking]='Highly Probable'" \
--o-filtered-table EcM/DADA2/Rarefied/EcM-Table-T1-T17-Merged-HP-Rare.qza
and this will output a table, supposedly, but when I try to create the .qzv file, I get the following error.
qiime feature-table summarize \
--i-table EcM/DADA2/Rarefied/EcM-Table-T1-T17-Merged-HP-Rare.qza \
--m-sample-metadata-file Metadata/Fungi-MetaRare.tsv \
--o-visualization EcM/DADA2/Rarefied/EcM-Table-T1-T17-Merged-HP-Rare.qzv
ValueError: ids_to_keep
must contain at least one ID.
I have also ran the code using
qiime feature-table filter-samples \
--i-table core-metrics-results/rarefied_table.qza \
--m-metadata-file FUNGuild/Fungal-T1-T17-table-with-taxonomy.guilds_matched.tsv \
--p-where "Guild='Ectomycorrhizal' AND Confidence Ranking='Highly Probable'" \
--o-filtered-table EcM/DADA2/Rarefied/EcM-Table-T1-T17-Merged-HP-Rare.qza
but I get this error
Plugin error from feature-table:
- Selection of IDs failed with query:
- SELECT "#OTUID" FROM metadata WHERE [Guild]='Ectomycorrhizal'' AND [Confidence Ranking]='Highly Probable' GROUP BY "#OTUID" ORDER BY "#OTUID";**
- If one of the metadata column names specified in the
where
statement is on this list of reserved keywords (SQLite Keywords), please ensure it is quoted appropriately in thewhere
statement.**
The only thing I can think of is that my metadata has #OTU as header, and my feature table has #SampleID, but even when I change the metadata name, it still does not work.
If you could please help me with this issue, I would really appreciate it.
Thanks,
Fabi