Problem with taxa-collapse: Please provide a DataFrame with a string-based Index

Hello everyone!

I’m working with Qiime2 and running this command:

qiime taxa collapse --i-table id-filtered-table2.qza --i-taxonomy taxonomy.qza --p-level 2 --o-collapsed-table table-taxonomy-Phylum.qza

but I get this error:

Plugin error from taxa:

** Please provide a DataFrame with a string-based Index**

Prior to that I had to filter the table, because I got this error:

Plugin error from taxa:

** Feature IDs found in the table are missing from the taxonomy: {‘ebd23dbbb343ab6ae14a9551a6d1f99c’, ‘44c119e00a6c9e7c231fc6d80aebbad7’, ‘a96cbbab429c69110fcfb8fe37322d96’, ‘dba87dd363101fdc91e55538f1eef976’, ‘816303d868f90623bad0db9922d86fb1’, ‘abc84cf134fcbdafc015ce2d173a752a’, ‘3b40488ce4fb31cbcdacfb96ca438714’}**

And for that I used following command:

qiime feature-table filter-samples
–i-table table-f.qza
–m-metadata-file samples-to-keep.tsv
–o-filtered-table id-filtered-table2.qza

In samples-to-keep.tsv I copied the contents of metadata.tsv file.

And I have checked all the files: they are not empty and ID’s are strings.

Has anyone ever encountered such problem and could suggest a solution?
Thank you guys!

Welcome to the forum, @Lia_Abramovitch!

Uh oh, sounds like maybe you are using sample IDs that consist of numbers. While this is allowed in QIIME 2, it is discouraged because some of the underlying dependencies can’t handle numeric sample IDs. See this topic for more details and a workaround:

Good luck!

1 Like

Hello, thanks for the welcoming!

Thank you for the tip!

I have checked my sample-id's and they all look like this:

sample-id
a9d18759853d110736a1361f87155daa
e91deecb4eae2a4ebc4e071d2d1145bf
e0fb84447aa11fbc6f66ca17f92ab7b8
...

It appears to be a string, so I don't understand the persisting error message.

I have attached the 2 files involved in the first command listed. Maybe that will help.

id-filtered-table2.qza (228.2 KB) taxonomy.qza (432.7 KB)

Thanks for sending the table!

The issue with the table is that it is totally empty: no samples, no features. I see you filtered the table a couple times; one of these filtering steps must have removed all samples and features.

To debug this issue: you can run qiime feature-table summarize on a feature table to check out the contents… use this on the feature table before each stage of filtering to figure out which step went wrong.

Good luck! Let me know if you figure this out or need more assistance.

1 Like

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