qiime2R heatmap

Hi,
I have generated a heatmap from the qiime2R package as shown here:


But how can I change the feature into "genera(phylum)" (eg: Pseudomonas(Proteobacteria)) instead of a long feature name (the whole taxon)?

Thanks!

Hi @suetli19
you can try modify this line "mutate(Feature=gsub("[kpcofgs]__", "", Feature)) %>% " to "mutate(Feature=gsub("k__.*f__", "", Feature)) %>% "

2 Likes

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.