makeDist {ComPrAn} | R 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

[Package ComPrAn version 1.2.0 Index]