Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf ·...

95
Statistical analysis of ChIP-seq data und¨ uz Kele¸ s Department of Statistics Department of Biostatistics and Medical Informatics University of Wisconsin, Madison Feb 9, 2012 BMI 776 (Spring 12) 02/09/2012 1 / 91

Transcript of Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf ·...

Page 1: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Statistical analysis of ChIP-seq data

Sunduz Keles

Department of StatisticsDepartment of Biostatistics and Medical Informatics

University of Wisconsin, Madison

Feb 9, 2012

BMI 776 (Spring 12) 02/09/2012 1 / 91

Page 2: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Basic principles of gene expression

Each cell contains a complete copy of the organism’s genome (thesame hardware!).

Cells are of many different types and states. E.g. skin, blood, andnerve cells, cancerous cells, etc.

What makes the cells different?

Each cell utilizes only a subset of the whole set of genes. Differentialgene expression, i.e., when, where, and how much each gene isexpressed.

The mechanism that controls gene expression is called the regulationof gene expression.

BMI 776 (Spring 12) 02/09/2012 2 / 91

Page 3: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Stages of regulation of gene expression

during chromatin modifications (DNA packaging),

during transcription control,

splicing,

transport and translation control.

Transcriptional control : most common way of regulation; occurs duringthe transcription phase when the DNA is transcribed into RNA.Basic elements of transcriptional control:

Transcription factors,

DNA binding sites (regulatory motifs), enhancers,

Promoters.

BMI 776 (Spring 12) 02/09/2012 3 / 91

Page 4: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Complexity of eukaryotic transcriptional regulation

TGA-T-

[A/T]CGCG[A/T]

TCACGTG

Harbison et al. Nature (2004)

CCG----CGG GGC----GCCPROMOTER REGIONPROMOTER REGION

BMI 776 (Spring 12) 02/09/2012 4 / 91

Page 5: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Data collection for the motif finding problem

Through microarray technology:

Genomewide gene expression data: Relative abundance of geneexpression in different cell types is measured.

ChIP-chip data: Genome-wide maps of DNA and protein interactions(Ren, B. et al. (2000) & Iyer, V.R. et al. (2001), Simon, I. (2001),Lieb, J. (2001), Lee et al. (2002).) [a.k.a. ChIP-chip data]

Through comparative genomics: Multiple genome sequences from relatedspecies.Through high throughput sequencing: Genome-wide maps of DNA andprotein interactions by ChIP-Seq experiments.

BMI 776 (Spring 12) 02/09/2012 5 / 91

Page 6: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Data collection for motif finding problem

Based on expression or multiple species data, we extract 500-1000bpsupstream of the transcription start sites (TSS).

ChIP-chip/seq data generates specific coordinates of binding whichmay not be restricted to upstream of the TSS.

BMI 776 (Spring 12) 02/09/2012 6 / 91

Page 7: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

High throughput ChIP assay (ChIP-seq): Chromatinimmunoprecipitation combined with high throughputsequencing

ChIP: Chromatin immunoprecipitation (in vivo).

seq: High throughput sequencing (mainly Illumina for us).

ChIP-seq: ChIP followed by high throughput sequencing.

BMI 776 (Spring 12) 02/09/2012 7 / 91

Page 8: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP assay

Target protein =

BMI 776 (Spring 12) 02/09/2012 8 / 91

Page 9: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP assay

1. Crosslink DNA and protein in vivo by exposing cells to formaldehyde.

Target protein =

BMI 776 (Spring 12) 02/09/2012 9 / 91

Page 10: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP assay

1. Crosslink DNA and protein in vivo by exposing cells to formaldehyde.

2. Extract the chromatin from cells and fragment by sonication (~ 500-1000 bps).

Target protein =

BMI 776 (Spring 12) 02/09/2012 10 / 91

Page 11: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP assay

1. Crosslink DNA and protein in vivo by exposing cells to formaldehyde.

2. Extract the chromatin from cells and fragment by sonication (~ 500-1000 bps).

3. Immunoprecipitate using a target protein-specific antibody. Selectively binds to the target protein.

Target protein =

BMI 776 (Spring 12) 02/09/2012 11 / 91

Page 12: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP assay

1. Crosslink DNA and protein in vivo by exposing cells to formaldehyde.

2. Extract the chromatin from cells and fragment by sonication (~ 500-1000 bps).

3. Immunoprecipitate using a target protein-specific antibody.

4. Reverse the cross-links and purify DNA.

Selectively binds to the target protein.

Target protein =

BMI 776 (Spring 12) 02/09/2012 12 / 91

Page 13: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP assay

1. Crosslink DNA and protein in vivo by exposing cells to formaldehyde.

2. Extract the chromatin from cells and fragment by sonication (~ 500-1000 bps).

3. Immunoprecipitate using a target protein-specific antibody.

4. Reverse the cross-links and purify DNA.

5. Find the identity of the isolated DNA fragments.

Selectively binds to the target protein.

Target protein =

BMI 776 (Spring 12) 02/09/2012 13 / 91

Page 14: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Variations: MNase-seq for nucleosome occupancy

In high throughput experiments experiments measuring nucleosomeoccupancy, an enzyme called ”Micrococcal nuclease” is used to digestnucleosome free regions instead of sonication + immunoprecipitation.

BMI 776 (Spring 12) 02/09/2012 14 / 91

Page 15: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Traditional ChIP assay

The identity of the DNA fragments isolated in complex with theprotein of interest can then be determined by polymerase chainreaction (PCR) using primers specific for the DNA regions that theprotein in question is hypothesized to bind.

One experiment per hypothesized region.

Identify the identity of all the immunoprecipitated regions?Sequencing (ChIP-Seq) (previously with ChIP-chip).

BMI 776 (Spring 12) 02/09/2012 15 / 91

Page 16: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq data generation

Next Gen Seq Tech

BMI 776 (Spring 12) 02/09/2012 16 / 91

Page 17: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq data generation

Sequencing

Sequencing depth: Total tags/sequenced fragments

ATCCGATCT

Tags

Next Gen Seq Tech

BMI 776 (Spring 12) 02/09/2012 17 / 91

Page 18: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq data generation

Sequencing

Sequencing depth: Total tags/sequenced fragments

ATCCGATCT

ATTCCGTTAACGTAGGTTAACCGGTAGCATGCAATGGCCGTATGACGATGACGATGACAGTTTAAGCGGCAGATTGCCGATTGGACCGATGGCACCG

Mapping to reference genome

Tags

Next Gen Seq Tech

BMI 776 (Spring 12) 02/09/2012 18 / 91

Page 19: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq data generation

Sequencing

Sequencing depth: Total tags/sequenced fragments

ATCCGATCT

ATTCCGTTAACGTAGGTTAACCGGTAGCATGCAATGGCCGTATGACGATGACGATGACAGTTTAAGCGGCAGATTGCCGATTGGACCGATGGCACCG

Mapping to reference genome

ATTCCGTTAACGTAGGTTAACCGGTAGCATGCAATGGCCGTATGACGATGACATGACAGTTTAAGCGGCAGATTGCCGATTGGACCGATGGCACCG

Partition the genome into small bins (genomic windows).

Summarize total tag counts in each bin

Tags

Next Gen Seq Tech

BMI 776 (Spring 12) 02/09/2012 19 / 91

Page 20: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq data generation

Sequencing

Sequencing depth: Total tags/sequenced fragments

ATCCGATCT

ATTCCGTTAACGTAGGTTAACCGGTAGCATGCAATGGCCGTATGACGATGACGATGACAGTTTAAGCGGCAGATTGCCGATTGGACCGATGGCACCG

Mapping to reference genome

ATTCCGTTAACGTAGGTTAACCGGTAGCATGCAATGGCCGTATGACGATGACATGACAGTTTAAGCGGCAGATTGCCGATTGGACCGATGGCACCG

Partition the genome into small bins (genomic windows).

Summarize total tag counts in each bin

Tags

Next Gen Seq Tech

Uniquely aligned tags

BMI 776 (Spring 12) 02/09/2012 20 / 91

Page 21: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

FASTQ format

@HWUSI-EAS1789_0000:5:1:1049:9966#GGCTAN/1

CAGAAGTGCATCAAACATGATTTAGAGCTTGTTTAT

+HWUSI-EAS1789_0000:5:1:1049:9966#GGCTAN/1

‘ddadc^aYc\b\Ybc^d^^cdd\cdddccaccc^d

The first line begins with an @ symbol and is followed by the sequence name.

@lane:tile:x_coordinate_on_tile:y_coordinate_on_tile:quality_filter

The second line contains the base call (in this case for each of 36nucleotides).

The third line begins with a + symbol and may (or may not) repeat thesequence name.

The fourth line contains a symbol that measures the quality score for thecorresponding base call as listed on the second line. There should be onesymbol for each base call. The symbol on the fourth line uses an ASCIIcharacter (American Standard Code for Information Interchange) to encodethe quality score.

BMI 776 (Spring 12) 02/09/2012 21 / 91

Page 22: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Mapping reads to reference genome: Tools

Eland

Bowtie

MAQ

...

BMI 776 (Spring 12) 02/09/2012 22 / 91

Page 23: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Mapping reads to reference genome

From an eland extended output:

>HWUSI-EAS1789_0000:6:1:14464:6867#TTAGG./1 ACTGGTAGTCTGACTGTACATTGAAACATTCCTTAA

1:0:0 chr8.fa:87764854F36

>HWUSI-EAS1789_0000:6:120:18004:6530#TTAGGC/1 AAGTCTGCTCTGTGTAAAGGATCGTTCGACTCTGTG

0:2:0 chr1.fa:121185632R27A8,121186651R27A8

>HWUSI-EAS1789_0000:6:120:17588:21429#TTAGGC/1 GAATCTGAAAGTGGATATTTGGATAGCTTTGCGGAT

0:2:32 chr2.fa:91638898F31A4,chr9.fa:66565311F31A4

chr9.fa:66565311F31A4 denotes a match with 1 mismatch to position66565311 in the forward strand of chr 9. 31+A+4 = 36 bps.As a result of mapping, we obtain the ”observations/measurements” thatwe can do statistical inference on.

BMI 776 (Spring 12) 02/09/2012 23 / 91

Page 24: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

What does the aligned data look like?

BMI 776 (Spring 12) 02/09/2012 24 / 91

Page 25: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Practical challenges of dealing with Next Gen data

Useful to know some scripting language, e.g. perl, python.Storage of the data is a big problem.

An aligned read file with 95 million reads is around 15-20GB. This istypically ”one sample” for us.Then for each treatment sample we typically have a control sample.If we are going beyond identifying peaks, e.g., differential binding etc,we have at least 2 reps per treatment. A simple study adds up to 8samples (or to 200 GB).The good news is that, often, we can build statistical inference on dataextracted from the aligned files.In our work, we call these bin files. We partition the genome intonon-overlapping intervals of 200 bps and count the number of readsfalling into each interval – reduces size to 200MB.chr5 152001400 8

chr5 152001600 12

chr5 152001800 20

chr5 152002000 20

chr5 152002200 13

chr5 152002400 6

chr5 152002600 17

chr5 152002800 974

chr5 152003000 1099

BMI 776 (Spring 12) 02/09/2012 25 / 91

Page 26: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq data structure

ACGCGTCACGTCAAAACGCGCTAGATAGATAGCCGCTAGCGAGAGAGA

Protein

BMI 776 (Spring 12) 02/09/2012 26 / 91

Page 27: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq data structure

ACGCGTCACGTCAAAACGCGCTAGATAGATAGCCGCTAGCGAGAGAGA

Protein

Total tag counts in one “bin”

BMI 776 (Spring 12) 02/09/2012 27 / 91

Page 28: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq data structure

ACGCGTCACGTCAAAACGCGCTAGATAGATAGCCGCTAGCGAGAGAGA

Protein

Total tag counts in one “bin”

BMI 776 (Spring 12) 02/09/2012 28 / 91

Page 29: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq data structure

Genomic position

ChI

P−

Seq

tag

coun

t0

1020

3040

51215450 51225550

BMI 776 (Spring 12) 02/09/2012 29 / 91

Page 30: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq data structure

Which of these are real peaks?

How would the data look like under the null distribution? =⇒ Samethreshold for all the peaks? Same null distribution along the genome?

BMI 776 (Spring 12) 02/09/2012 30 / 91

Page 31: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

A key plot for ChIP-seq data

0 100 200 300 400

0

100

200

300

400

r1 Input

r1 C

hIP

r1 ChIP vs Input 1.491

1371744

11228874019024887

125603227682943

21314654774014075793617187

Counts

BMI 776 (Spring 12) 02/09/2012 31 / 91

Page 32: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

A key plot for ChIP-seq data

0 100 200 300

0

100

200

300

400

500

r2 Input

r2 C

hIP

r2 ChIP vs Input 6.665

126133275

17742099523595592

132523140974440

176424418131990983

Counts

BMI 776 (Spring 12) 02/09/2012 32 / 91

Page 33: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

A key plot for ChIP-seq data

0 100 200 300 400

0

100

200

300

400

500

r1 ChIP

r2 C

hIP

r1 ChIP vs r2 ChIP 4.47

126133173

17340896422765373

126842994270680

166848393861929749

Counts

BMI 776 (Spring 12) 02/09/2012 33 / 91

Page 34: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

A key plot for ChIP-seq data

0 100 200 300 400

0

100

200

300

400

500

r1 ChIP

r2 C

hIP

r1 ChIP vs r2 ChIP 4.47

126133173

17340896422765373

126842994270680

166848393861929749

Counts

BMI 776 (Spring 12) 02/09/2012 34 / 91

Page 35: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq vs. Control experiments: Sono-Seq (Input-Seq),Naked-DNA-Seq

Auerbach et al.PNAS 2009; 106:14926-14931.

BMI 776 (Spring 12) 02/09/2012 35 / 91

Page 36: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq, Sono-Seq, Naked-DNA-Seq

STAT1

Tag count

Fre

quen

cy

STAT1 ChIP

0 9 99

110

100

1000

1000

01e

+05

BMI 776 (Spring 12) 02/09/2012 36 / 91

Page 37: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq, Sono-Seq, Naked-DNA-Seq

STAT1

Tag count

Fre

quen

cy

STAT1 ChIP

Stim Input DNA

0 9 99

110

100

1000

1000

01e

+05

BMI 776 (Spring 12) 02/09/2012 37 / 91

Page 38: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq, Sono-Seq, Naked-DNA-Seq

STAT1

Tag count

Fre

quen

cy

STAT1 ChIP

Stim Input DNA

Naked DNA

0 9 99

110

100

1000

1000

01e

+05

BMI 776 (Spring 12) 02/09/2012 38 / 91

Page 39: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq, Sono-Seq, Naked-DNA-Seq

STAT1

Tag count

Fre

quen

cy

0 9 99

110

100

1000

1000

01e

+05

Strong peak

Chromatin

Sequence bias

BMI 776 (Spring 12) 02/09/2012 39 / 91

Page 40: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Mappability and GC biases in ChIP-Seq data

Mappability bias: due to retaining only uniquely aligning tags.Rozowsky et al. (2009).

79.6% of the human genome is uniquely mappable using 30bp tags.(91.1% for 75bp tags).

GC bias: Dohm et al. (2008), Vega et al. (2009).

> Background for ChIP-Seq data is not uniform =⇒ need forregion/location specific cut-offs for calling peaks.

> Naked DNA sequencing data provides an excellent platform toinvestigate and model these effects.

BMI 776 (Spring 12) 02/09/2012 40 / 91

Page 41: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Sequence bias in ChIP-Seq data: Mean tag count vs Mappability

( bin-level ) and GC content: HeLa S3 Naked-DNA-Seq (GSE14022)

Mappability GC

●●●●●●●●●●●●●●

●●

●●●●●●

●●●●●●●●●

●●●●●

●●

●●●●

●●●

●●●●

●●●●●

●●●●

●●●

●●●

●●●●●●

●●●●●●●

●●●●●

●●●

●●●●●

●●●●

●●●●●

0.0 0.2 0.4 0.6 0.8 1.0

0.0

0.5

1.0

1.5

2.0

2.5

3.0

3.5

NakedDNA chr6

M

Mea

n ta

g co

unt

●●●●

●●●●●

●●●

●●

●●

●●

●●●●●

●●●●●●●●●●●●

●●●●●●●●

●●●

●●●●

●●

●●●

●●

0.0 0.2 0.4 0.6 0.8 1.0

01

23

4

NakedDNA chr6 || 2.94% > 0.55 || 7.65% < 0.3

GC

Mea

n ta

g co

unt

M-GC

Same relationships hold for data from mouse. Mouse

BMI 776 (Spring 12) 02/09/2012 41 / 91

Page 42: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Background/Null model for one-sample ChIP-Seq data

Existing methods:

Poisson distribution.Negative binomial distribution(CisGenome, Ji et al. (2008)).

Excess zeroes andover-dispersion.

Mappability and GC bias =⇒bin specific distributions.

0 2 4 6 8 10

02

46

810

Bin level mean/variance relationship

Mean

Var

ianc

e

BMI 776 (Spring 12) 02/09/2012 42 / 91

Page 43: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Poisson vs. Neative Binomial Distributions

Y ∼ Poisson(λ),

=⇒ E [Y ] = λ, var[Y ] = λ.

a: shape, b:scale.

Y = NegBin(a, b)

=⇒ E [Y ] = a/b, var[Y ] = a(1 + b)/b2.

Alternative parametrization (in R)

Y = NegBin(ρ, µ)

=⇒ E [Y ] = µ, var[Y ] = µ+ µ2/ρ,

where ρ = a, µ = a/b.

1/ρ is referred to as the ”dispersion” parameter.BMI 776 (Spring 12) 02/09/2012 43 / 91

Page 44: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Poisson, mean = 10

Density

0 5 10 15 20 25 30

0.00

0.04

0.08

0.12

NegBin, mean = 10, var = 30

Density

0 10 20 30 40 50

0.00

0.02

0.04

0.06

0.08

Poisson, mean = 110

Density

60 80 100 120 140 160

0.00

0.01

0.02

0.03

NegBin, mean = 10, var = 110

Density

0 50 100 150

0.00

0.04

0.08

0.12

BMI 776 (Spring 12) 02/09/2012 44 / 91

Page 45: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Background/Null model for one sample ChIP-Seq data

Yj : observed tag counts for bin j .Nj : background tag counts for the bin.Mj : average mappability score.GCj : average GC content.

Non-homogeneousbackground

Yj ∼ Nj

Nj |µj ∼ g(µj)

Candidate models for g(µj)

1 g(µj) ∼ Po(µj) (Poi Reg)

2 g(µj) ∼ NegBin(a, a/µj)(NegBin Reg)

Candidate models for µj

1 µj = exp(β0)

2 µj = exp(β0 + βM log2(Mj + 1))

3 µj = exp(β0 + βGCGCj)

4 µj =exp(β0+βM log2(Mj +1)+βGCGCj)

5 µj = exp(β0 + βGCSp(GCj))

6 µj = exp(β0 + βM log2(Mj + 1) +βGCSp(GCj))

CisGenome (Ji et al. (2009))

Yj ∼ NegBin(a, b)

BMI 776 (Spring 12) 02/09/2012 45 / 91

Page 46: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Goodness of Fit

● ●●

●●

●●

●●

●●

●●

●●●

●●●

●●

●●

●●●● ●

●●●●●●●●●●●●●●● ● ● ●

HeLa S3 NakedDNA

Tag count

Fre

quen

cy

● Actual data

0 9 99

110

100

1000

1000

01e

+05

1e+

06

Black line: Actual dataBMI 776 (Spring 12) 02/09/2012 46 / 91

Page 47: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Goodness of Fit: CisGenome NegBin

● ●●

●●

●●

●●

●●

●●

●●●

●●●

●●

●●

●●●● ●

●●●●●●●●●●●●●●● ● ● ●

HeLa S3 NakedDNA

Tag count

Fre

quen

cy

● ● ●●

●●

●●

●●

●●

●●

●●

●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●

●●●●●

●●●●●●

●●

●●●●●●●

Actual dataSim: CisGenome NegBin

0 9 99

110

100

1000

1000

01e

+05

1e+

06

Black line: Actual data Red line: Simulated data from the fitted CisGenome

NegBinBMI 776 (Spring 12) 02/09/2012 47 / 91

Page 48: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Goodness of Fit: CisGenome NegBin

● ●●

●●

●●

●●

●●

●●

●●●

●●●

●●

●●

●●●● ●

●●●●●●●●●●●●●●● ● ● ●

HeLa S3 NakedDNA

Tag count

Fre

quen

cy

● ● ●●

●●

●●

●●

●●

●●

●●

●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●

●●●●●

●●●●●●

●●

●●●●●●●

Actual dataSim: CisGenome NegBin

0 9 99

110

100

1000

1000

01e

+05

1e+

06

Over-estimated background!BMI 776 (Spring 12) 02/09/2012 48 / 91

Page 49: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Goodness of Fit: Poisson Reg (M , GC )

● ●●

●●

●●

●●

●●

●●

●●●

●●●

●●

●●

●●●● ●

●●●●●●●●●●●●●●● ● ● ●

HeLa S3 NakedDNA

Tag count

Fre

quen

cy

●● ●

Actual dataSim: Poisson(M, GC)

0 9 99

110

100

1000

1000

01e

+05

1e+

06

Black line: Actual data

Red line: Simulated data from the fitted Poisson Reg(M, GC )BMI 776 (Spring 12) 02/09/2012 49 / 91

Page 50: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Goodness of Fit: NegBin Reg (GC )

● ●●

●●

●●

●●

●●

●●

●●●

●●●

●●

●●

●●●● ●

●●●●●●●●●●●●●●● ● ● ●

HeLa S3 NakedDNA

Tag count

Fre

quen

cy

● ●●

●●

●●

Actual dataSim: NegBin(GC)

0 9 99

110

100

1000

1000

01e

+05

1e+

06

Black line: Actual data

Red line: Simulated data from the fitted NegBin Reg (GC )BMI 776 (Spring 12) 02/09/2012 50 / 91

Page 51: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Goodness of Fit: NegBin Reg (M)

● ●●

●●

●●

●●

●●

●●

●●●

●●●

●●

●●

●●●● ●

●●●●●●●●●●●●●●● ● ● ●

HeLa S3 NakedDNA

Tag count

Fre

quen

cy

● ●●

●●

Actual dataSim: NegBin(M)

0 9 99

110

100

1000

1000

01e

+05

1e+

06

Black line: Actual data

Red line: Simulated data from the fitted NegBin Reg (M)BMI 776 (Spring 12) 02/09/2012 51 / 91

Page 52: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Goodness of Fit: NegBin Reg (M , GC )

● ●●

●●

●●

●●

●●

●●

●●●

●●●

●●

●●

●●●● ●

●●●●●●●●●●●●●●● ● ● ●

HeLa S3 NakedDNA

Tag count

Fre

quen

cy

● ●●

●●

Actual dataSim: NegBin(M, GC)

0 9 99

110

100

1000

1000

01e

+05

1e+

06

Black line: Actual data

Red line: Simulated data from the fitted NegBin Reg (M, GC )BMI 776 (Spring 12) 02/09/2012 52 / 91

Page 53: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Goodness of Fit

● ●●

●●

●●

●●

●●

●●

●●●

●●●

●●

●●

●●●● ●

●●●●●●●●●●●●●●● ● ● ●

HeLa S3 NakedDNA

Tag count

Fre

quen

cy

● Actual dataSim: CisGenome NegBinSim: Poisson(M, GC)Sim: NegBin(M, GC)

0 9 99

110

100

1000

1000

01e

+05

1e+

06

Bayesian Information Criterion (BIC) for model selection (smaller better):

None> GC > M > M + GC > M + Sp(GC ).BMI 776 (Spring 12) 02/09/2012 53 / 91

Page 54: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Mixture model for one-sample ChIP-Seq data

Zj : unknown/latent state, Zj = 1(0) if bound (unbound).

Yj |Zj = 0 ∼ Nj NegBin Reg(Mj ,GCj)

Yj |Zj = 1 ∼ Nj + Sj

Sj : protein-binding signal

1 Sj ∼ NegBin(b1, c1) (1-component)

2 Sj ∼ p1NegBin(b1, c1) + (1− p1)NegBin(b2, c2) (2-component)

Estimate unknown parameters with maximum likelihood method using theEM algorithm.

BMI 776 (Spring 12) 02/09/2012 54 / 91

Page 55: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Case Study 1: STAT1 ChIP-Seq data

STAT1 in IFN-γ-stimulated HeLa S3 ChIP-Seq data (GSE12782).6 lanes of Illumina sequencing data, 23 million mapped reads.

●●●●●●●●●●●

●●●●●●

●●●●●

●●●

●●●●

●●●

●●●

●●●●

●●●●●

●●●

●●●●●

●●●●●●●●

●●●

●●●●

●●●●

●●●●●●●

●●●●

●●

●●

●●●●

●●●

●●

0.0 0.2 0.4 0.6 0.8 1.0

0.0

0.5

1.0

1.5

2.0

2.5

Mappability: HeLa S3 STAT1

M

Mea

n ta

g co

unt

●●●●●

●●●●

●●●●●●●

●●●●●●●●●●●●●●●●●●●●●●●

●●

●●●●●●

●●●●

●●●

●●

●●

●●

●●

●●

●●

●●

●●●

0.0 0.2 0.4 0.6 0.8

02

46

810

GC: HeLa S3 STAT1

GC

Mea

n ta

g co

unt

Case Study 2: GATA1 Sono-Seq

BMI 776 (Spring 12) 02/09/2012 55 / 91

Page 56: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Case Study 1: STAT1 ChIP-Seq data

STAT1 ChIP

Tag count

Freq

uenc

y

0 9 99

110

100

1000

1000

01e

+05

1e+0

6Actual  Data  

BMI 776 (Spring 12) 02/09/2012 56 / 91

Page 57: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Case Study 1: STAT1 ChIP-Seq data

STAT1 ChIP

Tag count

Freq

uenc

y

0 9 99

110

100

1000

1000

01e

+05

1e+0

6Actual  Data  

Background:    NegBin  Reg(M,  GC)  

BMI 776 (Spring 12) 02/09/2012 57 / 91

Page 58: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Case Study 1: STAT1 ChIP-Seq data

STAT1 ChIP

Tag count

Freq

uenc

y

0 9 99

110

100

1000

1000

01e

+05

1e+0

6Actual  Data  

Background:    NegBin  Reg(M,  GC)  

Background:    CisGenome  NegBin    

BMI 776 (Spring 12) 02/09/2012 58 / 91

Page 59: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Case Study 1: STAT1 ChIP-Seq data

STAT1 ChIP

Tag count

Freq

uenc

y

0 9 99

110

100

1000

1000

01e

+05

1e+0

6Actual  Data  

Background:    NegBin  Reg(M,  GC)  

NegBin  Reg(M,  GC)    Background  +    1-­‐comp  signal  

BMI 776 (Spring 12) 02/09/2012 59 / 91

Page 60: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Case Study 1: STAT1 ChIP-Seq data

STAT1 ChIP

Tag count

Freq

uenc

y

0 9 99

110

100

1000

1000

01e

+05

1e+0

6Actual  Data  

Background:    NegBin  Reg(M,  GC)  

NegBin  Reg(M,  GC)    Background  +    2-­‐comp  signal  

BMI 776 (Spring 12) 02/09/2012 60 / 91

Page 61: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

MOSAiCS with Input-Seq: Two-sample analysis

Yj : tag count from ChIP-Seq;Xj : tag count from Input-Seq.

● ● ● ● ● ● ● ● ● ● ● ● ●●

●●

●●

●●

● ●●

●● ● ●

●●

● ●

● ●

●● ● ●

●● ●

●●

0 10 20 30 40 50

0

20

40

60

80

100

120

140

Input tag count

Mea

n C

hIP

tag

coun

t

BMI 776 (Spring 12) 02/09/2012 61 / 91

Page 62: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq vs Input-Seq: Does Input-Seq account for all theM and GC bias?

Mappability

Mea

n C

hIP

tag

coun

t

0.0

0.2

0.4

0.6

0.8

1.0

0.0 0.2 0.4 0.6 0.8 1.0

●●●●●●●

●●●●●●

●●●●●●●●

●●●●●●

●●●●●●

●●●●●

●●●●

●●●●●●●●

●●●●●

●●●●●●●●

●●●●●●●

●●●●●●●●●

●●●●●●●●●●

●●●●●●●●

●●

Input

●●●●●●●

●●●●●●●●●

●●●●●●●●●●

●●●●●●

●●●●●

●●●●●●●●●

●●●●●●

●●●●●●

●●●●●●

●●

●●●●●●

●●●

●●●●●●●●●

●●●●

●●●●●●●●

●●●●

Input

0.0 0.2 0.4 0.6 0.8 1.0

●●

●●●

●●●●●●

●●●●●

●●●

●●●●●●●

●●●●●●●●●●●●●

●●●●●

●●●●●●●●

●●●●●●

●●●●

●●●●●●●●●●●●●●●●

●●●●●●

●●●●●●●

Input

●●

●●●

●●

●●●●

●●●●●●●

●●●●

●●●●●

●●●●●

●●●●●●●●●●●●

●●

●●

●●

●●

●●●●●●●

●●●●●●

●●●●●●●●●●●

●●●●●●●●●

Input

●●●

●●

●●●●●●

●●●●●

●●●●●●●●

●●

●●●●●

●●●

●●

●●

●●●●●●●●●

●●

●●●●●

●●●●●●●

Input

●●

●●●

●●

●●●●

●●

●●

●●

●●●

●●●

●●

●●●

●●

●●

●●●●

●●

●●

●●●●

●●●●●●●●●●

●●

●●●●●●●

●●●●

●●●

Input

●●

●●●●●●

●●●●●●●●●●

●●●●●●

●●●●●●●

●●●●●●

●●

●●●●●●●●

●●●●●●●●●●●●●●●●●●●●

●●●●●●

●●

Input

0.0

0.2

0.4

0.6

0.8

1.0●

●●●

●●

●●

●●●●●

●●●

●●

●●

●●●

●●●

●●●

●●●●●●●●●

●●

●●●●

●●●●●●

●●●●●

Input0.0

0.2

0.4

0.6

0.8

1.0

●●●

●●●●

●●●

●●●●●●●●●●

●●●

●●

●●●●●

●●

●●●●

●●●

●●●●

Input

●●

●●●

●●●

●●●●●

●●

●●●●●

●●

●●●●

●●●●

●●●●

●●●●●

●●●

●●●

Input

●●

●●

●●

●●

●●

●●●

●●●

●●

●●

●●●

●●

●●

●●●

●●●●●●●●

●●●

Input

●●●

●●●●●●●

●●●

●●

●●

●●●

●●●●●●●

●●●●●

●●●●

●●●

●●●●

●●●●●

Input

●●

●●

●●

●●

●●●●●

●●

●●

●●●

●●●●●

●●●●●●

Input

0.0 0.2 0.4 0.6 0.8 1.0

●●

●●●

●●●●●

●●●●●

●●●●

●●

Input

● ●

●●

●●

●●

●●

Input

0.0 0.2 0.4 0.6 0.8 1.0

0.0

0.2

0.4

0.6

0.8

1.0

Input

BMI 776 (Spring 12) 02/09/2012 62 / 91

Page 63: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

ChIP-Seq vs Input-Seq: Does Input-Seq account for all theM and GC bias?

GC

Mea

n C

hIP

tag

coun

t

0.0

0.2

0.4

0.6

0.8

1.0

0.0 0.2 0.4 0.6 0.8

●●●●●

●●●●

●●

●●●●●●●●●

●●●●●

●●●●●

●●●●●●●●●●●●●●●

●●●

●●●●●●●

●●●●●

●●

●●

●●

Input

●●

●●●

●●

●●

●●

●●●

●●●●●

●●●●●●●●●●●●●●●●●●

●●●●●●●●

●●●●●●●●●

●●●●●

●●

●●

●●

●●●

●●

Input

0.0 0.2 0.4 0.6 0.8

●●●●●●

●●

●●●●●●●

●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●

●●●●●●●●

●●

Input

●●●

●●●●●

●●●●●●●●●●●●●●

●●●●●●●●●●●●●●●●●●●●●●●●●

●●●●●●●●●●

●●

●●●●

●●

●●

●●

Input

●●●●●●●●●●●●●●●●●●

●●●●●●●●●

●●●●●●●●●●●●●●●●●●●●●●●●●

●●●

●●

Input

●●●●●●●●●●●●●●●●●

●●●●●●●

●●●●●●●●●●●●●●●●●●●●●●●●

●●●●●●

●●●

Input

●●●●●●●●●●●●●●●

●●●●●●●●●●●●●●●●●●●●●●●●●●●●●●

●●●●●

●●

●●

●●●

●●

Input

0.0

0.2

0.4

0.6

0.8

1.0

●●●●●●●●●●●●●●●

●●●●●●●●●

●●●●●●●●●●●●●●●●●●●●●●●●●

●●

●●

●●

Input0.0

0.2

0.4

0.6

0.8

1.0

●●●●●●●●●●●●●●●

●●●●●●●●●●●●●●●●●●●●●●●●●●●

●●●●●●●●●●●●●

Input

●●●●●●●●●●

●●●●●●●

●●●●●●●●●●●●●●

●●●●●●●●●●●●●●●

●●●●●

●●

Input

●●●●●●●●●●

●●●●●●●●●●●

●●●●●●●●●

●●●●●

●●●●●●●●●●●●●

●●●

Input

●●●●●●●●●●

●●●●●●●●●●●●

●●●●●●●●●●●●●●●●●●●●

●●●●

●●

●●

●●●●

Input

●●●●●●●

●●

●●

●●●●

●●

●●●●

●●

●●●●●●●

●●●●●

●●

●●●

●●

Input

0.0 0.2 0.4 0.6 0.8

●●●●●

●●●●●●●●

●●●●●●●●●●

●●●

●●●

●●●●●

●●●

●●

Input

●●

●●●●

●●

●●●●●●●●●

●●●●

●●●●●●●

●●●●

Input

0.0 0.2 0.4 0.6 0.8

0.0

0.2

0.4

0.6

0.8

1.0

●●

●●

●●●●

●●

●●

●●●●

Input

More

BMI 776 (Spring 12) 02/09/2012 63 / 91

Page 64: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

MOSAiCS two-sample background model

Yj | Zj = 0,Xj ,Mj ,GCj ∼ NegBin(a, a/µj)

µj = exp(β0 + f (Mj ,GCj ,Xj))

where

f (M,GC ,X ) = I (X ≤ c)[βM log2(M + 1) + βCSp(GC ) + β1XX

d]

+I (X > c)β2XXd

BMI 776 (Spring 12) 02/09/2012 64 / 91

Page 65: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

MOSAiCS two-sample background model

Yj | Zj = 0,Xj ,Mj ,GCj ∼ NegBin(a, a/µj)

µj = exp(β0 + f (Mj ,GCj ,Xj))

where

f (M,GC ,X ) = I (X ≤ c)[βM log2(M + 1) + βCSp(GC ) + β1XX

d]

+I (X > c)β2XXd

BMI 776 (Spring 12) 02/09/2012 65 / 91

Page 66: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

MOSAiCS two-sample model GOF for STAT1 ChIP-Seq

STAT1 ChIP

Tag count

Freq

uenc

y

0 9 99

110

100

1000

1000

01e

+05 Actual  Data  

BMI 776 (Spring 12) 02/09/2012 66 / 91

Page 67: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

MOSAiCS two-sample model GOF for STAT1 ChIP-Seq

STAT1 ChIP

Tag count

Freq

uenc

y

0 9 99

110

100

1000

1000

01e

+05 Actual  Data  

Background:    NegBin  Reg(Input)  

BMI 776 (Spring 12) 02/09/2012 67 / 91

Page 68: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

MOSAiCS two-sample model GOF for STAT1 ChIP-Seq

STAT1 ChIP

Tag count

Freq

uenc

y

0 9 99

110

100

1000

1000

01e

+05 Actual  Data  

Background:    NegBin  Reg(Input)  

Background:  NegBin  Reg(M,  GC,  Input)    

BMI 776 (Spring 12) 02/09/2012 68 / 91

Page 69: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

MOSAiCS two-sample model GOF for STAT1 ChIP-Seq

STAT1 ChIP

Tag count

Freq

uenc

y

0 9 99

110

100

1000

1000

01e

+05 Actual  Data  

Background:    NegBin  Reg(Input)  

NegBin  Reg(M,  GC,  Input)    Background  +    Signal  

Background:  NegBin  Reg(M,  GC,  Input)    

MOSAiCS two-sample for GATA1

BMI 776 (Spring 12) 02/09/2012 69 / 91

Page 70: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

STAT1 motif scans 1 2 3 4 5 6 7 8 9 10 11 12 13 14

0

0.5

1

1.5

2

Info

rmat

ion

cont

ent

Position

2000 4000 6000 8000 10000

0.4

0.5

0.6

0.7

0.8

0.9

Rank of peaks

Pro

port

ion

of p

eaks

with

mot

if ●

●●

●●

●●

●●

●●

●●

●●

MOSAiCS−OSPeakSeq−OSCisGenome−OSMACS−OS

MOSAiCS−TS (Input+M+GC)MOSAiCS−TS (Input only)PeakSeq−TSCisGenome−TSMACS−TS

BMI 776 (Spring 12) 02/09/2012 70 / 91

Page 71: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

STAT1 motif scans 1 2 3 4 5 6 7 8 9 10 11 12 13 14

0

0.5

1

1.5

2

Info

rmat

ion

cont

ent

Position

2000 4000 6000 8000 10000

0.4

0.5

0.6

0.7

0.8

0.9

Rank of peaks

Pro

port

ion

of p

eaks

with

mot

if

●●

●●

●●

●●

●●

●●

●●

MOSAiCS−OSPeakSeq−OSCisGenome−OSMACS−OS

MOSAiCS−TS (Input+M+GC)MOSAiCS−TS (Input only)PeakSeq−TSCisGenome−TSMACS−TS

Pairwise comparisons

BMI 776 (Spring 12) 02/09/2012 71 / 91

Page 72: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

MOSAiCS vs. PeakSeq: Mappability vs GC of CommonPeaks

● ●

●●

● ●

●●

●●

●●

●●●

●●

●●●●● ●

●●

●●

●●●

● ●●

● ●●

●●

●● ●

● ●

● ●

●●

●● ●

●●

●● ●●●

● ●

●●

● ●

●● ●

● ●

● ●

●● ●

● ●

● ●●●

●● ●

● ●●● ●

● ●

●● ●

● ●●

● ●●● ●

●●

●●

● ● ●●

● ●

● ●● ●

●●● ●●●●●

● ●

● ●●● ●●

●●

●●●

●●

●● ●

● ●

●● ●●

● ●●●

● ●

●●

● ●

●●●

● ●

●● ●●

● ●● ●● ●●

●●●

●● ●●●

●●

●● ●

● ●●●● ● ●●

● ● ●●

● ●

● ●

●●

●●

●● ●●

●●

●●

●●

●●

● ● ●●

●●● ●

●●

● ●● ●●

●●

●● ●

● ●●● ●●●

● ●

●●

●● ●

● ●● ●●

●●

●●

●●

● ● ●●●●

●●

● ●● ●●●

● ●

● ●

● ● ●

●●

● ●

● ●●

● ●●

● ●●

0.3 0.4 0.5 0.6 0.7

0.5

0.6

0.7

0.8

0.9

1.0

GC

Map

pabi

lity

● ●

●●

●●

● ●

●●

●●

●●

●●●

●●●

● ●●

●●●●● ●

●●

●●

● ●

● ●●

●●

●● ●

● ●

● ●

●● ●

●● ●● ●●●

● ●●●

●● ●

● ●●

●● ●

● ●

●●●

●● ●

● ●●● ●

● ●

●●

● ● ●

● ●●

●●

● ●●

●●● ●

● ●●

● ●

● ●● ●

●● ●●●●

● ●

●● ●●

●●

●●

●● ●● ●

●● ●

●●●●

● ● ●●

●●

●●

● ●●● ●

●●● ●●●

● ●●

●● ●

●● ● ●

●● ●●● ●

● ●●

● ●● ●●

● ●●

●●

● ●●

●● ●

● ●● ●

●●

● ●

● ●●●

●● ●

● ●● ●● ● ●●

●●

●●●●

●●●

● ● ●● ●● ● ●●

● ●● ●

● ●

BMI 776 (Spring 12) 02/09/2012 72 / 91

Page 73: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

MOSAiCS vs. PeakSeq: Mappability vs GC of PeakSeqonly Peaks

● ●

●●

● ●

●●

●●

●●

●●●

●●

●●●●● ●

●●

●●

●●●

● ●●

● ●●

●●

●● ●

● ●

● ●

●●

●● ●

●●

●● ●●●

● ●

●●

● ●

●● ●

● ●

● ●

●● ●

● ●

● ●●●

●● ●

● ●●● ●

● ●

●● ●

● ●●

● ●●● ●

●●

●●

● ● ●●

● ●

● ●● ●

●●● ●●●●●

● ●

● ●●● ●●

●●

●●●

●●

●● ●

● ●

●● ●●

● ●●●

● ●

●●

● ●

●●●

● ●

●● ●●

● ●● ●● ●●

●●●

●● ●●●

●●

●● ●

● ●●●● ● ●●

● ● ●●

● ●

● ●

●●

●●

●● ●●

●●

●●

●●

●●

● ● ●●

●●● ●

●●

● ●● ●●

●●

●● ●

● ●●● ●●●

● ●

●●

●● ●

● ●● ●●

●●

●●

●●

● ● ●●●●

●●

● ●● ●●●

● ●

● ●

● ● ●

●●

● ●

● ●●

● ●●

● ●●

0.3 0.4 0.5 0.6 0.7

0.5

0.6

0.7

0.8

0.9

1.0

GC

Map

pabi

lity

● ●

●●

●●

● ●

●●

●●

●●

●●●

●●●

● ●●

●●●●● ●

●●

●●

● ●

● ●●

●●

●● ●

● ●

● ●

●● ●

●● ●● ●●●

● ●●●

●● ●

● ●●

●● ●

● ●

●●●

●● ●

● ●●● ●

● ●

●●

● ● ●

● ●●

●●

● ●●

●●● ●

● ●●

● ●

● ●● ●

●● ●●●●

● ●

●● ●●

●●

●●

●● ●● ●

●● ●

●●●●

● ● ●●

●●

●●

● ●●● ●

●●● ●●●

● ●●

●● ●

●● ● ●

●● ●●● ●

● ●●

● ●● ●●

● ●●

●●

● ●●

●● ●

● ●● ●

●●

● ●

● ●●●

●● ●

● ●● ●● ● ●●

●●

●●●●

●●●

● ● ●● ●● ● ●●

● ●● ●

● ●●

● ●

● ●●

● ●● ● ●● ●

●● ●

● ● ●

● ●

● ●

●● ●●

● ● ●●●

●●

● ●

● ●

● ●

● ●

● ●

●● ●●

●●●●

●●

●●

● ● ●

●●

●●● ● ●

●●

●●

● ●●

●●● ●● ●●

●●

●●●●

●● ●● ●●●

●●●

●●

● ●●● ●●●

●●●

● ●●●● ●

● ● ●

● ●● ● ● ●●●

● ●● ●● ●

●●

●●

● ●

●●

●●

● ●● ●●

●●

●●

● ●

●● ●

● ●

● ●

●●

● ●

●● ● ●● ●

●● ● ●●●

● ●

● ●●●

●●●

● ●

● ●●● ●●●

● ●●

●●●●

●●● ●

●●

●●

● ● ● ●●

●●

●●

●●

●●

●●

●● ●

● ●

●● ●

●●

●●●●● ● ●

● ●● ●

● ●

● ●●

●●

● ●●●

●●

●●

● ●

● ●●●

●● ● ●● ●●

●●●● ●

●● ●

●●

●●

● ●

●● ●● ●● ●

● ● ●

● ●

●●

●●

● ●● ●● ●

●●

●● ●●● ●●●

●● ●●

●●

●●

●●

●●

●●

●● ●●

●●

●●●

●● ●●

●● ●

●●

●●●

●●●

●● ●

● ●

●● ●●

●●● ●●

●● ●

● ● ●● ● ●●

● ●

●● ●

● ●

●●

●●

●●

● ●

● ●

● ●

● ● ●● ●

●●

●●

●● ●●

●●

● ●

●●

●●●●

● ●● ●

● ●● ● ● ●●●

BMI 776 (Spring 12) 02/09/2012 73 / 91

Page 74: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

MOSAiCS vs. PeakSeq: Mappability vs GC of MOSAiCSonly Peaks

● ●

●●

● ●

●●

●●

●●

●●●

●●

●●●●● ●

●●

●●

●●●

● ●●

● ●●

●●

●● ●

● ●

● ●

●●

●● ●

●●

●● ●●●

● ●

●●

● ●

●● ●

● ●

● ●

●● ●

● ●

● ●●●

●● ●

● ●●● ●

● ●

●● ●

● ●●

● ●●● ●

●●

●●

● ● ●●

● ●

● ●● ●

●●● ●●●●●

● ●

● ●●● ●●

●●

●●●

●●

●● ●

● ●

●● ●●

● ●●●

● ●

●●

● ●

●●●

● ●

●● ●●

● ●● ●● ●●

●●●

●● ●●●

●●

●● ●

● ●●●● ● ●●

● ● ●●

● ●

● ●

●●

●●

●● ●●

●●

●●

●●

●●

● ● ●●

●●● ●

●●

● ●● ●●

●●

●● ●

● ●●● ●●●

● ●

●●

●● ●

● ●● ●●

●●

●●

●●

● ● ●●●●

●●

● ●● ●●●

● ●

● ●

● ● ●

●●

● ●

● ●●

● ●●

● ●●

0.3 0.4 0.5 0.6 0.7

0.5

0.6

0.7

0.8

0.9

1.0

GC

Map

pabi

lity

● ●

●●

●●

● ●

●●

●●

●●

●●●

●●●

● ●●

●●●●● ●

●●

●●

● ●

● ●●

●●

●● ●

● ●

● ●

●● ●

●● ●● ●●●

● ●●●

●● ●

● ●●

●● ●

● ●

●●●

●● ●

● ●●● ●

● ●

●●

● ● ●

● ●●

●●

● ●●

●●● ●

● ●●

● ●

● ●● ●

●● ●●●●

● ●

●● ●●

●●

●●

●● ●● ●

●● ●

●●●●

● ● ●●

●●

●●

● ●●● ●

●●● ●●●

● ●●

●● ●

●● ● ●

●● ●●● ●

● ●●

● ●● ●●

● ●●

●●

● ●●

●● ●

● ●● ●

●●

● ●

● ●●●

●● ●

● ●● ●● ● ●●

●●

●●●●

●●●

● ● ●● ●● ● ●●

● ●● ●

● ●●

● ●

● ●●

● ●● ● ●● ●

●● ●

● ● ●

● ●

● ●

●● ●●

● ● ●●●

●●

● ●

● ●

● ●

● ●

● ●

●● ●●

●●●●

●●

●●

● ● ●

●●

●●● ● ●

●●

●●

● ●●

●●● ●● ●●

●●

●●●●

●● ●● ●●●

●●●

●●

● ●●● ●●●

●●●

● ●●●● ●

● ● ●

● ●● ● ● ●●●

● ●● ●● ●

●●

●●

● ●

●●

●●

● ●● ●●

●●

●●

● ●

●● ●

● ●

● ●

●●

● ●

●● ● ●● ●

●● ● ●●●

● ●

● ●●●

●●●

● ●

● ●●● ●●●

● ●●

●●●●

●●● ●

●●

●●

● ● ● ●●

●●

●●

●●

●●

●●

●● ●

● ●

●● ●

●●

●●●●● ● ●

● ●● ●

● ●

● ●●

●●

● ●●●

●●

●●

● ●

● ●●●

●● ● ●● ●●

●●●● ●

●● ●

●●

●●

● ●

●● ●● ●● ●

● ● ●

● ●

●●

●●

● ●● ●● ●

●●

●● ●●● ●●●

●● ●●

●●

●●

●●

●●

●●

●● ●●

●●

●●●

●● ●●

●● ●

●●

●●●

●●●

●● ●

● ●

●● ●●

●●● ●●

●● ●

● ● ●● ● ●●

● ●

●● ●

● ●

●●

●●

●●

● ●

● ●

● ●

● ● ●● ●

●●

●●

●● ●●

●●

● ●

●●

●●●●

● ●● ●

● ●● ● ● ●●●

●●●

● ●

● ●●

● ●●

●●

● ●●

●●

●●●●

● ●

●●

●● ●●● ●●

●●

●●● ●

● ●

●●

● ●

●● ●●

●● ●●●● ●

● ●

● ●●●

●●● ●

● ● ● ●●

●●

● ●

● ●● ●●● ●● ●●● ●

●● ●● ●● ● ●

● ●

● ● ●●

●●

●●● ●

●● ●

●●

● ●

●●●

●●

●● ●●

●●

●● ● ● ● ●

●●●

●●

● ●

● ● ●● ●

●●

● ● ● ● ●

●●

●● ●

●● ● ●

● ●

● ● ●

● ●●● ●●●

●●

●●

●●

●● ●●●●● ●● ●

●●●● ●

● ●●

●●●● ● ●

● ●● ●

●● ●● ● ● ●

●●●● ●● ● ●● ● ●●

●●

●●● ●

●●

●●●

●●

●●

● ●

●● ● ●●●● ●●

● ●●● ●●

● ●

●●

●●

●●●● ●●● ●

●● ●●

● ●●

●●

● ●●

●● ●●

●●

● ●●

●● ●●●●

●●

●●

●●● ●

●●

●●

● ●

●● ● ●●●● ●

●●

● ●

● ●●

●●● ●

● ●●●

● ●

●● ●● ●● ● ●●

● ●● ●●

● ●

● ●●

●●

●● ●● ●●

●●

● ●

●●

●●

●●

● ●●● ●●

●●

●● ● ● ● ●● ●

● ● ●

●● ●●●

●●

● ●●

●●●

●● ●

● ● ●●

● ●●

●● ● ● ●●●●●● ●●●● ●●

● ●

●●

●●

● ●● ●●

● ●●●●

●●

●●●●

log2(ChIP/Input) vs M log2(ChIP/Input) vs GC

BMI 776 (Spring 12) 02/09/2012 74 / 91

Page 75: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

GATA1 motif scans: WGATAA

0 100 200 300 400

0.60

0.65

0.70

0.75

0.80

0.85

0.90

Median peak length

Pro

port

ion

of p

eaks

with

mot

if am

ong

top

1500

pea

ks

BMI 776 (Spring 12) 02/09/2012 75 / 91

Page 76: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

GATA1 motif scans: WGATAA

0 100 200 300 400

0.60

0.65

0.70

0.75

0.80

0.85

0.90

Median peak length

Pro

port

ion

of p

eaks

with

mot

if am

ong

top

1500

pea

ks

CisGenome−OS

PeakSeq−OS

MOSAiCS−OSMACS−OS

MACS−OS (Summit)

BMI 776 (Spring 12) 02/09/2012 76 / 91

Page 77: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

GATA1 motif scans: WGATAA

0 100 200 300 400

0.60

0.65

0.70

0.75

0.80

0.85

0.90

Median peak length

Pro

port

ion

of p

eaks

with

mot

if am

ong

top

1500

pea

ks

CisGenome−OS

PeakSeq−OS

MOSAiCS−OSMACS−OS

MACS−OS (Summit)

CisGenome−TS

PeakSeq−TS

MACS−TSMOSAiCS−TS (Input+M+GC)

MOSAiCS−TS (Input only)

MACS−2S (Summit)

BMI 776 (Spring 12) 02/09/2012 77 / 91

Page 78: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

If the sample is deeply sequenced

E.g.,

E. coli ChIP-seq - one lane from the Illumina GA-II.Higher eukaryote ChIP-seq sample on Illumina Hi-seq.

Tag count

Fre

quen

cy

Actual data (ChIP)Actual data (Control)

0 100 200 300 400 500 600 700 800 900

010

020

030

040

050

0

BMI 776 (Spring 12) 02/09/2012 78 / 91

Page 79: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

MOSAiCS on the FNR ChIP-seq data from the Kiley Lab@ UW Madison

GOF on log scale

Tag count

Fre

quen

cy

Actual data (ChIP)Actual data (Control)Sim:NSim:N+S1Sim:N+S1+S2

0 100 200 300 400 500 600 700 800 900

010

020

030

040

050

0

BMI 776 (Spring 12) 02/09/2012 79 / 91

Page 80: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

MOSAiCS on the FNR ChIP-seq data from the Kiley Lab@ UW Madison

GOF on log scale

If the sample is deeply sequenced,

Input-only model fits well.

Tag count

Fre

quen

cy

Actual data (ChIP)Actual data (Control)Sim:NSim:N+S1Sim:N+S1+S2

0 100 200 300 400 500 600 700 800 900

010

020

030

040

050

0

BMI 776 (Spring 12) 02/09/2012 80 / 91

Page 81: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Software implementation: R package mosaics

Available through

Bioconductor http://www.bioconductor.org/packages/2.9/bioc/html/mosaics.html

Galaxy http://toolshed.g2.bx.psu.edu/.

> library(mosaics)

> library(help = mosaics)

Information on package ’mosaics’

Description:

Package: mosaics

Type: Package

Title: MOSAiCS (MOdel-based one and two Sample Analysis

and Inference for ChIP-Seq)

Version: 1.2.2

Depends: R (>= 2.11.1), methods, graphics, Rcpp

Imports: MASS, splines, lattice, IRanges

Suggests: mosaicsExample, multicore

LinkingTo: Rcpp

SystemRequirements: Perl

Date: 2012-01-10

Author: Dongjun Chung, Pei Fen Kuan, Sunduz Keles

Maintainer: Dongjun Chung <[email protected]>

Description: This package provides functions for fitting

MOSAiCS, a statistical framework to analyze

one-sample or two-sample ChIP-seq data.

License: GPL (>= 2)

URL: http://groups.google.com/group/mosaics_user_group

BMI 776 (Spring 12) 02/09/2012 81 / 91

Page 82: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

R package: mosaics

ChIP file has 95 million reads.Input file has 14 million reads.mosaics runs in about 2 hrs using a single CPU.library(mosaics)

mosaicsRunAll(

chipDir="/scratch/ChIPSeqDesign/HardisonData/tal1_ter119_r2/",

chipFileName="GSM746584_tal1_ter119_r2_mapped.txt",

chipFileFormat="bowtie",

controlDir="/scratch/ChIPSeqDesign/HardisonData/tal1_ter119_r2/",

controlFileName="GSM746580_input_ter119_mapped.txt",

controlFileFormat="bowtie",

binfileDir="/scratch/ChIPSeqDesign/HardisonData/tal1_ter119_r2/Results/bin/",

peakDir="/scratch/ChIPSeqDesign/HardisonData/tal1_ter119_r2/Results/peak/",

peakFileName="tal1_ter119_peak_list_r2.txt",

peakFileFormat="txt",

reportSummary=TRUE,

summaryDir="/scratch/ChIPSeqDesign/HardisonData/tal1_ter119_r2/Results/reports/",

summaryFileName="mosaics_summary_tal1_ter119_r2.txt",

reportExploratory=FALSE,

exploratoryDir="/scratch/ChIPSeqDesign/HardisonData/tal1_ter119_r2/Results/reports/",

exploratoryFileName="mosaics_exploratory_tal1_ter119_r2.pdf",

reportGOF=TRUE,

gofDir="/scratch/ChIPSeqDesign/HardisonData/tal1_ter119_r2/Results/reports/",

gofFileName="mosaics_GOF_tal1_ter119_r2.pdf",

byChr=FALSE,

FDR=0.05,

fragLen=200,

binSize=200,

capping=0,

analysisType="IO",

BMI 776 (Spring 12) 02/09/2012 82 / 91

Page 83: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

R package: mosaics

d=0.25,

signalModel="BIC",

maxgap=200,

minsize=50,

thres=40,

nCore=20)

BMI 776 (Spring 12) 02/09/2012 83 / 91

Page 84: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

R package: mosaics

Info: constructing bin-level files...

------------------------------------------------------------

Info: setting summary

------------------------------------------------------------

Directory of aligned read file: /scratch/ChIPSeqDesign/HardisonData/tal1_ter119_r2/

Name of aligned read file: GSM746584_tal1_ter119_r2_mapped.txt

Aligned read file format: Bowtie default

Directory of processed bin-level files: /scratch/ChIPSeqDesign/HardisonData/tal1_ter119_r2/Results/bin/

Construct bin-level files by chromosome? N

Fragment length: 200

Bin size: 200

------------------------------------------------------------

------------------------------------------------------------

Info: setting summary

------------------------------------------------------------

Directory of aligned read file: /scratch/ChIPSeqDesign/HardisonData/tal1_ter119_r2/

Name of aligned read file: GSM746580_input_ter119_mapped.txt

Aligned read file format: Bowtie default

Directory of processed bin-level files: /scratch/ChIPSeqDesign/HardisonData/tal1_ter119_r2/Results/bin/

Construct bin-level files by chromosome? N

Fragment length: 200

Bin size: 200

------------------------------------------------------------

Info: reading the aligned read file and processing it into bin-level files...

Info: reading the aligned read file and processing it into bin-level files...

Info: done!

BMI 776 (Spring 12) 02/09/2012 84 / 91

Page 85: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

R package: mosaics

------------------------------------------------------------

Info: processing summary

------------------------------------------------------------

Directory of processed bin-level files: /scratch/ChIPSeqDesign/HardisonData/tal1_ter119_r2/Results/bin/

Processed bin-level file: GSM746580_input_ter119_mapped.txt_fragL200_bin200.txt

------------------------------------------------------------

Info: done!

------------------------------------------------------------

Info: processing summary

------------------------------------------------------------

Directory of processed bin-level files: /scratch/ChIPSeqDesign/HardisonData/tal1_ter119_r2/Results/bin/

Processed bin-level file: GSM746584_tal1_ter119_r2_mapped.txt_fragL200_bin200.txt

------------------------------------------------------------

BMI 776 (Spring 12) 02/09/2012 85 / 91

Page 86: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

R package: mosaics

Info: analyzing bin-level files...

Info: fitting MOSAiCS model & call peaks...

Info: reading and preprocessing bin-level data...

Info: data contains more than one chromosome.

Info: done!

Info: background estimation method is determined based on data.

Info: background estimation based on robust method of moment

Info: two-sample analysis (Input only).

Info: use adaptive griding.

Info: fitting background model...

Info: done!

Info: fitting one-signal-component model...

Info: fitting two-signal-component model...

Info: calculating BIC of fitted models...

Info: done!

Info: use two-signal-component model.

Info: calculating posterior probabilities...

Info: calling peaks...

Info: done!

Info: writing the peak list...

Info: peak file was exported in TXT format:

Info: file name = tal1_ter119_peak_list_r2.txt

Info: directory = /scratch/ChIPSeqDesign/HardisonData/tal1_ter119_r2/Results/peak/

Info: generating reports...

> proc.time()

user system elapsed

7154.502 114.432 6986.742

Run time ≈ 2 hours.BMI 776 (Spring 12) 02/09/2012 86 / 91

Page 87: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

R package: mosaics - Main output

A peak list with columns: chrID peakStart peakStop peakSize

aveP minP aveChipCount maxChipCount aveInputCount

aveInputCountScaled aveLog2Ratio.

Exploratory plots. Mean read count vs. Input, vs. Mappability, vs.GC content.

Goodness-of-fit plots.

BMI 776 (Spring 12) 02/09/2012 87 / 91

Page 88: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Some other statistical problems regarding ChIP-seq data

Utilizing multi-reads, i.e., read mapping to multiple locations on thereference genome.

Differential binding.

BMI 776 (Spring 12) 02/09/2012 88 / 91

Page 89: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Summary

MOSAiCS:

implements a model-based approach for ChIP-seq data analysis;

available as a R package through Bioconductorhttp://www.bioconductor.org/ and a Galaxy tool from theGalaxy tool shed toolshed.g2.bx.psu.edu/;

provides basic pre-processing functions for ChIP-seq data;

provides plotting functions.

BMI 776 (Spring 12) 02/09/2012 89 / 91

Page 90: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Acknowledgements

Dongjun Chung (Department of Statistics, UW Madison).

Pei Fen Kuan (Department of Biostatistics, UNC Chapel Hill).

Kun Liang (Department of Statistics, UW Madison).

Xin Zeng (Department of Statistics, UW Madison).

Chen Zuo (Department of Statistics, UW Madison).

Colin Dewey (Department of Biostatistics and Medical Informatics, UWMadison); Bo Li (Department of Computer Science, UW Madison).

Emery Bresnick; Sanal Kumar ( Department of Cell and RegenerativeBiology, UW Madison) .

Peggy Farnham ( Departments of Biochemistry & Molecular Biology, KeckSchool of Medicine, USC).

Qiang Chang (Cellular and Molecular Neurosciences Core, Waisman Center,UW Madison).

NIH, NSF.

BMI 776 (Spring 12) 02/09/2012 90 / 91

Page 91: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Sequence bias in ChIP-Seq data

Mappability bias. Original definition by Rozowsky et al. (2009).

BMI 776 (Spring 12) 02/09/2012 91 / 91

Page 92: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Sequence bias in ChIP-Seq data

Mappability bias. Original definition by (Rozowsky et al. (2009)).

BMI 776 (Spring 12) 02/09/2012 92 / 91

Page 93: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Tag/Read extension

ATTCCGTTAACGTAGGTTAACCGGTAGCATGCAATGGCCGTATGACGATGACATGACAGTTTAAGCGGCAGATTGCCGATTGGACCGATGGCACCG

Partition the genome into small bins (genomic windows).

Summarize total tag counts in each bin

Extending each tag by expected fragment length and strand

BMI 776 (Spring 12) 02/09/2012 93 / 91

Page 94: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Sequence bias in ChIP-Seq data

Mappability. Consider tags originating from nearby nucleotides.

…GGTATTAGCGCAGAGAGACTCGCTAGTC…

mi =[1/(2L)] (∑δj, j = {i-L+1, …i} + ∑δj, j = {i-k+1, …,i+L-k})

L

k: read length

BMI 776 (Spring 12) 02/09/2012 94 / 91

Page 95: Statistical analysis of ChIP-seq databiostat.wisc.edu/bmi776/lectures/keles_chipseq.pdf · Statistical analysis of ChIP-seq data ... (in this case for each of 36 ... 66565311 in the

Sequence bias in ChIP-Seq data

Mappability. Bin level.

…GGTATTAGCGCAGAGAGACTCGCTAGTC…

Mappability

for jth

bin Mj

= mean(mi) ith

bp

in the bin.

BMI 776 (Spring 12) 02/09/2012 95 / 91