makeDist: Make disstance matrix

View source: R/makeDist.R

makeDistR Documentation

Make disstance matrix

Description

This function calculates distance matrix for a data frame, column by column requires uncenteredCor function to work

Usage

makeDist(df, centered = FALSE)

Arguments

df

data frame, contains columns: 'Protein Group Accessions' character 'Protein Descriptions' character isLabel character ('TRUE'/'FALSE') columns 1 to n, numeric, n is the total number of fractions/slices, each of this columns contains 'Precursor Area' values in a given fraction(columns) for a protein(rows)

centered

centered: logical,if TRUE return dist matrix based on centered Pearson correlation (uses R cor() function, fast) ,if FALSE return dist matrix based on uncentered Pearson correlation (uses custom uncenteredCor() function, slow)

Value

matrix


Scavetta/complexomics documentation built on Oct. 1, 2022, 2:15 a.m.