Skip to contents

For MarchRDataset, this means checking every matrix/fragments for having the same cells. For MarchRProject, this means checking a specific dataset(s), or all datasets that for each dataset, all matrices have the same cells.

Usage

# S3 method for class 'MarchRDataset'
validate_cell_alignment(proj, lazy = FALSE, ...)

# S3 method for class 'MarchRProject'
validate_cell_alignment(proj, lazy = FALSE, datasets = character(0), ...)

Arguments

proj

(MarchRDataset or MarchRProject) The project or dataset to check for cell alignment.

lazy

(logical) If TRUE, use the stored information for cell alignment, instead of recalculating. Avoid if directly modifying dataset matrices and fragments.

datasets

(character vector) A vector of dataset names to check for alignment. If datasets is empty, check all datasets in the project.

Value

If proj is a MarchRDataset, return TRUE if aligned, else FALSE. If proj is a MarchRProject return a named list, with names as dataset names and values as TRUE/FALSE.