Describe the bug
when I run the code of hdWGCNA, a error can not be solved by myself. Whether I use official website's files or my own data, I get the same error.. Please help me.
Steps to reproduce
Put code in this box
seurat_obj <- readRDS('Zhou_2020_control.rds')
p <- DimPlot(seurat_obj, group.by='cell_type', label=TRUE) +
umap_theme() + ggtitle('Zhou et al Control Cortex') + NoLegend()
p
seurat_obj <- SetupForWGCNA(
seurat_obj,
gene_select = "fraction", # the gene selection approach
fraction = 0.05, # fraction of cells that a gene needs to be expressed in order to be included
wgcna_name = "tutorial" # the name of the hdWGCNA experiment
)
construct metacells in each group
seurat_obj <- MetacellsByGroups(
seurat_obj = seurat_obj,
group.by = c("cell_type", "Sample"), # specify the columns in seurat_obj@meta.data to group by
reduction = 'harmony', # select the dimensionality reduction to perform KNN on
k = 25, # nearest-neighbors parameter
max_shared = 10, # maximum number of shared cells between two metacells
ident.group = 'cell_type' # set the Idents of the metacell seurat object
There seems to be a problem with your markdown formatting so it is difficult to read your code, can you please re-enter your code into a properly formatted box? Please consult the markdown style guide.
Describe the bug when I run the code of hdWGCNA, a error can not be solved by myself. Whether I use official website's files or my own data, I get the same error.. Please help me.
Steps to reproduce
Put code in this box
R session info R version 4.3.1 (2023-06-16) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 20.04.6 LTS