build.designmatrix.nonparam: Constructs a design matrix for running CSIDE...

View source: R/CSIDE_class.R

build.designmatrix.nonparamR Documentation

Constructs a design matrix for running CSIDE nonparametrically

Description

The design matrix contains thin plate spline basis functions spanning the space of smooth functions.

Usage

build.designmatrix.nonparam(myRCTD, barcodes = NULL, df = 15)

Arguments

myRCTD

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

barcodes

(default NULL) the barcodes, or pixel names, of the SpatialRNA object to be used when creating the design matrix.

df

(default 15) the degrees of freedom, or number of basis functions to be used in the design matrix

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.