zhanghao-njmu / SCP

An end-to-end Single-Cell Pipeline designed to facilitate comprehensive analysis and exploration of single-cell data.
https://zhanghao-njmu.github.io/SCP/
GNU General Public License v3.0
327 stars 70 forks source link

Error: Cannot create zero-length unit vector ("unit" subsetting) (ht <- DynamicHeatmap) #220

Open 31474molly opened 7 months ago

31474molly commented 7 months ago

When I run ht <- DynamicHeatmap( srt = sce2, lineages = c("Lineage1", "Lineage2"), use_fitted = TRUE, n_split = 6, reverse_ht = "Lineage1", species = "Homo_sapiens", db = "GO_BP", anno_terms = TRUE, anno_keys = TRUE, anno_features = TRUE, heatmap_palette = "viridis", cell_annotation = "celltype", feature_annotation = c("TF", "CSPA"), feature_annotation_palcolor = list(c("gold", "steelblue"), c("forestgreen")), pseudotime_label = 25, pseudotime_label_color = "red", height = 5, width = 2 )

I got the error: ht <- DynamicHeatmap(

Set ht_opt$message = FALSE to turn off this message. Error: Cannot create zero-length unit vector ("unit" subsetting)

Could anyone tell me how can I solve it? Thanks!!