Converting distance matrix txt to qza file?

Hi everyone,

I am new to qiime2 and have an old workflow from the older version of qiime. I am trying to use the beta-group-significance function. I am using a distance matrix from my old qiime workflow, which is in .txt format. When I run the command the error pops up that the distance matrix txt file is “not a Qiime archive”. I am wondering if Qiime2 requires that distance matrix files are in .qza or .tsv format? If so, is it possible to convert my old distance matrix.txt to the proper format?

Thank you in advance for your help.


Yes, all files used by QIIME 2 must be imported as a QZA file (with the exception of metadata files, which can be text/TSV).

Yes! Something like this should work:

qiime tools import \
    --input-path old_distance_matrix.txt \
    --output-path new_distance_matrix.qza \
    --type DistanceMatrix

(for future reference, if you are trying to import a file type that is not described in the importing tutorial, this command will list the importable types so you should be able to figure out the type from that list: qiime tools import --show-importable-types)

1 Like

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