R/alignCodexWithScRNAseq.R
alignScRNAseqToCodex.Rd
Align the scRNA-seq Seurat object to the Codex data by the classifer trained from the scRNA-seq Seurat object by buildClassifierFromSeurat
alignScRNAseqToCodex(
codexSeu,
scSeu,
classifier,
newAssayName = "aligned",
assay = "RNA"
)
The Codex Seurat object
The single cell RAN-seq Seurat object
A KNN classifer created from the scRNA-seq Seurat object by buildClassifierFromSeurat
The assay name for single cell RNAseq expressions.
An aligned Seurat object.
if (FALSE) { # \dontrun{
markers <- readRDS(system.file('extdata', 'markers.name.map.rds',
package='cdQuPath'))
pseudo <- readRDS(system.file('extdata', 'pseudobulk.scRNAseq.rds',
package='cdQuPath'))
classifier <- buildClassifierFromSeurat(pseudo, markers)
tsv <- system.file("extdata", "test.qptiff.tsv.zip",
package = "cdQuPath",
mustWork = TRUE)
seu <- createSeuratObj(tsv, useValue = 'Median',
markerLocations = CodexPredefined$markerLocations)
seu <- fitGMM(seu)
alignedPseudo <- alignScRNAseqToCodex(codexSeu = seu,
scSeu = pseudo,
classifier = classifier)
} # }