Removes the data from the cell ids detected by detectOutliers() from the object. As this changes the data set all clustering-, correlation- and dimensional reduction results are reset.

removeOutliers(
  object,
  method_outlier,
  new_name = "outlier_removed",
  verbose = NULL
)

Arguments

object

A valid cypro object.

method_outlier

Character vector. Specifies the method/algorithm of interest.

Use validOutlierDetectionMethods() to obtain all valid input options.

verbose

Logical. If set to TRUE informative messages regarding the computational progress will be printed.

(Warning messages will always be printed.)

Value

An updated version of the input cypro-object.

Details

Cell are removed via a reversed application of subsetByCellId(). You can therefore keep track of conducted outlier removal by using function printSubsetHistory() which prints summary text on how, when and why you subsetted the cypro object.

See also

detectOutliers()