Identifying ASV Taxon Names Key and ASV Read Count Table Files

Hello there!

I am currently conducting analyses on vaginal microbiome samples using QIIME 2. I have successfully completed several steps in my analysis pipeline, and now I would like to classify these samples into CSTs (Community State Types).

I am interested in using Valencia, as I have come across several papers that utilize it for this purpose. (Here is the GitHub link: GitHub - ravel-lab/VALENCIA: VAginaL community state typE Nearest CentroId clAssifier). However, I am encountering difficulty in identifying where to find the required files generated by QIIME: the ASV taxon names key and the ASV read count table.

I would greatly appreciate any assistance or guidance you can provide in locating these files within my QIIME 2 analysis results.

Thank you very much for your help!

1 Like

Hi @Julia_Botto,
Welcome to the :qiime2: forum!

Sounds like you need to run qiime tools extract on your taxonomy and your feature table and that should get you files that will work with Valencia.

Let me know if this works. I have never used Valencia so its possible we will need to do more brainstorming.

Hope that helps!


thank you very much for your help @cherman2 !

So, I tried to use the taxonomy and feature table, but the file generated in the feature table has the biom format, and the code asks for csv. I tried to do it with this format anyway but I got the error:
ValueError: Length mismatch: Expected axis has 2 elements, new values have 7 elements

I also did a test and tried to manually assemble the csv table that is needed for the input. To do this, I used the "sample-frequency" and the bar plots csv file from level 7 and it generated an output classifying the CSTs. But it's a lot of work because the format of the taxonomy generated by qiime is different from that used by Valencia, for example, qiime uses the taxon nomenclature to classify the CSTs: d__Bacteria;p__Firmicutes_D;c__Bacilli;o__Lactobacillales;f__Lactobacillaceae;g__Lactobacillus;s__Lactobacillus iners
And Valencia asks for Lactobacillus_iners
I don't know if I used the right files for the input, but I tested with some samples and got the CST classification..

Thanks again for your help, hope we can figure it out together! :grinning:

Looks like you successfully exported feature table as biom file. It is not your goal, but a step. You need to convert biom file to tsv file and then tsv to csv (or can you export it directly to csv? :thinking:).