Learn R Programming

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

WGCNA (version 1.42)

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

11,673

Version

1.42

License

GPL (>= 2)

Maintainer

Peter Langfelder

Last Published

December 4th, 2014

Functions in WGCNA (1.42)

BrainRegionMarkers

Gene Markers for Regions of the Human Brain
blockwiseIndividualTOMs

Calculation of block-wise topological overlaps
conformityBasedNetworkConcepts

Calculation of conformity-based network concepts.
coClustering

Co-clustering measure of cluster preservation between two clusterings
consensusDissTOMandTree

Consensus clustering based on topological overlap and hierarchical clustering
moduleMergeUsingKME

Merge modules and reassign genes using kME.
mtd.mapply

Apply a function to elements of given multiData structures.
propVarExplained

Proportion of variance explained by eigengenes.
collectGarbage

Iterative garbage collection.
intramodularConnectivity

Calculation of intramodular connectivity
standardColors

Colors this library uses for labeling modules.
mtd.simplify

If possible, simplify a multiData structure to a 3-dimensional array.
qvalue.restricted

qvalue convenience wrapper
lowerTri2matrix

Reconstruct a symmetric matrix from a distance (lower-triangular) representation
signedKME

Signed eigengene-based connectivity
simulateModule

Simulate a gene co-expression module
plotColorUnderTree

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

Estimate the true trait underlying a list of surrogate markers.
consensusTOM

Consensus network (topological overlap).
multiData

Create a multiData structure.
goodSamplesMS

Filter samples with too many missing entries across multiple data sets
coClustering.permutationTest

Permutation test for co-clustering
simulateEigengeneNetwork

Simulate eigengene network from a causal model
cutreeStatic

Constant-height tree cut
goodGenes

Filter genes with too many missing entries
populationMeansInAdmixture

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

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

Keep probes that are shared among given data sets
plotMEpairs

Pairwise scatterplots of eigengenes
labelPoints

Label scatterplot points
blockwiseModules

Automatic network construction and module detection
networkScreeningGS

Network gene screening with an external gene significance measure
bicor

Biweight Midcorrelation
removePrincipalComponents

Remove leading principal components from data
labeledHeatmap.multiPage

Labeled heatmap divided into several separate plots.
greenWhiteRed

Green-white-red color sequence
displayColors

Show colors used to label modules
consensusProjectiveKMeans

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

Qunatification of success of gene screening
metaAnalysis

Meta-analysis of binary and continuous variables
addGuideLines

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

Number of sets in a multi-set variable
BloodLists

Blood Cell Types with Corresponding Gene Markers
addTraitToMEs

Add trait information to multi-set module eigengene structure
exportNetworkToCytoscape

Export network to Cytoscape
GTOMdist

Generalized Topological Overlap Measure
coxRegressionResiduals

Deviance- and martingale residuals from a Cox regression model
clusterCoef

Clustering coefficient calculation
hubGeneSignificance

Hubgene significance
proportionsInAdmixture

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

Inline display of progress
modulePreservation

Calculation of module preservation statistics
fixDataStructure

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

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

Calculations of network concepts
mtd.rbindSelf

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

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

Divide tasks among workers
addGrid

Add grid lines to an existing plot.
mtd.setColnames

Get and set column names in a multiData structure.
userListEnrichment

Measure enrichment between inputted and user-defined lists
nPresent

Number of present data entries.
TOMsimilarityFromExpr

Topological overlap matrix
setCorrelationPreservation

Summary correlation preservation measure
plotCor

Red and Green Color Image of Correlation Matrix
pickSoftThreshold

Analysis of scale free topology for soft-thresholding
standardScreeningBinaryTrait

Standard screening for binatry traits
corPvalueFisher

Fisher's asymptotic p-value for correlation
standardScreeningCensoredTime

Standard Screening with regard to a Censored Time Variable
collapseRows

Select one representative row per group
adjacency.splineReg

Calculate network adjacency based on natural cubic spline regression
overlapTable

Calculate overlap of modules
spaste

Space-less paste
chooseTopHubInEachModule

Chooses the top hub gene in each module
matchLabels

Relabel module labels to best match the given reference labels
multiData.eigengeneSignificance

Eigengene significance across multiple sets
recutBlockwiseTrees

Repeat blockwise module detection from pre-calculated data
dynamicMergeCut

Threshold for module merging
AFcorMI

Prediction of Weighted Mutual Information Adjacency Matrix by Correlation
verboseBarplot

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

Standard screening for numeric traits
plotEigengeneNetworks

Eigengene network plot
pquantile

Parallel quantile, median, mean
allowWGCNAThreads

Allow and disable multi-threading for certain WGCNA calculations
subsetTOM

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

Pad numbers with leading zeros to specified total width
rgcolors.func

Red and Green Color Specification
corPvalueStudent

Student asymptotic p-value for correlation
stratifiedBarplot

Bar plots of data across two splitting parameters
automaticNetworkScreening

One-step automatic network gene screening
cutreeStaticColor

Constant height tree cut using color labels
matrixToNetwork

Construct a network from a matrix
na

Basic Statistical Functions for Handling Missing Values
stdErr

Standard error of the mean of a given vector.
SCsLists

Stem Cell-Related Genes with Corresponding Gene Markers
goodGenesMS

Filter genes with too many missing entries across multiple sets
goodSamplesGenes

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

Annotated clustering dendrogram of microarray samples
consensusOrderMEs

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

Graphical representation of the Topological Overlap Matrix
formatLabels

Break long character strings into multiple lines
blueWhiteRed

Blue-white-red color sequence
labels2colors

Convert numerical labels to colors.
mergeCloseModules

Merge close modules in gene expression data
branchEigengeneDissim

Branch dissimilarity based on eigennodes (eigengenes).
signumAdjacencyFunction

Hard-thresholding adjacency function
labeledBarplot

Barplot with text or color labels.
stat.bwss

Between and Within Group Sum of Squares Calculation
mtd.setAttr

Set attributes on each component of a multiData structure
plotMat

Red and Green Color Image of Data Matrix
accuracyMeasures

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

Weighted Gene Co-Expression Network Analysis
bicorAndPvalue

Calculation of biweight midcorrelations and associated p-values
GOenrichmentAnalysis

Calculation of GO enrichment (experimental)
mutualInfoAdjacency

Calculate weighted adjacency matrices based on mutual information
verboseIplot

Scatterplot with density
labeledHeatmap

Produce a labeled heatmap plot
consensusKME

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

Prepend a comma to a non-empty string
recutConsensusTrees

Repeat blockwise consensus module detection from pre-calculated data
relativeCorPredictionSuccess

Compare prediction success
consensusMEDissimilarity

Consensus dissimilarity of module eigengenes.
sigmoidAdjacencyFunction

Sigmoid-type adacency function.
simulateDatExpr

Simulation of expression data
alignExpr

Align expression data with given vector
moduleColor.getMEprefix

Get the prefix used to label module eigengenes.
branchSplitFromStabilityLabels

Branch split (dissimilarity) statistic derived from labels determined from a stability study
metaZfunction

Meta-analysis Z statistic
checkAdjMat

Check adjacency matrix
corAndPvalue

Calculation of correlations and associated p-values
plotDendroAndColors

Dendrogram plot with color annotation of objects
verboseScatterplot

Scatterplot annotated by regression line and p-value
adjacency

Calculate network adjacency
exportNetworkToVisANT

Export network data in format readable by VisANT
moduleNumber

Fixed-height cut of a dendrogram.
addErrorBars

Add error bars to a barplot.
branchSplit.dissim

Branch split based on dissimilarity.
cor

Fast calculations of Pearson correlation.
conformityDecomposition

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

Filter samples with too many missing entries
automaticNetworkScreeningGS

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

Visual check of scale-free topology
orderBranchesUsingHubGenes

Optimize dendrogram using branch swaps and reflections.
simulateSmallLayer

Simulate small modules
greenBlackRed

Green-black-red color sequence
branchSplit

Branch split.
adjacency.polyReg

Adjacency matrix based on polynomial regression
shortenStrings

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

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

Determine whether the supplied object is a valid multiData structure
removeGreyME

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

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

Selects one representative row per group based on kME
simulateMultiExpr

Simulate multi-set expression data
fundamentalNetworkConcepts

Calculation of fundamental network concepts from an adjacency matrix.
mtd.apply

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

Calculate module eigengenes.
normalizeLabels

Transform numerical labels into normal order.
votingLinearPredictor

Voting linear predictor
list2multiData

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

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

Simplified simulation of expression data
verboseBoxplot

Boxplot annotated by a Kruskal-Wallis p-value
multiSetMEs

Calculate module eigengenes.
numbers2colors

Color representation for a numeric variable
preservationNetworkConnectivity

Network preservation calculations
scaleFreeFitIndex

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

Connectivity to a constant number of nearest neighbors
orderMEs

Put close eigenvectors next to each other
rankPvalue

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

Return pre-defined gene lists in several biomedical categories.
swapTwoBranches

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

Identification of genes related to a trait
unsignedAdjacency

Calculation of unsigned adjacency
redWhiteGreen

Red-white-green color sequence
sizeGrWindow

Opens a graphics window with specified dimensions
softConnectivity

Calculates connectivity of a weighted network.
BrainLists

Brain-Related Categories with Corresponding Gene Markers
TOMsimilarity

Topological overlap matrix similarity and dissimilarity
stat.diag.da

Diagonal Discriminant Analysis
blockwiseConsensusModules

Find consensus modules across several datasets.
chooseOneHubInEachModule

Chooses a single hub gene in each module
colQuantileC

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

Preservation of eigengene correlations
goodSamplesGenesMS

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

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

Union and intersection of multiple sets
overlapTableUsingKME

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

Network heatmap plot
plotModuleSignificance

Barplot of module significance
projectiveKMeans

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

Immune Pathways with Corresponding Gene Markers
pickHardThreshold

Analysis of scale free topology for hard-thresholding.
blockSize

Attempt to calculate an appropriate block size to maximize efficiency of block-wise calcualtions.
mtd.subset

Subset rows and columns in a multiData structure
nearestCentroidPredictor

Nearest centroid predictor
randIndex

Rand index of two partitions
transposeBigData

Transpose a big matrix or data frame