Plot gene scores on a UMAP embedding
plot_gene_scores.RdExtracts gene scores, optionally applies MAGIC imputation and log2
transformation, then delegates rendering to plot_embedding.
Usage
plot_gene_scores(x, ...)
# S3 method for class 'MarchRProject'
plot_gene_scores(
x,
genes,
embedding = "UMAP",
assay_name = "GeneScoreMatrix",
impute = TRUE,
log_transform = TRUE,
limits = NULL,
patchwork = FALSE,
verbose = getOption("MarchR.verbose", FALSE),
...
)Arguments
- x
(MarchRProject) Project with embeddings and gene scores.
- ...
Passed to
plot_embedding(e.g.plot_as,colors_continuous,size,rastr,quant_cut).- genes
(character) Gene names to plot.
- embedding
(character) Embedding prefix. Default
"UMAP".- assay_name
(character) Gene score assay. Default
"GeneScoreMatrix".- impute
(logical) Apply MAGIC imputation if weights available. Default TRUE.
- log_transform
(logical) Apply
log2(x + 1). Default TRUE.- limits
Absolute value clipping:
c(min, max)or"range".- patchwork
(logical) Returns multi-gene output as patchwork object if TRUE. Default FALSE.
- verbose
(logical) Print progress messages. Default
getOption("MarchR.verbose", FALSE).
Details
Default colors_continuous is palette_continuous("blueYellow").
Override via ....
ArchR correspondence: plotEmbedding(colorBy = "GeneScoreMatrix",
imputeWeights = getImputeWeights(proj))