Closed anabbi closed 3 years ago
Sorry, I was working on other projects and did see your question.
Can you also send me the two variables myalign_to
and mygo_id
?
No worries. Thanks for getting back to me. See attached.
It is because align_to
was in the wrong format. Since go_list
is a list of 24, align_to
should also be a list of 24.
Thanks. In this example from your vignette, km
is a vector with elements overlapping go_list
names?
load(system.file("extdata", "golub_sig_go.RData", package = "simplifyEnrichment")) head(km) str(go_list) library(circlize) Heatmap(t(scale(t(sig_mat))), name = "z-score", col = colorRamp2(c(-2, 0, 2), c("green", "white", "red")), show_row_names = FALSE, show_column_names = FALSE, row_title = NULL, column_title = NULL, show_row_dend = FALSE, show_column_dend = FALSE, row_split = km) + rowAnnotation(go = anno_word_cloud_from_GO(km, go_list, max_words = 30))
That is a second format for the align_to
which is a categorical variable.
If align_to
is set as a categorical variable, internally it will be converted to split(seq_along(km), km)
Hi Zuguang,
your new
anno_word_cloud_from_GO
function is a real help for me. I am trying to annotate a heatmap from a categorical vector with their respective GO terms.My
align_to
is just a vector with genes as names:My
go_list
is a list, where names matches elements in myalign_to
and their elements are GO terms:The following command does not seem to find my GO terms:
mmy_ha = rowAnnotation(go = anno_word_cloud_from_GO(myalign_to, mygo_id, max_words = 30))
it gives me the following error:
Any comments?
Best, Arash