This is a plotting function for visualizing gene expression across subsets of clusters or samples. The diameter of a dot reflects the fraction of cells expressing a gene, and the color indicates the expression z-score across all clusters or samples.
fractDotPlot(
object,
genes,
cluster = NULL,
samples = NULL,
subset = NULL,
zsc = FALSE,
logscale = TRUE,
cap = Inf,
flo = -Inf
)
None
SCseq
class object.
vector of valid gene names corresponding to row names of slot ndata
. The expression for this genes is shown.
vector of valid cluster numbers contained in slot cpart
. Default is NULL
. If not given, then the samples
argument is expected.
If both are given, only the samples
argument is considered. If both are NULL
, then cluster
is initialized with all clusters.
vector of sample names for all cells. Length and order has to correspond to colnames
of slot ndata
. Default is NULL
.
vector of unique sample names to show in the expression dotplot. Each sample names in subset
has to occur in samples
.
Default is NULL
. If not given and samples
is not NULL
, the subset is intialized with all sample names occuring in samples
.
logical. If TRUE
then a z-score transformation is applied. Default is FALSE
.
logical. If TRUE
then a log2 transformation is applied. Default is TRUE
.
real number. Upper limit for the expression, log2 expression, or z-score. Values larges then cap
are replaced by cap
.
real number. Lower limit for the expression, log2 expression, or z-score. Values smaller then flo
are replaced by flo
.