This should work (mcmd$st is a cell-type annotation):
ann_list = generate_pheatmap_annotation(clust_vec = mcmd$st, feature_type = "cell_type", feature_annotation = "color")
But gives an error:
`
Error in stop_vctrs(class = c(class, "vctrs_error_names"), ...): Names must be unique.
✖ These names are duplicated:
tibble(name = cts, color = chameleon::distinct_colors(length(cts))$name) %>%
. rename(:=(!!feature_annotation, name)) # at line 67-68 of file /home/feshap/src/mcATAC/R/utils.R
This should work (mcmd$st is a cell-type annotation):
ann_list = generate_pheatmap_annotation(clust_vec = mcmd$st, feature_type = "cell_type", feature_annotation = "color")
But gives an error:
` Error in stop_vctrs(class = c(class, "vctrs_error_names"), ...): Names must be unique. ✖ These names are duplicated:
:=
(!!feature_annotation, name)) # at line 67-68 of file /home/feshap/src/mcATAC/R/utils.R:=
(!!feature_annotation, name)):=
(!!feature_annotation, name))