I am facing the problems to convert other files to .pza files to run in qiime2. I successfully converted otu.tsv to biom and then .qza file. However, to run alpha diversity, I need input the --i-phylogeny ARTIFACT (Phylogeny[Rooted] ) to run qiime diversity core-metrics-phylogenetic for alpha diversity analysis.
Could you suggest the way to convert the .tre file qza file.
Thank you very much for your kind reply,
I would like to know to more about whether the converted .tre into qza file (by ete or ape) can be used in the
commandl line : "qiime diversity core-metrics-phylogenetic"
qiime diversity core-metrics-phylogenetic
--i-phylogeny rooted-tree.qza
--i-table table.qza
--p-sampling-depth 1109
--m-metadata-file sample-metadata.tsv
--output-dir core-metrics-results
My original .tre file can be found fromt this link: closed_reference.tre - Google Drive. Currently, I do not know how to import them into qiime2 with the format .qza. Additionally, could you check for whether this table is rooted or unrooted?
Yes, as long as the tool you are using outputs a standard newick formatted tree (all of them do as far as I know), you can import into QIIME 2. I noticed that you are using a closed-reference tree. These are typically already rooted. The skbio package is used to handle newick trees as outlined here.
You can import your unrooted tree, and apply a midpoint root follows:
Thank you so much for your precious time and and clear explanation, Mike. I am so happy. I think I can continue the qiime pipeline with your clear explanation.