Creating heatmap using hclust2

Hello, I am trying to generate the heatmap using hclust2 but ran into an error

ValueError: The number of observations cannot be determined on an empty distance matrix.

When I looked back at my file of merged_abundance_table_species.txt, indeed, it only has Body Site header and the bacterial strains. There were no numbers/digits next to the strains.

How do I solve this issue with the merged abundance table species?

Thanks in advance.

Regards,
Win Ning.

This is the merged abundance table species and the error message that came up with it.


Hi @WinNing
How have you generated the merged abundance table?

Hi,

I’ve already solved the issue! I was only using one sample to plot the heatmap but when I tried multiple samples, it ran fine!