broadinstitute / infercnv

Inferring CNV from Single-Cell RNA-Seq
Other
557 stars 164 forks source link

chmNewColorMap: number of values (752) does not equal number of color (723). It should. #650

Open mayan2009 opened 6 months ago

mayan2009 commented 6 months ago

Hi I am runing infercnv and want to visualize using NGCHM, my code is like this:
library(NGCHM) library(infercnvNGCHM) infercnv_obj<-readRDS("./cnv/run.final.infercnv_obj") ngchm(infercnv_obj = infercnv_obj, out_dir = "./cnv", path_to_shaidyMapGen = "ShaidyMapGen.jar", gene_symbol = "bio.gene.hugo") the output is like INFO [2024-03-29 20:30:06] Creating NGCHM as infercnv.ngchm INFO [2024-03-29 20:30:06] Initializing new NGCHM InferCNV Object.

and I got this error Error in NGCHM::chmNewColorMap(values = as.vector(dendrogram_unique_group), : chmNewColorMap: number of values (752) does not equal number of color (723). It should. Calls: ngchm ... setRowCovariateBar -> setRowCovariateBar -> Execution halted Could someone help to see what happened? I continuously got this error for different datasets.