Spec_list_corr: A Parse MGF function

Description Usage Arguments Examples

Description

This function calculates the correlation between two lists of peak masses.

Usage

1
Spec_list_corr(mass_list1, mass_list2, D = 0.04, mode = 1)

Arguments

mass_list1

The first list of masses.

mass_list2

The secound list of masses.

D

A maximal difference between two masses for them to be considered the same. Delaults to 0.04

mode

If mode=1 the correlation score will be returned, else the number of correlationg peaks is returned. The correlation score is the percent of correlating peaks out of the mean length of two lists. Defaluts to 1.

Examples

1
corr <- Spec_list_corr(list1, list2)

levitesm/msms.spectra.clusters.R documentation built on May 4, 2019, 4:13 a.m.