| Title: | Cell Type Marker Database for Single-Cell RNA-Seq Data |
|---|---|
| Description: | Provides a meta-database of thousands of human and mouse cell identity markers curated from multiple sources, along with methods for cell type prediction based on marker gene overlaps or gene set enrichment. |
| Authors: | Igor Dolgalev [aut, cre] (ORCID: <https://orcid.org/0000-0003-4451-126X>) |
| Maintainer: | Igor Dolgalev <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 1.2.0 |
| Built: | 2026-10-11 12:09:45 UTC |
| Source: | https://github.com/igordot/clustermole |
Score cell type signatures using the full gene expression matrix.
clustermole_enrichment(expr_mat, species, method = "gsva", max_rank = 100)clustermole_enrichment(expr_mat, species, method = "gsva", max_rank = 100)
expr_mat |
Numeric matrix or data frame of logCPMs or logTPMs. Must contain at least 5,000 gene rows and five cluster/population columns. Row names must be unique. |
species |
Gene symbol species: |
method |
Enrichment method: |
max_rank |
Maximum signature rank to return. Defaults to |
A data frame with one row per returned signature and input column:
cluster: Input column name.
score: Enrichment score (higher means greater enrichment).
score_rank: Signature rank (lower means greater enrichment). With
method = "all", this is the average rank across methods.
Signature metadata (see clustermole_markers()).
With method = "all", these columns replace score:
score_rank_{method}: The ranks from each method.
score_ranks_{stat}: Minimum, mean, and median ranks across methods.
Barbie, D., Tamayo, P., Boehm, J. et al. Systematic RNA interference reveals that oncogenic KRAS-driven cancers require TBK1. Nature 462, 108–112 (2009). doi:10.1038/nature08460
Hänzelmann, S., Castelo, R. & Guinney, J. GSVA: Gene set variation analysis for microarray and RNA-Seq data. BMC Bioinformatics 14, 7 (2013). doi:10.1186/1471-2105-14-7
Foroutan, M., Bhuva, D.D., Lyu, R. et al. Single sample scoring of molecular phenotypes. BMC Bioinformatics 19, 404 (2018). doi:10.1186/s12859-018-2435-4
# my_enrichment <- clustermole_enrichment( # expr_mat = my_expr_mat, species = "hs" # )# my_enrichment <- clustermole_enrichment( # expr_mat = my_expr_mat, species = "hs" # )
Retrieve cell type markers from the clustermole database.
clustermole_markers(species = c("hs", "mm"))clustermole_markers(species = c("hs", "mm"))
species |
Gene symbol species: |
The gene column uses the official NCBI symbols for the requested species.
The package maps the aliases in each source database to these symbols. The
gene_original column preserves the symbol from the source. The source
databases include both human and mouse cell type markers. The package maps
them across species with ortholog data from the Alliance of Genome Resources
and keeps only reciprocal best matches. The output does not include genes
that have no ortholog in the requested species and does not include
signatures with fewer than five genes.
A data frame of cell type markers with these columns:
gene: Canonical gene symbol for the requested species.
gene_original: Original source gene symbol.
celltype_full: Full cell type signature identifier.
db: Source database.
celltype: Cell type label.
organ: Organ label.
species: Source signature species, if known.
n_genes: Gene count per signature.
markers <- clustermole_markers() head(markers)markers <- clustermole_markers() head(markers)
Perform overrepresentation analysis for a set of genes compared to all cell type signatures.
clustermole_overlaps(genes, species, max_p = 0.05, max_fdr = 1)clustermole_overlaps(genes, species, max_p = 0.05, max_fdr = 1)
genes |
A character vector of gene symbols. |
species |
Gene symbol species: |
max_p |
Maximum p-value to return. Defaults to |
max_fdr |
Maximum FDR to return. Defaults to |
A data frame with one row per returned signature:
overlap: Unique gene count shared by the input and signature.
p_value: Hypergeometric test p-value.
fdr: Benjamini-Hochberg adjusted p-value across all tested signatures.
n_genes: Unique gene count in the signature for the requested species.
Signature metadata (see clustermole_markers()).
my_genes <- c("CD2", "CD3D", "CD3E", "CD3G", "TRAC", "TRBC2", "LTB") my_overlaps <- clustermole_overlaps(genes = my_genes, species = "hs") head(my_overlaps)my_genes <- c("CD2", "CD3D", "CD3E", "CD3G", "TRAC", "TRBC2", "LTB") my_overlaps <- clustermole_overlaps(genes = my_genes, species = "hs") head(my_overlaps)
Read a GMT file into a data frame
read_gmt(file, geneset_label = "celltype", gene_label = "gene")read_gmt(file, geneset_label = "celltype", gene_label = "gene")
file |
A file path, URL, or connection. |
geneset_label |
Output column name for gene sets (GMT column 1). |
gene_label |
Output column name for genes (GMT columns 3 onward). |
A data frame with gene sets and genes, one gene per row.
## Not run: gmt <- "http://software.broadinstitute.org/gsea/msigdb/supplemental/scsig.all.v1.0.symbols.gmt" gmt_tbl <- read_gmt(gmt) head(gmt_tbl) ## End(Not run)## Not run: gmt <- "http://software.broadinstitute.org/gsea/msigdb/supplemental/scsig.all.v1.0.symbols.gmt" gmt_tbl <- read_gmt(gmt) head(gmt_tbl) ## End(Not run)