Estimate Genetic Sex from Expression Counts

Infers the genetic sex of samples, donors or cells from bulk or single-cell RNA sequencing counts. Accepts dense or sparse matrices, delimited text files, 10x Genomics outputs, and 'Seurat', 'SingleCellExperiment' and 'SummarizedExperiment' objects.


SexSeek SexSeek logo

SexSeek estimates genetic sex from bulk or single-cell expression counts, using sex-chromosome marker expression and X-inactivation markers. Each sample, donor or cell is called male, female, uncertain, possible_mixed or unknown, with confidence metrics.

Install

install.packages("SexSeek")

# development version
remotes::install_github("saketlab/SexSeek")

Use

library(SexSeek)

path <- system.file("extdata", "example_counts.tsv.gz", package = "SexSeek")
counts <- as.matrix(read.delim(path, row.names = 1))
EstimateSex(counts, group = colnames(counts))

EstimateSex(counts)                          # matrix, sparse matrix, data frame
EstimateSex("counts.tsv.gz")                 # delimited file
EstimateSex("filtered_feature_bc_matrix/")   # 10x MatrixMarket directory
EstimateSex("sample.h5")                     # 10x HDF5
EstimateSex(seurat_obj, group = "donor")     # aggregate by a metadata column

Species is detected from the gene identifiers; pass species = "mouse" (common or scientific name) to set it.

Genevintage annotations

You can provide your own set of sex genes or fetch it from genevintage:

install.packages("genevintage")
sex_genes <- SexChromosomeGenes("human", release = 116, source = "ensembl")
EstimateSex(counts, species = "human", annotation = sex_genes)
EstimateSex(counts, species = "human", annotation = "genevintage")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("SexSeek")

0.1.0 by Saket Choudhary, a day ago


https://sexseek.saketlab.org, https://github.com/saketlab/SexSeek


Report a bug at https://github.com/saketlab/SexSeek/issues


Browse source code at https://github.com/cran/SexSeek


Authors: Saket Choudhary [aut, cre, cph] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports ggplot2, Matrix, methods, stats, utils

Suggests genevintage, hdf5r, knitr, rmarkdown, SeuratObject, SingleCellExperiment, SummarizedExperiment, testthat


See at CRAN