printMarkerStats | R Documentation |
findMarkers
outputThis function parses the findMarkers()
output (from the pkg{scran} package) and print the number of marker genes that "passed" the
fdror
top' threshold on to standard output in interactive sessions. It
provides a quick way to find out the number of candidate marker genes.
printMarkerStats(
object,
fdr = 0.05,
top = 200,
pval.type = NULL,
min.prop = NULL,
logfc = c(0, 0),
auc = c(0.3, 0.7)
)
object |
A named list of DataFrames returned by |
fdr |
A numeric scalar indicating the FDR threashold used to select
markers. This threshold has no effect when the input source is from
|
top |
An integer scalar indicating the 'Top' threashold used to select
markers. This threshold is only applicable when the input source is from
|
pval.type |
A string specifying how p-values are to be combined across
pairwise comparisons for a given group/cluster when using |
min.prop |
A numeric scalar specifying the minimum proportion of
significant comparisons per gene when using |
logfc |
A numeric vector of length 2 specifying the logFC threasholds
used to select up-/down-regulated markers/DEGs. This threshold has
no effect when the input source is from |
auc |
A numeric vector of length 2 specifying the AUC threasholds
used to select up-/down-regulated markers. This threshold is only
applicable when the input source is from |
The function can detect the pval.type
and test.type
, to a certain
degree, based on the resulting DataFrame structure. One can optionally
provide the pval.type
and min.prop
settings used to run findMarkers()
to allow printMarkerStats()
to use them in the printed messages.
‘simple’ diagnostic messages
I-Hsuan Lin
scran::findMarkers()
library(SingleCellExperiment)
# Load demo dataset
data(sce)
# Use result saved after running `findMarkers()` with `pval.type = "any"`
printMarkerStats(metadata(sce)[["findMarkers1"]])
# Use result saved after running `findMarkers()` with `pval.type = "all"`
printMarkerStats(metadata(sce)[["findMarkers2"]])
# Use result saved after running `findMarkers()` with `pval.type = "any"`
# and `min.prop = 0.5`
printMarkerStats(metadata(sce)[["findMarkers3"]], min.prop = 0.5)
# Use result saved after running `findMarkers()` with `test.type = "wilcox"`
printMarkerStats(metadata(sce)[["findMarkers4"]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.