Applies a preprocessing pipeline to a PhysioExperiment object.
See also
createPipeline() for defining the pipeline steps,
butterworthFilter() and resample() for common preprocessing
operations used within pipelines.
Examples
pe <- PhysioExperiment(
assays = list(raw = matrix(rnorm(1000), nrow = 100, ncol = 10)),
colData = S4Vectors::DataFrame(label = paste0("Ch", 1:10)),
samplingRate = 256
)
pipeline <- createPipeline(
detrend = list(fn = "detrendSignals", method = "linear")
)
pe_processed <- applyPipeline(pe, pipeline)