Subset matrices in a MarchRProject object.
subset_project.MarchRProject.RdSubset matrices in a MarchRProject object.
Usage
# S3 method for class 'MarchRProject'
subset_project(
proj,
cell_subset,
feature_subset,
by_assay = TRUE,
by_dataset = TRUE,
values_only = FALSE
)Arguments
- proj
(MarchRProject) The project to subset.
- cell_subset
(character vector; logical vector; numeric vector; list) A subset of cells to keep in the matrices. If
by_datasetis TRUE, a vector indicating which datasets to keep. Else, a list with names as dataset names and values as the selection vector for each dataset.- feature_subset
(character vector; logical vector; numeric vector; list) If
by_assayis TRUE, a vector indicating which assays to keep in the project. Else, a list with names as assay names and values as the selection vector for features in each assay.- by_assay
(logical) If TRUE, subset rows by matrix name. If FALSE, subset by feature name.
- by_dataset
(logical) If TRUE, subset by dataset name. If FALSE, subset by cell names.
- values_only
(logical) If TRUE, return the matrices concatenated together.