collapse = TRUE,
  comment = "#>"


We introduce PAIRADISE (PAIred Replicate analysis of Allelic DIfferential Splicing Events), a method for detecting allele-specific alternative splicing (ASAS) from RNA-seq data. PAIRADISE uses a statistical model that aggregates ASAS signals across multiple individuals in a population. It formulates ASAS detection as a statistical problem for identifying differential alternative splicing from RNA-seq data with paired replicates. The PAIRADISE statistical model is applicable to many forms of allele-specific isoform variation (e.g. RNA editing), and can be used as a generic statistical model for RNA-seq studies involving paired replicates. More details can be found:


  1. Download the package.
if (!requireNamespace("BiocManager", quietly = TRUE))

The development version is also available to download from Github.

  1. Load the package into the R session.



A PDseDataSet class is defined to store the splicing count data, and contains inclusion and skipping counts for each sample. A design dataframe is required to describe the paired sample information. An integer dataframe of inclusion and skipping lengths are also required. The PDseDataSet extends the SummarizedExperiment class. All functions from SummarizedExperiment are inherited.

Here is an example to construct a PDseDataSet with 2 pairs of samples.

icount <- matrix(1:4, 1)
scount <- matrix(5:8, 1)
acount <- abind(icount, scount, along = 3)
design <- data.frame(sample = rep(c("s1", "s2"), 2),
                     group = rep(c("T", "N"), each = 2))
lens <- data.frame(sLen=1L, iLen=2L)
PDseDataSet(acount, design, lens)

A count matrix can be imported as a PDseDataSet directly.


PAIRADISE also includes two small sample datasets from Geuvadis and TCGA:



The “sample_dataset_CEU” dataset was generated by analyzing the allele-specific alternative splicing events in the GEUVADIS CEU data. Allele-specific reads were mapped onto alternative splicing events using rPGA (version 2.0.0). Then the allele-specific bam files mapped onto the two haplotypes are merged together to detect alternative splicing events using rMATS (version 3.2.5). The second LUSC dataset was generated by analyzing the tumor versus adjacent control samples from TCGA LUSC RNA-seq data.

Each row of the data corresponds to a different alternative splicing event. The data should have 7 columns. The order of the 7 columns in the input data frame to PAIRADISE follows the convention of the output of the rMATS software, arranged as follows:

  1. Column 1 contains the ID of the alternative splicing events.
  2. Column 2 contains counts of isoform 1 corresponding to the first group.
  3. Column 3 contains counts of isoform 2 corresponding to the first group.
  4. Column 4 contains counts of isoform 1 corresponding to the second group.
  5. Column 5 contains counts of isoform 2 corresponding to the second group.
  6. Column 6 contains the effective length of isoform 1.
  7. Column 7 contains the effective length of isoform 2.

To import the data to a PDseDataSet object.

pdat <- PDseDataSetFromMat(sample_dataset)

pairadise method

The pairadise function implements the PAIRADISE statistical model for the PDseDataSet object. Multiple processors can be used via the BiocParallel package. The function returns a PDseDataSet object with statistical estimates in its rowData. Here is how to run the model with 2 threads.

pairadise_output <- pairadise(pdat, numCluster = 2)


A function results can be used to calculate p values and filter the significant results. For example, results significant at an FDR of 0.01 can be obtained as follows.

res <- results(pairadise_output, p.adj = "BH", sig.level = 0.01)

With details=TRUE, more detailed statistical estimates can be returned.

res <- results(pairadise_output, details = TRUE)



Try the PAIRADISE package in your browser

Any scripts or data that you put into this service are public.

PAIRADISE documentation built on Nov. 8, 2020, 8:22 p.m.