cor.BLAS: Correlation calculation. use BLAS and data.table to speed up.

View source: R/utils.R

cor.BLASR Documentation

Correlation calculation. use BLAS and data.table to speed up.

Description

Correlation calculation. use BLAS and data.table to speed up.

Usage

cor.BLAS(x, y = NULL, method = "pearson", nthreads = NULL, na.rm = T)

Arguments

x

matrix; input data, rows for variable (genes), columns for observations (cells).

y

matrix; input data, rows for variable (genes), columns for observations (cells) (default: NULL)

method

character; method used. (default: "pearson")

nthreads

integer; number of threads to use. if NULL, automatically detect the number. (default: NULL)

na.rm

logical; remove missing values. (default: T)

Details

calcualte the correlation among variables(rows)

Value

correlation coefficient matrix among rows


Japrin/sscVis documentation built on March 5, 2025, 10:23 a.m.