all_column_correlation: Compare matrices and return a matrix with the correlations of...

Description Usage Arguments Value

View source: R/transcription_functions.R

Description

For each column in the query matrix, max_column_correlation will find the column in the target matrix with the highest correlation score, and will return a data.frame with the correlation score and target column name.

Usage

1
all_column_correlation(query_mat, target_mat, method = "pearson")

Arguments

query_mat

The query matrix

target_mat

The target matrix

method

The name of the method to pass to cor(). Can be "pearson", "kendall", or "spearman". Default is "pearson".

Value

a matrix with all correlation values, with the columns matching columns of target_mat, and rows matching the columns of query_mat


AllenInstitute/lowcat documentation built on Oct. 30, 2019, 4:45 a.m.