Run FFT-NLLS period analysis on a fluorescence trace matrix
computePeriod.RdRun FFT-NLLS period analysis on a fluorescence trace matrix
Usage
computePeriod(
df,
excludeNC = FALSE,
top = 30,
bottom = 18,
save.trace = FALSE,
rm.start = 0,
prep_tbl = TRUE,
preprocess = TRUE,
transp = TRUE,
add_t = TRUE,
time_res = 0.5,
smooth = TRUE,
invert = FALSE,
filterRAE = NULL,
...
)Arguments
- df
Numeric matrix or data frame of fluorescence traces (cells × frames), or a long-format table if
prep_tbl = FALSE.- excludeNC
Logical; if
TRUE, excludes non-circadian cells from the returned table. Defaults toFALSE.- top
Numeric; upper period bound in hours. Defaults to
30.- bottom
Numeric; lower period bound in hours. Defaults to
18.- save.trace
Logical; whether to store individual fitted traces. Defaults to
FALSE.- rm.start
Integer; number of initial time points to discard before analysis. Defaults to
0.- prep_tbl
Logical; if
TRUE, callsprep_table()to reshapedfbefore analysis. Defaults toTRUE.- preprocess
Logical; if
TRUE, smooths and detrends traces during table preparation. Defaults toTRUE.- transp
Logical; if
TRUE, transposesdfduring table preparation. Defaults toTRUE.- add_t
Logical; if
TRUE, adds a time column during table preparation. Defaults toTRUE.- time_res
Numeric; temporal resolution in hours per frame. Defaults to
0.5.- smooth
Logical; if
TRUE, uses the smoothed trace for analysis. Defaults toTRUE.- invert
Logical; if
TRUE, inverts the fluorescence signal before analysis. Defaults toFALSE.- filterRAE
Numeric threshold for the Relative Amplitude Error; cells with RAE above this value are excluded. Pass
NULLto disable filtering. Defaults toNULL.- ...
Currently unused.