Removes unwanted barcode spots from the object without any significant post processing.

subsetByBarcodes(object, barcodes, verbose = NULL)

Arguments

object

An object of class spata2.

barcodes

Character vector. The barcodes of the barcode spots that are supposed to be kept.

verbose

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

(Warning messages will always be printed.)

Value

An updated spata2 object.

Details

Unused levels of factor variables in the feature data.frame are dropped and directory settings are reset to NULL.