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

View source: R/RcppExports.R

pcitCR Documentation

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

Description

Calculates the correlation matrix using PCIT algorithm

Usage

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)


cbiagii/CeTF documentation built on Feb. 1, 2023, 3:19 p.m.