comp_peaks: Compare Peaks

View source: R/align.R

comp_peaksR Documentation

Compare Peaks

Description

comp_peaks compares peaks of two samples.

Usage

comp_peaks(ref_peaks, al_peaks)

Arguments

ref_peaks

a data.frame object. A data frame with 4 columns (Time, X, Y, Peak), ideally the output from either top_peaks() or thr_peaks().

al_peaks

a data.frame object. A data frame with 4 columns (Time, X, Y, Peak), ideally the output from either top_peaks() or thr_peaks().

Details

This function find compares the peaks from two samples and correlates the peaks by determining the peaks closest to each other in the two samples, within a certain reasonable distance. Then returns a data frame with a list of the correlated peaks including each of their time coordinates.

Value

A data.frame object. A data frame with 8 columns containing the matched peaks from the two samples, with the time, x, y, and peak values for each.


gcxgclab documentation built on May 29, 2024, 5:33 a.m.