SubsetDataFlex: Subset data flexibly from a Seurat object.

Description Usage Arguments Details

View source: R/seurat_extra.R

Description

Subset data flexibly from a Seurat object.

Usage

1
2
SubsetDataFlex(dge, vars.use, predicate, preserve_raw = FALSE,
  results_path = NULL, show_on_tsne = !is.null(results_path), ...)

Arguments

dge

Seurat object

vars.use

Variables to fetch for use in 'predicate'.

predicate

String to be parsed into an R expression and evaluated as an arg to base::subset.

preserve_raw

If TRUE, then it will not exclude any cells from the @raw.data slot. By default, it leaves cells in @raw.data only if they satisfy the given predicate.

results_path

Where to save the tSNE.

show_on_tsne

If true, save a tSNE showing which cells are kept.

...

Extra params passed to tsne_colored.

Details

Calls FetchData, subsets it as a dataframe using base::subset, and subsets the Seurat object correspondingly (using the df rownames.)


maehrlab/thymusatlastools documentation built on May 28, 2019, 2:32 a.m.