get_spectra_at_peaks_zeros: Extract Spectra at Peak Positions, with zeros for non-peaks

Description Usage Arguments Value

Description

Extract Spectra at Peak Positions, with zeros for non-peaks

Usage

1
get_spectra_at_peaks_zeros(specmat, peaks_list, binary = FALSE)

Arguments

specmat

A spectra matrix with samples on rows.

peaks_list

A list whose i^th element contains the indices of peaks in the i^th sample

binary

Should the actual spectrum intensity be returned, or just an indicator of whether the position was a peak?

Value

peaks A matrix containing spectra values filtered to samples and measurement indices containining peaks, and placing zeros if a measurement was not called a peak.


krisrs1128/phyloseqExtend documentation built on May 20, 2019, 1:31 p.m.