Metaphlan heatmap

Hi there,

I am trying to create a heat map from metaphlan output. However, there seems to be an issue with the file labeling on the x-axis. Instead of displaying the correct labels, it’s showing random numbers.

merged_abundance_table.txt (6.6 KB)
merged_abundance_table_species.txt (548 Bytes)

Hi @caizhangbin,
when you create the species level abundance table make sure you always include as first row the header with information about which samples the relative abundance is computed from, which is present in the original table. In your case you could use grep -E "s__|D7" merged_abundance_table.txt | grep -v "t__" | sed "s/^.*|//g" > merged_abundance_table_species.txt to retain the sample names.