Replaces bad channels with interpolated values from neighboring channels.
Usage
interpolateBadChannels(
x,
bad_channels,
method = c("average", "spline"),
output_assay = "interpolated"
)Examples
pe <- PhysioExperiment(
assays = list(raw = matrix(rnorm(300 * 3), nrow = 300, ncol = 3)),
samplingRate = 100
)
pe <- interpolateBadChannels(pe, bad_channels = 2, method = "average")