Skip to content

Vivianstats/MAAPER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAAPER: Model-based analysis of alternative polyadenylation using 3’ end-linked reads

Wei Vivian Li, Bin Tian 2021-08-13

Latest News

2021/08/13:

  • Version 1.1.1 released!

2021/06/15:

  • Version 1.1.0 released!

Introduction

MAAPER is a computational method for model-based analysis of alternative polyadenylation using 3’ end-linked reads. It uses a probabilistic model to predict polydenylation sites (PASs) for nearSite reads with high accuracy and sensitivity, and examines different types of alternative polyadenylation (APA) events, including those in 3’UTRs and introns, using carefully designed statistics.

Any suggestions on the package are welcome! For technical problems, please report to Issues. For suggestions and comments on the method, please contact Vivian ([email protected]).

Installation

You can install MAAPER from CRAN with:

install.packages("MAAPER")

Quick start

maaper requires three input files:

  • The GTF file of the reference genome;
  • The BAM files of the 3’ sequencing data (nearSite reads). The BAM file should be sorted and the index BAI file should be present in the same directory as the BAM file;
  • The PAS annotation file whose version matches the reference genome. We have prepared PolyA_DB annotation files for MAAPER, and they can be downloaded from this page.

The final output of mapper are two text files named “gene.txt” and “pas.txt”, which contain the predicted PASs and APA results.

Below is a basic example which shows how to use the maaper function. The bam and gtf files used in this example can be downloaded here. To save computation time, we are providing a toy example dataset of chr19. In real data application, we do not recommend dividing the files into subsets by chromosomes.

library(MAAPER)

pas_annotation = readRDS("./mouse.PAS.mm9.rds")
gtf = "./gencode.mm9.chr19.gtf"
# bam file of condition 1 (could be a vector if there are multiple samples)
bam_c1 = "./NT_chr19_example.bam"
# bam file of condition 2 (could be a vector if there are multiple samples)
bam_c2 = "./AS_4h_chr19_example.bam"

maaper(gtf, # full path of the GTF file
       pas_annotation, # PAS annotation
       output_dir = "./", # output directory
       bam_c1, bam_c2, # full path of the BAM files
       read_len = 76, # read length
       ncores = 12  # number of cores used for parallel computation 
      )

Please note the following options in the mapper function:

  • By default, maaper users the unpaired test. Please set paired = TRUE in order to use the paired test. We recommend only using the paired test when samples are paired and sample size is relatively large.
  • If you would like to obtain bedGraph files corresponding to estimated APA profiles for visualization with UCSC or IGV genome browser, please set bed = TRUE. It is set to FALSE by default.

Please refer to the package manual for a full list of arguments and detailed usage.

Citation

Li, W. V., Zheng, D., Wang, R., & Tian, B. (2021). MAAPER: model-based analysis of alternative polyadenylation using 3’end-linked reads. Genome Biology, in press. Link