Learn R Programming

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

WGCNA (version 1.49)

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.49

License

GPL (>= 2)

Maintainer

Peter Langfelder

Last Published

December 29th, 2015

Functions in WGCNA (1.49)

ImmunePathwayLists

Immune Pathways with Corresponding Gene Markers
accuracyMeasures

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

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

Prediction of Weighted Mutual Information Adjacency Matrix by Correlation
bicovWeights

Weights used in biweight midcovariance
GTOMdist

Generalized Topological Overlap Measure
blockwiseModules

Automatic network construction and module detection
addTraitToMEs

Add trait information to multi-set module eigengene structure
addErrorBars

Add error bars to a barplot.
displayColors

Show colors used to label modules
goodSamplesGenesMS

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

Add grid lines to an existing plot.
collapseRowsUsingKME

Selects one representative row per group based on kME
bicorAndPvalue

Calculation of biweight midcorrelations and associated p-values
coxRegressionResiduals

Deviance- and martingale residuals from a Cox regression model
corPvalueFisher

Fisher's asymptotic p-value for correlation
consensusProjectiveKMeans

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

Stem Cell-Related Genes with Corresponding Gene Markers
branchSplit.dissim

Branch split based on dissimilarity.
corPvalueStudent

Student asymptotic p-value for correlation
TOMsimilarity

Topological overlap matrix similarity and dissimilarity
cutreeStatic

Constant-height tree cut
adjacency

Calculate network adjacency
bicor

Biweight Midcorrelation
cutreeStaticColor

Constant height tree cut using color labels
labelPoints

Label scatterplot points
blockwiseIndividualTOMs

Calculation of block-wise topological overlaps
blockSize

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

Qunatification of success of gene screening
orderMEs

Put close eigenvectors next to each other
collectGarbage

Iterative garbage collection.
TOMplot

Graphical representation of the Topological Overlap Matrix
automaticNetworkScreening

One-step automatic network gene screening
labeledHeatmap.multiPage

Labeled heatmap divided into several separate plots.
exportNetworkToVisANT

Export network data in format readable by VisANT
qvalue

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

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

Threshold for module merging
scaleFreePlot

Visual check of scale-free topology
mergeCloseModules

Merge close modules in gene expression data
matchLabels

Relabel module labels to best match the given reference labels
mtd.rbindSelf

Turn a multiData structure into a single matrix or data frame.
coClustering.permutationTest

Permutation test for co-clustering
adjacency.polyReg

Adjacency matrix based on polynomial regression
plotClusterTreeSamples

Annotated clustering dendrogram of microarray samples
automaticNetworkScreeningGS

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

Fixed-height cut of a dendrogram.
modulePreservation

Calculation of module preservation statistics
mtd.apply

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

Proportion of variance explained by eigengenes.
clusterCoef

Clustering coefficient calculation
networkScreening

Identification of genes related to a trait
fixDataStructure

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

qvalue convenience wrapper
mtd.simplify

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

Red-white-green color sequence
colQuantileC

Fast colunm- and row-wise quantile of a matrix.
mtd.mapply

Apply a function to elements of given multiData structures.
removePrincipalComponents

Remove leading principal components from data
plotCor

Red and Green Color Image of Correlation Matrix
WGCNA-package

Weighted Gene Co-Expression Network Analysis
keepCommonProbes

Keep probes that are shared among given data sets
allocateJobs

Divide tasks among workers
GOenrichmentAnalysis

Calculation of GO enrichment (experimental)
exportNetworkToCytoscape

Export network to Cytoscape
branchEigengeneDissim

Branch dissimilarity based on eigennodes (eigengenes).
nSets

Number of sets in a multi-set variable
coClustering

Co-clustering measure of cluster preservation between two clusterings
fundamentalNetworkConcepts

Calculation of fundamental network concepts from an adjacency matrix.
adjacency.splineReg

Calculate network adjacency based on natural cubic spline regression
alignExpr

Align expression data with given vector
nearestNeighborConnectivity

Connectivity to a constant number of nearest neighbors
blockwiseConsensusModules

Find consensus modules across several datasets.
blueWhiteRed

Blue-white-red color sequence
empiricalBayesLM

Empirical Bayes-moderated adjustment for unwanted covariates
consensusDissTOMandTree

Consensus clustering based on topological overlap and hierarchical clustering
numbers2colors

Color representation for a numeric variable
checkSets

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

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

Select one representative row per group
labeledHeatmap

Produce a labeled heatmap plot
goodGenes

Filter genes with too many missing entries
cor

Fast calculations of Pearson correlation.
formatLabels

Break long character strings into multiple lines
chooseTopHubInEachModule

Chooses the top hub gene in each module
mtd.subset

Subset rows and columns in a multiData structure
consensusTOM

Consensus network (topological overlap).
multiData

Create a multiData structure.
conformityDecomposition

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

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

Allow and disable multi-threading for certain WGCNA calculations
metaAnalysis

Meta-analysis of binary and continuous variables
consensusMEDissimilarity

Consensus dissimilarity of module eigengenes.
labels2colors

Convert numerical labels to colors.
lowerTri2matrix

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

Simulate a gene co-expression module
simulateSmallLayer

Simulate small modules
branchSplit

Branch split.
moduleMergeUsingKME

Merge modules and reassign genes using kME.
prepComma

Prepend a comma to a non-empty string
populationMeansInAdmixture

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

Barplot of module significance
multiUnion

Union and intersection of multiple sets
rgcolors.func

Red and Green Color Specification
goodGenesMS

Filter genes with too many missing entries across multiple sets
orderBranchesUsingHubGenes

Optimize dendrogram using branch swaps and reflections.
labeledBarplot

Barplot with text or color labels.
chooseOneHubInEachModule

Chooses a single hub gene in each module
kMEcomparisonScatterplot

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

Construct a network from a matrix
spaste

Space-less paste
sigmoidAdjacencyFunction

Sigmoid-type adacency function.
preservationNetworkConnectivity

Network preservation calculations
corAndPvalue

Calculation of correlations and associated p-values
multiData.eigengeneSignificance

Eigengene significance across multiple sets
BrainRegionMarkers

Gene Markers for Regions of the Human Brain
standardScreeningCensoredTime

Standard Screening with regard to a Censored Time Variable
prependZeros

Pad numbers with leading zeros to specified total width
swapTwoBranches

Select, swap, or reflect branches in a dendrogram.
moduleColor.getMEprefix

Get the prefix used to label module eigengenes.
correlationPreservation

Preservation of eigengene correlations
intramodularConnectivity

Calculation of intramodular connectivity
networkScreeningGS

Network gene screening with an external gene significance measure
sizeGrWindow

Opens a graphics window with specified dimensions
normalizeLabels

Transform numerical labels into normal order.
isMultiData

Determine whether the supplied object is a valid multiData structure
networkConcepts

Calculations of network concepts
plotDendroAndColors

Dendrogram plot with color annotation of objects
consensusKME

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

Get and set column names in a multiData structure.
greenWhiteRed

Green-white-red color sequence
nearestCentroidPredictor

Nearest centroid predictor
Inline display of progress

Inline display of progress
overlapTable

Calculate overlap of modules
projectiveKMeans

Projective K-means (pre-)clustering of expression data
mtd.setAttr

Set attributes on each component of a multiData structure
BloodLists

Blood Cell Types with Corresponding Gene Markers
multiSetMEs

Calculate module eigengenes.
pickHardThreshold

Analysis of scale free topology for hard-thresholding.
signedKME

Signed eigengene-based connectivity
pquantile

Parallel quantile, median, mean
TOMsimilarityFromExpr

Topological overlap matrix
recutBlockwiseTrees

Repeat blockwise module detection from pre-calculated data
consensusOrderMEs

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

Pairwise scatterplots of eigengenes
pickSoftThreshold

Analysis of scale free topology for soft-thresholding
standardScreeningNumericTrait

Standard screening for numeric traits
hubGeneSignificance

Hubgene significance
BrainLists

Brain-Related Categories with Corresponding Gene Markers
scaleFreeFitIndex

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

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

Meta-analysis Z statistic
nPresent

Number of present data entries.
removeGreyME

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

Simulate multi-set expression data
simulateDatExpr5Modules

Simplified simulation of expression data
relativeCorPredictionSuccess

Compare prediction success
plotColorUnderTree

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

Calculates connectivity of a weighted network.
simulateDatExpr

Simulation of expression data
conformityBasedNetworkConcepts

Calculation of conformity-based network concepts.
plotNetworkHeatmap

Network heatmap plot
addGuideLines

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

Filter samples with too many missing entries
checkAdjMat

Check adjacency matrix
unsignedAdjacency

Calculation of unsigned adjacency
stratifiedBarplot

Bar plots of data across two splitting parameters
standardScreeningBinaryTrait

Standard screening for binatry traits
greenBlackRed

Green-black-red color sequence
simulateEigengeneNetwork

Simulate eigengene network from a causal model
goodSamplesGenes

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

Eigengene network plot
nearestNeighborConnectivityMS

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

Hard-thresholding adjacency function
verboseScatterplot

Scatterplot annotated by regression line and p-value
proportionsInAdmixture

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

Transpose a big matrix or data frame
list2multiData

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

Rand index of two partitions
recutConsensusTrees

Repeat blockwise consensus module detection from pre-calculated data
votingLinearPredictor

Voting linear predictor
setCorrelationPreservation

Summary correlation preservation measure
moduleEigengenes

Calculate module eigengenes.
vectorTOM

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

Calculate weighted adjacency matrices based on mutual information
overlapTableUsingKME

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

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

Boxplot annotated by a Kruskal-Wallis p-value
subsetTOM

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

Scatterplot with density
plotMat

Red and Green Color Image of Data Matrix
vectorizeMatrix

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

Colors this library uses for labeling modules.
stdErr

Standard error of the mean of a given vector.
shortenStrings

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

Measure enrichment between inputted and user-defined lists
verboseBarplot

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