Usage
adjacency(datExpr,
selectCols = NULL,
type = "unsigned",
power = if (type=="distance") 1 else 6,
corFnc = "cor", corOptions = "use = 'p'",
distFnc = "dist", distOptions = "method = 'euclidean'")
adjacency.fromSimilarity(similarity,
type = "unsigned",
power = if (type=="distance") 1 else 6)Arguments
datExpr
data frame containing expression data. Columns correspond to genes and rows to
samples.
similarity
a (signed) similarity matrix: square, symmetric matrix with entries between -1 and 1.
selectCols
for correlation networks only (see below);
can be used to select genes whose adjacencies will be calculated. Should be either a
numeric vector giving the indices of the genes to be used, or a boolean vector indicating which genes are
to be used.
type
network type. Allowed values are (unique abbreviations of) "unsigned",
"signed", "signed hybrid", "distance".
power
soft thresholding power.
corFnc
character string specifying the function to be used to calculate co-expression
similarity for correlation networks.
Defaults to Pearson correlation. Any function returning values between -1 and 1 can be used.
corOptions
character string specifying additional arguments to be passed to the function given
by corFnc. Use "use = 'p', method = 'spearman'" to obtain Spearman correlation.
distFnc
character string specifying the function to be used to calculate co-expression
similarity for distance networks. Defaults to the function dist.
Any function returning non-negative values can be used. distOptions
character string specifying additional arguments to be passed to the function given
by distFnc. For example, when the function dist is used, the argument method
can be used to spec