Skip to contents

Subset assays in a MarchRDataset/MarchRProject object.

Usage

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

# S3 method for class 'MarchRProject'
subset_assays(proj, feature_subset, by_assay = TRUE, values_only = FALSE)

Arguments

proj

(MarchRDataset, MarchRProject) The project/dataset to subset.

feature_subset

(character vector; logical vector; numeric vector; list) If by_assay is TRUE, which matrices to keep in the object. 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, named by the assay. With by_assay = FALSE, a single logical vector must contain one non-missing value per feature across the matrices in each dataset. Numeric indices in a single vector must be positive whole numbers within that feature count.

by_assay

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

values_only

(logical) If TRUE, return the matrices concatenated together.