smorabit / hdWGCNA

High dimensional weighted gene co-expression network analysis
https://smorabit.github.io/hdWGCNA/
Other
316 stars 31 forks source link

How to get the adjacency matrix using hdWGCNA? #187

Closed venkan closed 5 months ago

venkan commented 5 months ago

Usually in WGCNA we can get the adjacency matrix like the below:

adj= adjacency(datExpr,type = "unsigned", power = softPower);

How adjacency matrix can be created from scRNA using hdWGCNA?

smorabit commented 5 months ago

Have you tried something like this:

datExpr <- GetDatExpr(seurat_obj)
softPower <- 6 # change this to whatever is appropriate for your dataset!
adj <-  WGCNA::adjacency(datExpr,type = "unsigned", power = softPower);
venkan commented 5 months ago

yes, this worked. Thank you !!