build.designmatrix.regions: Constructs a design matrix for running CSIDE across a set of...

View source: R/CSIDE_class.R

build.designmatrix.regionsR Documentation

Constructs a design matrix for running CSIDE across a set of regions

Description

The design matrix contains for each region a column of 0s and 1s representing membership in that region.

Usage

build.designmatrix.regions(myRCTD, region_list)

Arguments

myRCTD

an RCTD object with annotated cell types e.g. from the run.RCTD function.

region_list

a list of character vectors, where each vector contains pixel names, or barcodes, for a single region. These pixel names should be a subset of the pixels in the SpatialRNA object

Value

A design matrix containing the covariates for running CSIDE. The rownames represent pixel names and are a subset of the pixels in the SpatialRNA object. The columns each represent a covariate for explaining differential expression.


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