fit_modules | R Documentation |
Perform soft thresholding in preparation for WGCNA module building
fit_modules(
dat,
genes = NULL,
powerVector = c(1:30),
networkType = "signed",
nThread = 2
)
dat |
limma EList output by voom( ). Must include dat$E |
genes |
Character vector of genes to used in module building. Must match rownames in dat. If not set, all genes in dat are used |
powerVector |
Numeric vector of soft thresholding powers for which the scale free topology fit indices are to be calculated. Default c(1:30) |
networkType |
Character string of network type. Allowed values are "unsigned", "signed", "signed hybrid" |
nThread |
Integer for number of threads to use |
List including:
genes Character vector of genes used in module building
sft Data frame with soft thresholding results including R-squared, slope, and k metrics
top.plot ggplot object of soft thresholding topology
connect.plot ggplot object of soft thresholding connectivity
fit <- fit_modules(dat = example.voom)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.