Description Usage Arguments Details Value
cormat_filt
splits (cuts) the dendrogram at a given threshold dividing it into larger or
smaller "sub-clusters". Correlation P-Values (see eset_cor
) are converted to represent
significance as a sub-cluster-wise signal metric used for filtering. Optionally, up to 3 plots are produced,
the third one being a filtered heatmap based on significance and three height cutting.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | cormap_filt(
x,
na.frac = 0.1,
method = "ward.D",
do.abs = TRUE,
main = "correlation map",
postfix = NULL,
p.thr = 0.01,
cex = 0.2,
cex.clust = cex,
cex.filt = cex,
cut.thr = NULL,
cor.thr = NULL,
cor.cluster = 1,
cor.window = NULL,
do.plots = c("dend", "full.heat", "filt.heat"),
genes2highl = NULL,
order.list = TRUE,
convert = TRUE,
biomart = FALSE,
add.sig = FALSE,
verbose = FALSE
)
|
x |
( |
na.frac |
( |
method |
( |
do.abs |
( |
main |
( |
postfix |
( |
p.thr |
( |
cex |
( |
cex.clust |
( |
cex.filt |
( |
cut.thr |
( |
cor.thr |
( |
cor.cluster |
( |
cor.window |
( |
do.plots |
( |
genes2highl |
( |
order.list |
( |
convert |
( |
biomart |
( |
add.sig |
( |
verbose |
( |
P-Values are calculated from the t-test value of the correlation coefficient: t = r x sqrt(n-2) / sqrt(1-r^2),
where r is the correlation coefficient, n is the number of samples with no missing values for each gene (row-wise
ncol(eset)
minus the number of columns that have an NA). P-Values are then calculated using pt
and
corrected account for the two-tailed nature of the test, i.e., the possibility of positive as well as negative correlation.
The approach to calculate correlation significance was adopted from Miles, J., & Banyard, P. (2007) on
"Calculating the exact significance of a Pearson correlation in MS Excel".
To obtain a suitable metric for isolating significant sub-clusters, P-Values are represented as -log10(median(pval))
where pval
is the median of the parallel maximum of all P-Values belonging to the sub-cluster and
1e-38
to avoid values of zero (0).
A list
. If the dendrogram is being cut, i.e., cut.thr
is not NULL
, a list of
clusters: the list of cluster labels from lower component of the cut.dendrogram output which
is list with the branches obtained from cutting the tree |
|
filt: the index of the cluster labels passing the signal metrics threshold | |
filt_cluster: the list of the filtered cluster labels | |
h: the cut threshold | |
p.thr: the P-Value threshold for filtering sub-clusters | |
metric: the signal metrics for all sub-clusters | |
cormat: the clustered (ordered) correlation matrix | |
hclust: a list of hierarchical clustering metrics (output of hclust ) |
|
pvalues: the correlation P-Value matrix | |
If no tree cutting is applied, a list of
cormat: the clustered (ordered) correlation matrix | |
hclust: a list of hierarchical clustering metrics (output of hclust ) |
|
pvalues: the correlation P-Value matrix | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.