Matrix2colCorrelation: Get ordered column correlation matrix from input dataframe....

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Get ordered column correlation matrix from input dataframe. Normally used to do sample corealtion of gene expression or OTU abundance matrix.

Usage

1
Matrix2colCorrelation(mat, method = "pearson", digits = 4, cor_file = NULL)

Arguments

mat

A dataframe.

method

Type of correlation coefficient given to cor. Default "pearson".

digits

Number of decimial digits (given to round) to keep (default 4).

cor_file

Save ordered correlation matrix to given file name.

Value

A list containing ordered column correlation matrix and hcluster result.

Examples

1
2

Tong-Chen/YSX documentation built on Jan. 25, 2021, 2:49 a.m.