removeObs | R Documentation |
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
)
object |
An object of class |
barcodes |
Character vector or barcodes that are removed. |
spatial_proc |
Logical value. Indicates whether the new sub-object is
processed spatially. If If Only relevant, if |
verbose |
Logical. If (Warning messages will always be printed.) |
assay_name |
Only relevant if the |
After removal of observations, unused levels of factor variables in the feature data.frame are dropped. Analysis results are not affected.
The updated input object, containing the added, removed or computed results.
subsetSpataObject()
library(SPATA2)
data("example_data")
object <- example_data$object_UKF269T_diet
# the function tells you if / how many observations were removed
object <- removeObsZeroCounts(object, verbose = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.