Skip to content
Branch: master
Go to file

Latest commit


Failed to load latest commit information.
Latest commit message
Commit time

We thank the Breast Cancer Research Foundation for financial support of this work.


To install the development version of BaalChIP R package from GitHub type:


BaalChIP R package

BaalChIP (Baysian Anaysis of Allelic imbalances from ChIP-seq data) was built for the identification of allele-specific binding (ASB) events from ChIP-seq data obtained from cancer cell lines.

BaalChIP tests the differential read counts of the alleles at each heterozygous variant using the quantitative information of ChIP-seq read counts at the reference and alternative alleles and accomodating the information about the allele presence and other sources of ChIP-seq mapping biases.

Example run

This document offers a quick example of how to use BaalChIP to identify ASB events with correction for relative allele frequency.

The example dataset contains ChIP-seq data obtained for two cell lines: A cancer cell-line (MCF7) and a normal cell line (GM12891). For each cell line, ChIP-seq data exists for four transcription factors and two biological replicates for each of the transcription factors. The metadata and all files necessary for this example are available in the extra subdirectory of the BaalChIP package directory; you can make this your working directory by entering:


Note that the example data in this vignette does not reveal real biology and was build only for demonstration purposes.

The first step is to contruct a BaalChIP object:

samplesheet <- "exampleChIP.tsv"
hets <- c("MCF7"="MCF7_hetSNP.txt", "GM12891"="GM12891_hetSNP.txt")
res <- new("BaalChIP", samplesheet=samplesheet, hets=hets)

Given a new BaalChIP object, allele-specific binding events can be identified as follows:

#first load some data

#run example
res <- alleleCounts(res, min_base_quality=10, min_mapq=15)
res <- QCfilter(res,
res <- mergePerGroup(res)
res <- filter1allele(res)
res <- getASB(res, Iter=5000, conf_level=0.95)

Example run in a 2-step wrapper script

If you trust the package defaults, the first four steps can be replaced by a wrapper function, making BaalChIP workflow possible to run in a 3-step script:

res <- new("BaalChIP", samplesheet=samplesheet, hets=hets)
res <-

The package vignette describes these steps in more detail.

You can’t perform that action at this time.