selfteaching/How-To-Ask-Questions-The-Smart-Way

plot_gsva_heatmap order columns

NaomiCroft opened this issue · 0 comments

Hello,
I am trying to order the columns using the plot_gsva_heatmap() function.
This is my script:
plot_gsva_heatmap(MacsVac_seurat_gsva,
pathway_ids = relevant_pathways,
margins = c(10,25),
dendrogram = "col",
scale = "row",
key = FALSE,
sns.set(font_scale=8),
lwid=c(0.1,2))
And here is the plot
image
I know currently the columns are organised by similarity given by euclidean distance, but want to control the ordering over a timeline.

I want the columns to be in this order: Macrophages_Preimm, Macrophages_VacD1, Macrophages_VacD7, Macrophages_VacD15

There is no column_order function in plot_gsva_heatmap() I think.

Thanks in advance for your help!
Naomi