restrict_puck: Restricts a SpatialRNA object to a subset of pixels

View source: R/SpatialRNA.R

restrict_puckR Documentation

Restricts a SpatialRNA object to a subset of pixels

Description

Given a SpatialRNA object and a list of barcodes (pixels), will return a SpatialRNA object restricted to the barcodes.

Usage

restrict_puck(puck, barcodes)

Arguments

puck

a SpatialRNA object

barcodes

a list of barcode names, a subset of rownames(puck@coords)

Value

Returns a SpatialRNA object subsampled to the barcodes


dmcable/RCTD documentation built on Feb. 24, 2024, 11:03 p.m.