Calculates the correlation matrix using PCIT algorithm

pcitC(cor, tolType)

Arguments

cor

A correlation matrix.

tolType

Type of tolerance (default: 'mean') given the 3 pairwise correlations (see tolerance.

Value

Correlation matrix resulted from PCIT algorithm.

See also

(see PCIT)

Examples

library(Matrix) # loading a simulated normalized data data('simNorm') # calculating the correlation matrix suppressWarnings(gene_corr <- cor(t(simNorm[1:30, ]))) gene_corr[is.na(gene_corr)] <- 0 # getting the PCIT correlation results for first 30 genes results <- pcitC(cor = Matrix(gene_corr, sparse = TRUE), tolType = 1)