Error in .subscript.2ary(x, i, j, drop = TRUE): subscript out of bounds
Traceback:
1. SetDatExpr(CD4, wgcna_name = ct, group_name = ct, group.by = "meta.cluster",
. assay = "originalexp", slot = "data", )
2. as.data.frame(Seurat::GetAssayData(s_obj, assay = assay, slot = slot)[genes_use,
. cells])
3. Seurat::GetAssayData(s_obj, assay = assay, slot = slot)[genes_use,
. cells]
4. Seurat::GetAssayData(s_obj, assay = assay, slot = slot)[genes_use,
. cells]
5. .subscript.2ary(x, i, j, drop = TRUE)
6. stop("subscript out of bounds")
By inspection, I think the error may originate from the abnormal wgcna_genes obtained from SetupForWGCNA.
Because there are some abnormal 'NA' in wgcna_genes.
I got an Error when using
SetDatExpr
:By inspection, I think the error may originate from the abnormal
wgcna_genes
obtained fromSetupForWGCNA
. Because there are some abnormal 'NA' in wgcna_genes.