find_peak: find the location of the maximum value

Description Usage Arguments Value

Description

find the location of the maximum value

Usage

1
find_peak(x, time_index = NULL, max_only = T)

Arguments

x

a dataframe with time series information along the columns, and the features along the rows. It must contain one row that has the time index. Otherwise, the time index is initiated as from 1 to the sample number

max_only

detect absolute peak, instead of distinguishing between positive or negative peak

Value

a dataframe with the following columns: val: magnitude of the peak relative to the trough feature: genes change_sign: whether it is a positive peak or negative peak peak_time: when the peak occurs


Yutong441/TBdev documentation built on Dec. 18, 2021, 8:22 p.m.