Learn R Programming

⚠️There's a newer version (1.73) of this package.Take me there.

WGCNA (version 1.61)

Weighted Correlation Network Analysis

Description

Functions necessary to perform Weighted Correlation Network Analysis on high-dimensional data. Includes functions for rudimentary data cleaning, construction of correlation networks, module identification, summarization, and relating of variables and modules to sample traits. Also includes a number of utility functions for data manipulation and visualization.

Copy Link

Version

Install

install.packages('WGCNA')

Monthly Downloads

16,961

Version

1.61

License

GPL (>= 2)

Last Published

August 5th, 2017

Functions in WGCNA (1.61)

BloodLists

Blood Cell Types with Corresponding Gene Markers
BrainLists

Brain-Related Categories with Corresponding Gene Markers
GTOMdist

Generalized Topological Overlap Measure
ImmunePathwayLists

Immune Pathways with Corresponding Gene Markers
PWLists

Pathways with Corresponding Gene Markers - Compiled by Mike Palazzolo and Jim Wang from CHDI
SCsLists

Stem Cell-Related Genes with Corresponding Gene Markers
AFcorMI

Prediction of Weighted Mutual Information Adjacency Matrix by Correlation
BD.getData

Various basic operations on BlockwiseData objects.
BrainRegionMarkers

Gene Markers for Regions of the Human Brain
GOenrichmentAnalysis

Calculation of GO enrichment (experimental)
addGuideLines

Add vertical ``guide lines'' to a dendrogram plot
addErrorBars

Add error bars to a barplot.
TOMplot

Graphical representation of the Topological Overlap Matrix
TOMsimilarityFromExpr

Topological overlap matrix
TrueTrait

Estimate the true trait underlying a list of surrogate markers.
adjacency.splineReg

Calculate network adjacency based on natural cubic spline regression
alignExpr

Align expression data with given vector
TOMsimilarity

Topological overlap matrix similarity and dissimilarity
allocateJobs

Divide tasks among workers
allowWGCNAThreads

Allow and disable multi-threading for certain WGCNA calculations
branchSplit.dissim

Branch split based on dissimilarity.
addTraitToMEs

Add trait information to multi-set module eigengene structure
automaticNetworkScreening

One-step automatic network gene screening
automaticNetworkScreeningGS

One-step automatic network gene screening with external gene significance
bicovWeights

Weights used in biweight midcovariance
blockSize

Attempt to calculate an appropriate block size to maximize efficiency of block-wise calcualtions.
coClustering.permutationTest

Permutation test for co-clustering
colQuantileC

Fast colunm- and row-wise quantile of a matrix.
consensusProjectiveKMeans

Consensus projective K-means (pre-)clustering of expression data
addGrid

Add grid lines to an existing plot.
bicor

Biweight Midcorrelation
bicorAndPvalue

Calculation of biweight midcorrelations and associated p-values
blockwiseModules

Automatic network construction and module detection
blueWhiteRed

Blue-white-red color sequence
checkAdjMat

Check adjacency matrix
collectGarbage

Iterative garbage collection.
WGCNA-package

Weighted Gene Co-Expression Network Analysis
accuracyMeasures

Accuracy measures for a 2x2 confusion matrix or for vectors of predicted and observed values.
adjacency

Calculate network adjacency
adjacency.polyReg

Adjacency matrix based on polynomial regression
blockwiseConsensusModules

Find consensus modules across several datasets.
blockwiseIndividualTOMs

Calculation of block-wise topological overlaps
clusterCoef

Clustering coefficient calculation
checkSets

Check structure and retrieve sizes of a group of datasets.
branchSplitFromStabilityLabels

Branch split (dissimilarity) statistics derived from labels determined from a stability study
collapseRows

Select one representative row per group
collapseRowsUsingKME

Selects one representative row per group based on kME
conformityBasedNetworkConcepts

Calculation of conformity-based network concepts.
correlationPreservation

Preservation of eigengene correlations
coxRegressionResiduals

Deviance- and martingale residuals from a Cox regression model
exportNetworkToVisANT

Export network data in format readable by VisANT
branchEigengeneDissim

Branch dissimilarity based on eigennodes (eigengenes).
branchSplit

Branch split.
chooseOneHubInEachModule

Chooses a single hub gene in each module
chooseTopHubInEachModule

Chooses the top hub gene in each module
conformityDecomposition

Conformity and module based decomposition of a network adjacency matrix.
consensusCalculation

Calculation of a (single) consenus with optional data calibration.
consensusTOM

Consensus network (topological overlap).
cor

Fast calculations of Pearson correlation.
fixDataStructure

Put single-set data into a form useful for multiset calculations.
greenBlackRed

Green-black-red color sequence
greenWhiteRed

Green-white-red color sequence
Inline display of progress

Inline display of progress
consensusDissTOMandTree

Consensus clustering based on topological overlap and hierarchical clustering
consensusKME

Calculate consensus kME (eigengene-based connectivities) across multiple data sets.
corPvalueFisher

Fisher's asymptotic p-value for correlation
corPvalueStudent

Student asymptotic p-value for correlation
coClustering

Co-clustering measure of cluster preservation between two clusterings
consensusMEDissimilarity

Consensus dissimilarity of module eigengenes.
consensusOrderMEs

Put close eigenvectors next to each other in several sets.
cutreeStatic

Constant-height tree cut
consensusRepresentatives

Consensus selection of group representatives
corAndPvalue

Calculation of correlations and associated p-values
corPredictionSuccess

Qunatification of success of gene screening
formatLabels

Break long character strings into multiple lines
fundamentalNetworkConcepts

Calculation of fundamental network concepts from an adjacency matrix.
goodSamples

Filter samples with too many missing entries
goodSamplesGenes

Iterative filtering of samples and genes with too many missing entries
keepCommonProbes

Keep probes that are shared among given data sets
cutreeStaticColor

Constant height tree cut using color labels
goodGenes

Filter genes with too many missing entries
goodGenesMS

Filter genes with too many missing entries across multiple sets
hierarchicalConsensusMEDissimilarity

Hierarchical consensus calculation of module eigengene dissimilarity
intramodularConnectivity

Calculation of intramodular connectivity
mergeCloseModules

Merge close modules in gene expression data
metaAnalysis

Meta-analysis of binary and continuous variables
modulePreservation

Calculation of module preservation statistics
labelPoints

Label scatterplot points
labeledBarplot

Barplot with text or color labels.
labeledHeatmap

Produce a labeled heatmap plot
empiricalBayesLM

Empirical Bayes-moderated adjustment for unwanted covariates
exportNetworkToCytoscape

Export network to Cytoscape
hierarchicalConsensusCalculation

Hierarchical consensus calculation
hierarchicalConsensusKME

Calculation of measures of fuzzy module membership (KME) in hierarchical consensus modules
hierarchicalConsensusModules

Hierarchical consensus network construction and module identification
isMultiData

Determine whether the supplied object is a valid multiData structure
kMEcomparisonScatterplot

Function to plot kME values between two comparable data sets.
matchLabels

Relabel module labels to best match the given reference labels
matrixToNetwork

Construct a network from a matrix
moduleMergeUsingKME

Merge modules and reassign genes using kME.
moduleNumber

Fixed-height cut of a dendrogram.
mtd.setAttr

Set attributes on each component of a multiData structure
mtd.setColnames

Get and set column names in a multiData structure.
networkScreening

Identification of genes related to a trait
networkScreeningGS

Network gene screening with an external gene significance measure
orderMEsByHierarchicalConsensus

Order module eigengenes by their hierarchical consensus similarity
hierarchicalConsensusTOM

Calculation of hierarchical consensus topological overlap matrix
hierarchicalMergeCloseModules

Merge close (similar) hierarchical consensus modules
list2multiData

Convert a list to a multiData structure and vice-versa.
lowerTri2matrix

Reconstruct a symmetric matrix from a distance (lower-triangular) representation
mtd.apply

Apply a function to each set in a multiData structure.
multiData

Create a multiData structure.
multiData.eigengeneSignificance

Eigengene significance across multiple sets
newBlockInformation

Create a list holding information about dividing data into blocks
mtd.mapply

Apply a function to elements of given multiData structures.
mtd.rbindSelf

Turn a multiData structure into a single matrix or data frame.
multiUnion

Union and intersection of multiple sets
newBlockwiseData

Create, merge and expand BlockwiseData objects
normalizeLabels

Transform numerical labels into normal order.
numbers2colors

Color representation for a numeric variable
plotColorUnderTree

Plot color rows in a given order, for example under a dendrogram
overlapTable

Calculate overlap of modules
plotMEpairs

Pairwise scatterplots of eigengenes
plotMat

Red and Green Color Image of Data Matrix
plotNetworkHeatmap

Network heatmap plot
mutualInfoAdjacency

Calculate weighted adjacency matrices based on mutual information
nearestNeighborConnectivityMS

Connectivity to a constant number of nearest neighbors across multiple data sets
networkConcepts

Calculations of network concepts
newCorrelationOptions

Creates a list of correlation options.
newNetworkOptions

Create a list of network construction arguments (options).
plotDendroAndColors

Dendrogram plot with color annotation of objects
plotEigengeneNetworks

Eigengene network plot
plotModuleSignificance

Barplot of module significance
plotCor

Red and Green Color Image of Correlation Matrix
prependZeros

Pad numbers with leading zeros to specified total width
rankPvalue

Estimate the p-value for ranking consistently high (or low) on multiple lists
plotMultiHist

Plot multiple histograms in a single plot
qvalue.restricted

qvalue convenience wrapper
randIndex

Rand index of two partitions
selectFewestConsensusMissing

Select columns with the lowest consensus number of missing data
preservationNetworkConnectivity

Network preservation calculations
displayColors

Show colors used to label modules
dynamicMergeCut

Threshold for module merging
goodSamplesGenesMS

Iterative filtering of samples and genes with too many missing entries across multiple data sets
goodSamplesMS

Filter samples with too many missing entries across multiple data sets
setCorrelationPreservation

Summary correlation preservation measure
signedKME

Signed eigengene-based connectivity
signumAdjacencyFunction

Hard-thresholding adjacency function
populationMeansInAdmixture

Estimate the population-specific mean values in an admixed population.
recutConsensusTrees

Repeat blockwise consensus module detection from pre-calculated data
redWhiteGreen

Red-white-green color sequence
scaleFreeFitIndex

Calculation of fitting statistics for evaluating scale free topology fit.
recutBlockwiseTrees

Repeat blockwise module detection from pre-calculated data
returnGeneSetsAsList

Return pre-defined gene lists in several biomedical categories.
rgcolors.func

Red and Green Color Specification
simpleConsensusCalculation

Simple calculation of a single consenus
metaZfunction

Meta-analysis Z statistic
minWhichMin

Fast joint calculation of row- or column-wise minima and indices of minimum elements
multiGSub

Analogs of grep(l) and (g)sub for multiple patterns and relacements
multiSetMEs

Calculate module eigengenes.
nPresent

Number of present data entries.
nSets

Number of sets in a multi-set variable
orderBranchesUsingHubGenes

Optimize dendrogram using branch swaps and reflections.
sizeGrWindow

Opens a graphics window with specified dimensions
softConnectivity

Calculates connectivity of a weighted network.
swapTwoBranches

Select, swap, or reflect branches in a dendrogram.
transposeBigData

Transpose a big matrix or data frame
simpleHierarchicalConsensusCalculation

Simple hierarchical consensus calculation
standardScreeningNumericTrait

Standard screening for numeric traits
stdErr

Standard error of the mean of a given vector.
verboseBarplot

Barplot with error bars, annotated by Kruskal-Wallis or ANOVA p-value
verboseBoxplot

Boxplot annotated by a Kruskal-Wallis p-value
votingLinearPredictor

Voting linear predictor
hubGeneSignificance

Hubgene significance
individualTOMs

Calculate individual correlation network matrices
labeledHeatmap.multiPage

Labeled heatmap divided into several separate plots.
labels2colors

Convert numerical labels to colors.
moduleColor.getMEprefix

Get the prefix used to label module eigengenes.
moduleEigengenes

Calculate module eigengenes.
mtd.simplify

If possible, simplify a multiData structure to a 3-dimensional array.
mtd.subset

Subset rows and columns in a multiData structure
nearestCentroidPredictor

Nearest centroid predictor
nearestNeighborConnectivity

Connectivity to a constant number of nearest neighbors
newConsensusOptions

Create a list holding consensus calculation options.
newConsensusTree

Create a new consensus tree
pickSoftThreshold

Analysis of scale free topology for soft-thresholding
plotClusterTreeSamples

Annotated clustering dendrogram of microarray samples
projectiveKMeans

Projective K-means (pre-)clustering of expression data
propVarExplained

Proportion of variance explained by eigengenes.
scaleFreePlot

Visual check of scale-free topology
simulateEigengeneNetwork

Simulate eigengene network from a causal model
simulateModule

Simulate a gene co-expression module
simulateMultiExpr

Simulate multi-set expression data
simulateSmallLayer

Simulate small modules
unsignedAdjacency

Calculation of unsigned adjacency
userListEnrichment

Measure enrichment between inputted and user-defined lists
proportionsInAdmixture

Estimate the proportion of pure populations in an admixed population based on marker expression values.
qvalue

Estimate the q-values for a given set of p-values
sampledBlockwiseModules

Blockwise module identification in sampled data
sampledHierarchicalConsensusModules

Hierarchical consensus module identification in sampled data
simulateDatExpr

Simulation of expression data
simulateDatExpr5Modules

Simplified simulation of expression data
standardScreeningBinaryTrait

Standard screening for binatry traits
standardScreeningCensoredTime

Standard Screening with regard to a Censored Time Variable
vectorTOM

Topological overlap for a subset of the whole set of genes
vectorizeMatrix

Turn a matrix into a vector of non-redundant components
orderMEs

Put close eigenvectors next to each other
overlapTableUsingKME

Determines significant overlap between modules in two networks based on kME tables.
pickHardThreshold

Analysis of scale free topology for hard-thresholding.
pquantile

Parallel quantile, median, mean
prepComma

Prepend a comma to a non-empty string
relativeCorPredictionSuccess

Compare prediction success
removeGreyME

Removes the grey eigengene from a given collection of eigengenes.
removePrincipalComponents

Remove leading principal components from data
replaceMissing

Replace missing values with a constant.
shortenStrings

Shorten given character strings by truncating at a suitable separator.
sigmoidAdjacencyFunction

Sigmoid-type adacency function.
spaste

Space-less paste
standardColors

Colors this library uses for labeling modules.
stratifiedBarplot

Bar plots of data across two splitting parameters
subsetTOM

Topological overlap for a subset of a whole set of genes
verboseIplot

Scatterplot with density
verboseScatterplot

Scatterplot annotated by regression line and p-value