getMarkers | R Documentation |
findMarkers
output DataFrameThis function parses a findMarkers()
output DataFrame and returns the
up- and down-regulated marker genes that passed the specified threshold.
getMarkers(
object,
direction = "both",
fdr = 0.05,
top = 200,
logfc = c(0, 0),
auc = c(0.3, 0.7),
max = 1000,
column_by = NULL
)
object |
A DataFrame that contain a sorted marker gene list for a
single group. It should be taken from a named list of DataFrames returned
by |
direction |
A string indicating the directionality of expression
changes of markers to retreive. Allowable character values are |
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
|
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 |
max |
An integer scalar indicating the maximum number of markers to return. Default is 1000. |
column_by |
A string indicating the column name containing the gene
symbols or IDs in the input |
The function takes a DataFrame from the findMarkers()
output (which is
a named list of DataFrames) and returns the marker genes that "passed" the
fdr
or top
threshold.
By specifying direction
, the function selects up-regulated markers when
direction = "up"
, down-regulated markers when direction = "down"
and
both up- and down-regulated markers when direction = "both"
(default).
The definition of up/down-regulation depends on the test.type
used when
running findMarkers()
.
A character vector
I-Hsuan Lin
scran::findMarkers()
library(SingleCellExperiment)
# Load demo dataset
data(sce)
# Retrieve first 1000 markers (default `max`) from the 1st DataFrame
# in 'findMarkers1', return rownames
getMarkers(metadata(sce)[["findMarkers1"]][[1]])
# Retrieve first 1000 up-regulated markers from the 2nd DataFrame
# in 'findMarkers4', return rownames
getMarkers(metadata(sce)[["findMarkers4"]][[2]], direction = "up")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.