max_column_correlation: Compare matrices to find the maximum correlation of columns

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
max_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 data.frame with 3 columns: query, max_cor, and target.


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