ddMEGENA: Integration function to use MEGENA to perform network...

View source: R/ddMEGENA.R

ddMEGENAR Documentation

Integration function to use MEGENA to perform network analyses of DGCA results.

Description

Takes a table of results from a DGCA analysis and inputs it into the MEGENA package pipeline.

Usage

ddMEGENA(ddcor_res, adjusted = TRUE, pval_gene_thresh = 0.05,
  evalCompactness = TRUE, nPerm = 100, hubPVal = 0.05,
  modulePVal = 0.05, minModSize = 10, maxModSize = 1000,
  saveOutput = FALSE, parallelize = FALSE, nCores = 4, ...)

Arguments

ddcor_res

The table of differential correlations outputted from ddcor. Expected to have pValDiff or pValDiff_adj columns as well as zScoreDiff, Gene1, +/- Classes columns.

adjusted

Logical indicating whether adjusted p-values from the differential correlation table (i.e., column "pValDiff_adj", when adjusted = TRUE) or unadjusted p-values (i.e., column "pValDiff", when adjusted = FALSE) should be used to subset the table into significant and non-significant portions.

pval_gene_thresh

p-value threshold to call a gene as having significant differential correlation or not.

evalCompactness

Logical indicating whether or not the resulting modules should be filtered for compactness. For inputs with relatively small numbers of significant gene pairs, this may not be desirable. Note that if this option is not chosen, all of the modules will be returned, but some of the module-specific results will not be available for all of these modules.

nPerm

The number of permutations to use in evaluating module hubs and module compactness in do.MEGENA.

hubPVal

The p-value threshold used to classify a gene as a hub within a module.

modulePVal

The p-value threshold used to include or disclude modules following module compactness evaluation in do.MEGENA.

minModSize

The minimum module size.

maxModSize

The minimum module size.

saveOutput

Whether the output of MEGENA should be saved in the current directory. Default = FALSE.

parallelize

Logical indicating whether or not multiple cores should be utilized as a form of parallel processing. Requires the doMC package.

nCores

If parallelize is TRUE, the number of cores to use in the processing. Ignored if parallelize is FALSE.

...

Additional arguments to do.MEGENA from the MEGENA R package.

Value

A list containing a the planar filter network, the data frame of identified differentially correlated modules, as well as various other objects including module-specific hub genes, depending on the parameters chosen.


andymckenzie/DGCA documentation built on Sept. 15, 2023, 5:04 a.m.