spacexr: spacexr: an R package for assigning cell types and cell type...

spacexrR Documentation

spacexr: an R package for assigning cell types and cell type specific differential expression to spatial transcriptomics data.

Running RCTD

To get started, create a SpatialRNA object (called puck here) for the spatial transcriptomics data and a Reference object (called reference here) for the scRNA-seq data. Then simply run RCTD as:

myRCTD <- create.RCTD(puck, reference)

myRCTD <- run.RCTD(myRCTD)

Running CSIDE

After running RCTD, create an explanatory variable ('explanatory.variable') representing a covariate hypothesized to explain gene expression. Then, to detect cell type-specific differential expression, simply run CSIDE as:

myRCTD <- run.CSIDE.single(puck, explanatory.variable)


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