smorabit / hdWGCNA

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

Can't pass parameter wgcna_name to TestSoftPowers #201

Closed yizhang-zoey closed 3 months ago

yizhang-zoey commented 4 months ago

Code:

seurat_obj <- TestSoftPowers(
    seurat_obj,
    wgcna_name = "INH",
    networkType = 'signed', # you can also use "unsigned" or "signed hybrid"    
)

Output:

Error in WGCNA::pickSoftThreshold(datExpr, powerVector = powers, verbose = 100, : unused argument (wgcna_name = "INH")
Traceback:

1. TestSoftPowers(seurat_obj, wgcna_name = "INH", networkType = "signed", 
 .     )
smorabit commented 3 months ago

Hi,

Previously the wgcna_name parameter was not included in this function, and I intended users to use the SetActiveWGCNA function before running this function. However I updated hdWGCNA so in the newest version you can now use wgcna_name in this function.