Description Usage Arguments Value Note Author(s) See Also Examples
Sanitize Markers Output
| 1 2 3 4 | sanitizeMarkers(object, ...)
## S4 method for signature 'seurat'
sanitizeMarkers(object, markers)
 | 
| object | Object. | 
| ... | Additional arguments. | 
| markers | Original  | 
data.frame, arranged by adjusted P value.
Seurat::FindAllMarkers() maps the counts matrix rownames correctly in
the gene column, whereas Seurat::FindMarkers() maps them correctly in
the rownames of the returned marker data.frame.
Michael Steinbaugh
Other Clustering Functions: cellTypesPerCluster,
knownMarkersDetected,
plotCellTypesPerCluster,
plotFeatureTSNE,
plotKnownMarkersDetected,
plotPCElbow, plotTSNE,
topMarkers
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # seurat ====
object <- seurat_small
# `FindAllMarkers` return
invisible(capture.output(
    all_markers <- Seurat::FindAllMarkers(object)
))
all_sanitized <- sanitizeMarkers(
    object = object,
    markers = all_markers
)
glimpse(all_sanitized)
# `FindMarkers()` return
invisible(capture.output(
    ident_3_markers <- Seurat::FindMarkers(
        object = object,
        ident.1 = "3",
        ident.2 = NULL
    )
))
ident_3_sanitized <- sanitizeMarkers(
    object = object,
    markers = ident_3_markers
)
glimpse(ident_3_sanitized)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.