Compute the correlation between total counts and each reduced dimension component.

DepthCor(object, assay = NULL, reduction = "lsi", n = 10, ...)

Arguments

object

A Seurat object

assay

Name of assay to use for sequencing depth. If NULL, use the default assay.

reduction

Name of a dimension reduction stored in the input object

n

Number of components to use. If NULL, use all components.

...

Additional arguments passed to cor

Value

Returns a ggplot object

Examples

DepthCor(object = atac_small)
#> Warning: font width unknown for character 0x9
#> Warning: font width unknown for character 0x9
#> Warning: font width unknown for character 0x9
#> Warning: font width unknown for character 0x9
#> Warning: font width unknown for character 0x9
#> Warning: font width unknown for character 0x9
#> Warning: font width unknown for character 0x9
#> Warning: font width unknown for character 0x9