pcitC: A helper to calculate PCIT implemented in C/C++

Description Usage Arguments Value See Also Examples

View source: R/RcppExports.R

Description

Calculates the correlation matrix using PCIT algorithm

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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)

CeTF documentation built on Nov. 25, 2020, 2 a.m.