subset_matrix: Subset a matrix

View source: R/utility_functions.R

subset_matrixR Documentation

Subset a matrix

Description

If includeAll is TRUE (default) and if a barcode is not present in the matrix, set its values to 0 to allow incorporation into a common object

Usage

subset_matrix(
  data,
  features = c(),
  barcodes = c(),
  includeAll = TRUE,
  na.value = 0
)

Value

A subsetted sparse Matrix


Terkild/scutility documentation built on Jan. 16, 2025, 5:28 p.m.