Hi @anirban.mcgill!
Check out the --p-cluster
option:
--p-cluster TEXT Choices('samples', 'features', 'both', 'none')
Specify which axes to cluster. [default: 'both']
You can disable sample-axis clustering, which will keep the samples in the same order they are provided in the table.
You should be able to use this method to convert to a feature table:
https://docs.qiime2.org/2020.6/plugins/available/sample-classifier/metatable/
Using data from the Moving Pictures tutorial:
qiime sample-classifier metatable \
--i-table table.qza \
--m-metadata-file core-metrics-results/evenness_vector.qza \
--m-metadata-file core-metrics-results/faith_pd_vector.qza \
--m-metadata-file core-metrics-results/observed_features_vector.qza \
--m-metadata-file core-metrics-results/shannon_vector.qza \
--o-converted-table merged-table.qza
qiime feature-table transpose \
--i-table merged-table.qza \
--o-transposed-feature-table transposed-table.qza
qiime feature-table filter-features \
--i-table merged-table.qza \
--m-metadata-file transposed-table.qza \
--p-where "[id] IN ('pielou_evenness', 'faith_pd', 'observed_features', 'shannon_entropy')"\
--o-filtered-table filtered-table.qza
qiime feature-table heatmap \
--i-table filtered-table.qza \
--p-cluster none \
--o-visualization heatmap.qzv
Hope that helps! :qiime2: