Learn R Programming

sabarsi (version 0.1.0)

signal_detection: Detect signals in background-removed spectra

Description

Detect signals in background-removed spectra

Usage

signal_detection(xr, fdr.c = 0.01, stren.c = 200, wid.c = 5)

Arguments

xr

A p*n data matrix of background-removed spectra, where n is the number of spectra, and p is the number of frequency channels.

fdr.c

A number between 0 and 1, which is the cutoff for FDR.

stren.c

A positive number for the cutoff of the strength of a signal.

wid.c

A positive number for the cutoff of the width of a signal.

Value

A list containing the indices of spectra with detected signals, tim.index, and a matrix recording the peaks of signals, peaks.

Examples

Run this code
# NOT RUN {
res <- signal_detection(xr)
# xr is the matrix of background removed spectra
# xr can be obtained by background_removal function

head(res$tim.index)  ## check the first few time indices of signals
# }

Run the code above in your browser using DataLab