Check your metadata again if you have duplicated sample IDs or rows/columns
Check if you have trailing rows
Check if your tables are tab-separated (.tsv), not comma separated (.csv). Just renaming the extention will not convert .csv to .tsv, you can check it by opening file in text editor and see if values separated by tabs or commas.
Here is the link to stackoverflow topic about the same issue in R (maybe it will help to figure out what is happening there).
From source code of q2-diversity i can see, that it's actually error with DistanceMatrix artifact, which is weird as it was produced in QIIME2 upstream.
Hi again, @crusher083
Did you manage to resolve this issue?
Turned out that some special characters in Sample Id's and column names may at the same time be processed by Qiime2 upstream Adonis without any errors and cause a failure in R packages.
So, if you are still getting an error, could you try to get rid of all special characters in the metadata and sample IDs?
If it will not help, you can share with us your files so we can take a closer look on it and help you to get through this error.
@crusher083 ,
I am pretty sure that your sample IDs are being interpreted as integers, most likely by R, and hence it is transforming your unique, float-like IDs into duplicated integer IDs.
I recommend converting those sample IDs to strings (replace the decimal with an underscore?) and try again. This could be done in R to save time, or load as a pandas dataframe (as I have done above), fix the sample IDs, and then re-import as a QIIME 2 artifact.