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

View source: R/utilities.R

Matrix2colCorrelationR Documentation

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

Description

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

Usage

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


df = generateAbundanceDF()
Matrix2colCorrelation(df)


Tong-Chen/ImageGP documentation built on April 14, 2025, 12:54 p.m.