true_bulk | R Documentation |
colData
slot.In co-clustering, assign true bulk to cells in colData
slot.
true_bulk(sce, df.match)
sce |
A |
df.match |
The matching table between cells and true bulk. |
A SingleCellExperiment
object.
Jianhai Zhang jzhan067@ucr.edu
Dr. Thomas Girke thomas.girke@ucr.edu
Morgan M, Obenchain V, Hester J, Pagès H (2021). SummarizedExperiment: SummarizedExperiment container. R package version 1.24. 0, https://bioconductor.org/packages/SummarizedExperiment.
# Matching table.
match.mus.brain.pa <- system.file("extdata/shinyApp/data", "match_mouse_brain_cocluster.txt", package="spatialHeatmap")
df.match.mus.brain <- read.table(match.mus.brain.pa, header=TRUE, row.names=1, sep='\t')
df.match.mus.brain
# Create random data matrix.
df.random <- matrix(rexp(30), nrow=5)
dimnames(df.random) <- list(paste0('gene', seq_len(nrow(df.random))), c('cere', 'cere', 'hipp', 'hipp', 'corti.sub', 'corti.sub'))
library(SingleCellExperiment); library(S4Vectors)
cell.refined <- SingleCellExperiment(assays=list(logcounts=df.random), colData=DataFrame(cell=colnames(df.random)))
#cell.refined <- true_bulk(cell.refined, df.match.mus.brain)
#colData(cell.refined)
# See detailed example in the "coclus_meta" function by running "?coclus_meta".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.