calculate_correlations: Correlation matrices

Description Usage Arguments Value

View source: R/calculate_correlations.R

Description

This function computes the correlation matrices for two groups given a data set (e.g., an expression matrix.) This function uses the 'corrr' package to compute the correlations.

Usage

1
calculate_correlations(data, group1, group2, method)

Arguments

data

The data matrix, with samples on columns and observations on rows

group1

column ids for group 1

group2

column ids for group 2

method

correlation type (defaults to Spearman correlations.)

Value

returns a 'tibble' with the correlations between all the vartiables for both groups. x and y in data frame are row ids that can be easily mapped to variable names in data set.


diogocamacho/diffnet documentation built on Aug. 6, 2020, 3:38 p.m.