Skip to contents

Runs a configurable sequence of artifact removal steps.

Usage

cleanData(
  x,
  steps = c("bad_channels", "ica"),
  bad_channel_method = "zscore",
  bad_channel_threshold = NULL,
  interpolation_method = "average",
  ica_method = "fastica",
  ica_classify_method = "kurtosis",
  output_assay = "cleaned"
)

Arguments

x

A PhysioExperiment object.

steps

Character vector of steps to run. Options: "bad_channels", "ica".

bad_channel_method

Method for detectBadChannels.

bad_channel_threshold

Threshold for bad channel detection.

interpolation_method

Method for interpolateBadChannels.

ica_method

Method for icaDecompose.

ica_classify_method

Method for classifyICAComponents.

output_assay

Name for the output assay.

Value

Modified PhysioExperiment with cleaned data.