removeObs.Rd
Remove unwanted observations from the object.
removeObs()
: Allows to specify the observations to remove manually.
removeObsZeroCounts()
: Identifies and removes observations with no molecule counts from the SPATA2
object.
removeObs(object, barcodes, spatial_proc = TRUE, verbose = NULL)
removeObsZeroCounts(
object,
spatial_proc = TRUE,
assay_name = activeAssay(object),
verbose = NULL
)
An object of class SPATA2
or, in case of S4 generics,
objects of classes for which a method has been defined.
Character vector or barcodes that are removed.
Logical value. Indicates whether the new sub-object is
processed spatially. If TRUE
, a new tissue outline is identified based
on the remaining observations via identifyTissueOutline()
. Then,
spatial annotations are tested on being located on either of the remaining
tissue sections. If they are not, they are removed.
If FALSE
, these processing steps are skipped. Generally speaking, this is
not recommended. Only set to FALSE
, if you know what you're doing.
Only relevant, if barcodes
is not NULL
.
Logical. If TRUE
, informative messages regarding
the computational progress will be printed.
(Warning messages will always be printed.)
Only relevant if the SPATA2
object contains more than
one assay: Denotes the assay of interest and thus the
molecular modality to use. Defaults to the active assay
as set by activateAssay()
.
The updated input object, containing the added, removed or computed results.
After removal of observations, unused levels of factor variables in the feature data.frame are dropped. Analysis results are not affected.