This is a convenience function that quickly plots known sexually dimorphic genes, and overall gene experssion for the X and Y chromosomes.

plotGenderMarkers(object, ...)

# S4 method for SummarizedExperiment
plotGenderMarkers(object,
  style = "wide", ...)

# S4 method for SingleCellExperiment
plotGenderMarkers(object, ...)

Arguments

object

Object.

style

character(1). Plot style.

...

Passthrough to plotCounts(), with the genes argument automatically defined.

Value

ggplot.

Methods (by class)

  • SingleCellExperiment: Applies pseudobulk() calculation to average gene expression at sample level prior to plotting.
    Passes ... to SummarizedExperiment method.

Note

Currently only Homo sapiens and Mus musculus genomes are supported.

Updated 2019-09-15.

See also

Examples

data( RangedSummarizedExperiment, SingleCellExperiment, package = "acidtest" ) ## SummarizedExperiment ==== object <- RangedSummarizedExperiment plotGenderMarkers(object)
#> Some genes failed to map: ENSG00000173674, ENSG00000229807, ENSG00000067048, ENSG00000114374, ENSG00000183878.
## SingleCellExperiment ==== object <- SingleCellExperiment plotGenderMarkers(object)
#> Aggregating counts using 'mean()'.
#> Some genes failed to map: ENSG00000173674, ENSG00000229807, ENSG00000067048, ENSG00000114374, ENSG00000183878.