This convenience function subsets a Seurat object based on calculated inflection points.

SubsetByBarcodeInflections(object)

Arguments

object

Seurat object

Value

Returns a subsetted Seurat object.

Details

See [CalculateBarcodeInflections()] to calculate inflection points and [BarcodeInflectionsPlot()] to visualize and test inflection point calculations.

Author

Robert A. Amezquita, robert.amezquita@fredhutch.org

Examples

data("pbmc_small")
pbmc_small <- CalculateBarcodeInflections(
  object = pbmc_small,
  group.column = 'groups',
  threshold.low = 20,
  threshold.high = 30
)
SubsetByBarcodeInflections(object = pbmc_small)
#> An object of class Seurat 
#> 230 features across 16 samples within 1 assay 
#> Active assay: RNA (230 features, 20 variable features)
#>  3 layers present: counts, data, scale.data
#>  2 dimensional reductions calculated: pca, tsne