OldWhichCells: Identify cells matching certain criteria

Description Usage Arguments Value See Also Examples

View source: R/generics.R

Description

Returns a list of cells that match a particular set of criteria such as identity class, high/low values for particular PCs, ect..

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
OldWhichCells(object, ...)

## S3 method for class 'Assay'
OldWhichCells(
  object,
  cells,
  subset.name = NULL,
  low.threshold = -Inf,
  high.threshold = Inf,
  accept.value = NULL,
  ...
)

## S3 method for class 'Seurat'
OldWhichCells(
  object,
  cells = NULL,
  subset.name = NULL,
  low.threshold = -Inf,
  high.threshold = Inf,
  accept.value = NULL,
  ident.keep = NULL,
  ident.remove = NULL,
  max.cells.per.ident = Inf,
  random.seed = 1,
  assay = NULL,
  ...
)

Arguments

object

An object

...

Arguments passed to other methods and FetchData

cells

Subset of cell names

subset.name

Parameter to subset on. Eg, the name of a gene, PC_1, a column name in object@meta.data, etc. Any argument that can be retreived using FetchData

low.threshold

Low cutoff for the parameter (default is -Inf)

high.threshold

High cutoff for the parameter (default is Inf)

accept.value

Returns all cells with the subset name equal to this value

ident.keep

Create a cell subset based on the provided identity classes

ident.remove

Subtract out cells from these identity classes (used for filtration)

max.cells.per.ident

Can be used to downsample the data to a certain max per cell ident. Default is INF.

random.seed

Random seed for downsampling

assay

Which assay to filter on

Value

A vector of cell names

See Also

FetchData

Examples

1
2
3
4
## Not run: 
OldWhichCells(object = pbmc_small, ident.keep = 2)

## End(Not run)

lambdamoses/SeuratBasics documentation built on May 6, 2020, 9:32 a.m.