Skip to contents

Subset matrices in a MarchRDataset object.

Usage

# S3 method for class 'MarchRDataset'
subset_project(
  proj,
  cell_subset,
  feature_subset,
  by_assay = TRUE,
  values_only = FALSE
)

Arguments

proj

(MarchRDataset) The dataset to subset.

cell_subset

(character vector; logical vector; numeric vector) A subset of cells to keep in the matrices. Requires that the matrices are cell aligned if this is given.

feature_subset

(character vector; logical vector; numeric vector; list) If by_assay is TRUE, which matrices to keep in the dataset. If by_assay is FALSE, a subset of features to keep in the matrices. If a list, each element should be a character vector of features to keep for each matrix.

by_assay

(logical) If TRUE, subset rows by matrix name. If FALSE, subset by feature name.