in.peak.region: Check whether data points are within a reported peak or...

in.peak.regionR Documentation

Check whether data points are within a reported peak or region

Description

These functions take an electrophoresis object and check whether each data point is within a specified peak or region.

Usage

in.peak(electrophoresis, which.peak)

in.region(electrophoresis, which.region)

Arguments

electrophoresis

An electrophoresis object.

which.peak

The integer index of a peak in electrophoresis$peaks.

which.region

The integer index of a region in electrophoresis$regions.

Details

Data points are considered to be within the boundaries of a peak if their original x-value ('aligned.time' for Bioanalyzer, 'relative.distance' for TapeStation) is within the boundaries reported by the Agilent software, but for regions the length boundaries are used.

Value

A vector of logicals with length nrow(electrophoresis$data).

See Also

in.custom.region, in.peaks, in.regions


jwfoley/bioanalyzeR documentation built on Aug. 1, 2023, 4:46 a.m.