converting a presence-absence table with columns as samples and rows as species to a matrix with species in both columns and rows

Hi all,

I need to convert the presence-absence table produced by qiime to a binary matrix where the feature ids are present in both columns and rows. I want this matrix to be used in cophylogeny analysis.
The tools I’m interested in requires a binary matrix coding the relationship among species.

I was wondering if anyone knows how to do this kind of work. Any help is much appreciated!!!

Many thanks in advance!

Uthpala

I have the same question :slight_smile:
Also, the output of qiime feature-table presence-absence is a .qza file - how do I convert this to .qzv (visualization file)?
I tried using qiime feature-table summarize, but it didn’t really produce what I need.

Many thanks!