pSI calculates the Specificity Index (pSI) statistic, which identifies genes enriched in specific cell types or tissues from a matrix of expression profiles, and performs Cell type-Specific Expression Analysis (CSEA): testing whether a candidate gene list, for example genes associated with a disorder, is over-represented among the genes specific to each cell type. The method comes from the Dougherty lab at Washington University in St. Louis.
From CRAN (once version 1.2.0 is accepted):
install.packages("pSI")The development version, from GitHub:
# install.packages("pak")
pak::pak("DunderChief/pSI")library(pSI)
# 1. Compute pSI values from an expression matrix: genes in rows, cell types
# (or tissues, or brain regions) in columns. The bundled sample.data$pSI.input
# is BrainSpan RNA-seq data for six adult brain regions.
set.seed(1)
psi <- specificity.index(pSI.in = sample.data$pSI.input, e_min = 20)
# 2. Which genes are specific to each region, and how many, at the four
# standard pSI thresholds (0.05, 0.01, 0.001, 0.0001)?
specific_genes <- pSI.list(sample.data$pSI.output)
pSI.count(sample.data$pSI.output)
# 3. CSEA: is a candidate gene list enriched among the genes specific to any
# region? Benjamini-Hochberg adjusted p-values from Fisher's exact test ...
fisher.iteration(sample.data$pSI.output, candidate.genes$AutDB)
# ... and the overlapping genes themselves
candidate.overlap(sample.data$pSI.output, candidate.genes$AutDB)See ?specificity.index for the statistic and its
parameters, and the package
website for the full reference.
Precomputed pSI tables for 35 mouse cell types (bacTRAP, as of
October 2013) and for human brain regions across development
(BrainSpan), used in the CSEA paper, were distributed as the companion
package pSI.data. At 10 MB they were never on CRAN. They
now live as a GitHub
release of this repository, unchanged from the 2014 originals, and
the package fetches them on demand:
mouse <- psi_data("mouse") # asks once whether to keep a local copy
human <- psi_data("human")
# CSEA of a candidate list against the 35 mouse cell types
fisher.iteration(mouse$psi.out, candidate.genes$AutDB)psi_data() verifies each download against its checksum
and returns NULL with a message, rather than an error, if
the files cannot be fetched. See ?psi_data for what the two
lists contain and how caching works.
Run citation("pSI"). The package and the CSEA method are
described in:
The specificity index statistic itself:
Tissue-specific expression analysis (TSEA) with pSI:
pSI 1.0 and 1.1 were released on CRAN in January 2014, maintained by Alan B. Wells. The package was archived in September 2020 when the maintainer’s email address stopped working. Version 1.2.0 brings it back to CRAN with David R. O’Brien, a co-author since 1.0, as maintainer. The five exported functions keep their names, arguments and results; see the changelog for what changed.
GPL (>= 2). Copyright the authors: Xiaoxiao Xu, Alan B. Wells, David R. O’Brien, Arye Nehorai and Joseph D. Dougherty.