Abstract
ChIP-seq (Chromatin Immunoprecipitation followed by sequencing) is a high-throughput technique to identify genomic regions that are bound in vivo by a particular protein, e.g., a transcription factor (TF). Biological factors, such as chromatin state, indirect and cooperative binding, as well as experimental factors, such as antibody quality, cross-linking, and PCR biases, are known to affect the outcome of ChIP-seq experiments. However, the relative impact of these factors on inferences made from ChIP-seq data is not entirely clear. Here, via a detailed ChIP-seq simulation pipeline, ChIPulate, we assess the impact of various biological and experimental sources of variation on several outcomes of a ChIP-seq experiment, viz., the recoverability of the TF binding motif, accuracy of TF-DNA binding detection, the sensitivity of inferred TF-DNA binding strength, and number of replicates needed to confidently infer binding strength. We find that the TF motif can be recovered despite poor and non-uniform extraction and PCR amplification efficiencies. The recovery of the motif is, however, affected to a larger extent by the fraction of sites that are either cooperatively or indirectly bound. Importantly, our simulations reveal that the number of ChIP-seq replicates needed to accurately measure in vivo occupancy at high-affinity sites is larger than the recommended community standards. Our results establish statistical limits on the accuracy of inferences of protein-DNA binding from ChIP-seq and suggest that increasing the mean extraction efficiency, rather than amplification efficiency, would better improve sensitivity. The source code and instructions for running ChIPulate can be found at https://github.com/vishakad/chipulate.
Author summary
DNA-binding proteins perform many key roles in biology, such as transcriptional regulation of gene expression and chromatin modification. ChIP-seq (Chromatin immunoprecipitation followed by high-throughput sequencing) is a widely used experimental technique to identify DNA-binding sites of specific proteins of interest, within cells, genome-wide. DNA fragments from genomic regions that are bound by a protein of interest, often a transcription factor (TF), are selectively extracted using specific antibodies, amplified using PCR, and sequenced. The sequences are mapped to the reference genome. Regions where many sequences map, called “peaks”, are used to infer the location of TF-bound loci (peaks), in vivo occupancy at those loci, and the sequence pattern (motif) to which the TF shows a binding affinity. But measurements of TF occupancy and motif inference are vulnerable to several biological and experimental sources of variation that are poorly understood and difficult to assess directly. Here, we simulate key steps of the ChIP-seq protocol with the aim of estimating the relative effects of various sources of variations on motif inference and binding affinity estimations. Besides providing specific insights and recommendations, we provide a general framework to simulate sequence reads in a ChIP-seq experiment, which should considerably aid in the development of software aimed at analyzing ChIP-seq data.
Introduction
ChIP-seq (Chromatin Immunoprecipitation and sequencing) is a popular high-throughput experimental technique to find locations that are bound in vivo by a single transcription factor (TF) [1]. Upon mapping of the DNA fragments bound by the TF to the reference genome, the genomic loci bound by the TF are identified as high density mapped regions or peaks, where each peak is associated with an intensity based on the number of sequenced fragments arising from it. The intensity reflects the in vivo occupancy of the TF at that locus.
Several studies of ChIP-seq data have focussed on the biological factors distinguishing the loci bound by the TF. It has been shown that in addition to the affinities of binding sites present at a locus, nucleosome positioning is a strong determinant of TF binding in vivo [2–5]. Other studies have shown that the concentration of the target TF [6, 7], short-range cooperative interactions between the target TF and other TFs [8], and variation in chromatin accessibility [5, 7] explain the variation in intensities across peaks. Some of the variation can arise due to indirect binding, where the target TF binds DNA indirectly via a second DNA-bound TF [9–11]. The intensity of such peaks is then no longer directly dependent on the affinity of the target TF to sequence at the bound locus.
Since the distribution of ChIP-seq peaks and their intensities depend on factors other than the affinity of the target TF towards sequence at a locus, it impacts two kinds of inferences often made from ChIP-seq data. First, the highest intensity peaks are used to infer position weight matrix (PWM) or motif models of the target TF [12]. While it is known that changes in the concentration of the target TF can distort the inferred PWM [13, 14], the extent to which cooperative and indirect interactions distort the PWM is unclear. Second, along with variations in chromatin accessibility, these interactions weaken the statistical dependence of peak intensity on target TF binding site affinity, which means that a peak with a higher intensity need not necessarily contain a higher affinity target TF binding site.
In addition to these biological factors, ChIP-seq peaks are affected by purely experimental sources of noise. The ChIP-seq protocol broadly consists of three key steps [1, 15, 16]—(i) the extraction of fragments that are bound by the target TF (ii) PCR amplification of these extracted fragments, and (iii) sequencing of these fragments. It is known that fragments can be extracted more easily at some genomic regions than others due to differences in chromatin structure and cross-linking efficiency across the genome [17–19]. Similarly, certain fragments are more efficiently amplified by PCR than others due to differences in GC content or the presence of nucleotide repeats [20–22]. The extent to which these factors distort peak intensities and make otherwise identical genomic regions appear differentially occupied has not been quantified. Multiple biological replicates of ChIP-seq are recommended [23] to overcome these issues, but the quantitative improvement in accuracy as more replicates are performed has not been ascertained.
To evaluate the influence of the aforementioned biological and experimental sources of variation on ChIP-seq peak intensities, we have developed a comprehensive pipeline to simulate a ChIP-seq experiment called ChIPulate. In particular, we simulate genome-wide TF-DNA binding based on established biophysical models of binding and also simulate the extraction, amplification and sequencing steps of the ChIP-seq protocol. Our simulation thus associates a set of read counts at each genomic locus with its occupancy by the target TF. Whereas existing statistical models [14, 24–26] assume that read counts follow a prescribed probability distribution and treat the ChIP-seq protocol as a black box, we explicitly model key steps of the ChIP-seq protocol. Our approach allows us to individually evaluate the impact of variation in extraction and PCR amplification efficiencies, as well as chromatin accessibility, indirect binding, and cooperative binding, on peak intensities and PWM inference. We are also able to quantify the extent to which additional replicates of ChIP-seq improve its ability to robustly measure the occupancy of a genomic region.
We find that biological factors such as indirectly and cooperatively bound sequences distort inferred PWMs more than experimental sources of variation. Variations in extraction efficiency across the genome distort peak intensities and lower their ability to distinguish between occupied loci. Poor extraction efficiency also increases the number of false positive peaks, which are peak calls that do not contain a binding site for the target TF. In contrast to the effect of variations in extraction efficiency, even drastic variations in PCR amplification efficiency have little impact on peak intensities, and hence do not affect the inferred PWM or increase the number of false positive peaks. Finally, we found that at least two biological replicates of ChIP-seq read counts are necessary to reliably infer the binding energy of a genomic region.
Our work provides a general framework and a software tool for simulating ChIP-seq read counts through a realistic model of TF-DNA binding and the steps of the ChIP-seq protocol. Improvements in the protocol to lower variation in extraction efficiency, rather than PCR amplification efficiency, are more likely to improve our ability to distinguish between genomic regions of differing occupancy. Further, changes in the protocol that allow multiple biological ChIP-seq replicates to be performed, or computational approaches that can reliably combine read counts from ChIP-seq experiments, would allow more accurate inferences of TF-DNA occupancy, especially in regions containing multiple binding sites.
Results
A framework to simulate read counts from TF binding sites in a ChIP-seq experiment
A schematic of our ChIP-seq simulation framework is shown in Fig 1A, with details in Methods. Broadly, the goal of our simulation is to take as an input the occupancy of a TF at multiple locations across a genome and output a set of read counts in both ChIP and input experiments at each location. A single TF’s occupancy at a genomic location is determined by its site-specific binding energy, and its chemical potential, which depends on the logarithm of the concentration of the TF [27].
Each genomic location is associated with two experimental parameters—its extraction efficiency and PCR efficiency. The extraction efficiency, which determines how many bound fragments are successfully extracted in Step 1 in Fig 1A, can vary between different genomic locations. The extracted fragments are then subjected to a number of PCR amplification cycles in Step 2. The average number of amplified fragments obtained at each location depends on the PCR efficiency associated with the locus, which can also vary between different locations. Step 3 represents the sequencing step where the amplified fragments from all locations are sequenced. The number of sequenced fragments is the total read count of the experiment. Since unique and duplicate fragments (red and black in Fig 1A) are tracked through the simulation, the exact number of unique reads at each location is known.
In addition to the ChIP experiment, we simulate the sequencing of a genomic control input sample. This simulation differs from the ChIP experiment in two ways. First, the background binding energy (ϵbg) at each occupied genomic locus is set to a fixed value of 1kB T for all locations (see Methods for justification). Second, we set the number of cells to be only 10% of the number of cells employed in the ChIP simulation. A larger number of cells are used in the ChIP simulation since, in practice, DNA is less efficiently extracted in the ChIP sample due to the use of an antibody whereas no antibody is used in the input sample. Thus, to extract a given amount of DNA, fewer cells are employed in the input sample than in the ChIP sample. In the event that the number of extracted fragments in the input is more than the number of extracted fragments in the ChIP sample, we down-sample the input fragments such that the total number of extracted fragments is identical in both ChIP and input samples before the PCR amplification step. Similarly, we down-sample the ChIP fragments if the number of extracted fragments in the ChIP sample is more than than that in the input sample. At each locus, the extraction and PCR efficiencies in the input are kept identical to the values used in the ChIP simulation.
After simulating both ChIP and input experiments, we compute the ratio of the read counts obtained from the ChIP sample to that of the input sample at each genomic locus. The read count ratio at a location is equivalent to peak intensity computed by commonly used peak callers from ChIP-seq reads [24]. The read counts obtained from our simulations are shown in Fig 1B with the values of the simulation parameters set to the default values described in Methods.
Key assumptions
When simulating genome-wide TF-DNA binding before Step 1 in Fig 1A, we assume that there is a single TF and a single binding site in each genomic region. We relax this assumption in later sections when simulating indirect and cooperative binding. We assume that binding in different genomic locations are independent of each other.
The extraction efficiency parameter in Step 1 aggregates the effect of the many steps of fragmentation, cross-linking, pull-down and size selection that occur in a ChIP-seq experimental protocol. We show in Methods that this parameter takes all these steps into account when modeling the extraction of DNA fragments from cells. In the PCR amplification step, we assume the amplification process to be in the exponential phase of amplification [28] where increasing the number of PCR cycles exponentially increases the number of amplified fragments. We assume that any potential PCR mutational errors do not change the amplification ratio at any genomic location. In the sequencing step (Step 3), we assume that the sequencing and mapping are error-free, i.e., reads are uniquely and correctly mapped, and they can be perfectly de-duplicated at each location.
Motif inference is not affected by extraction and PCR efficiency whereas fidelity at locations with low read count ratios is affected by a low extraction efficiency
We evaluated the impact of heterogeneity in extraction and PCR efficiencies on two outcomes of ChIP-seq. One is the recoverability of TF motif based on the top genomic locations in terms of their read count ratios. The second is fidelity, defined as the probability (frequency) with which a site X with a read count ratio that is at least 10% higher than site Y in fact contains a sequence with a higher affinity (or lower binding energy).
We simulated the process of inferring the motif of an arbitrarily chosen S. cerevisiae transcription factor (Tye7) from ChIP-seq (Fig 2A). We assigned binding energies for 1000 genomic regions from our default binding energy distribution, which is a power law distribution (with an exponent of 0.5) between 0 and 10kB T (see Methods). By using the Tye7 binding energy matrix estimated by BEEML from protein binding microarray measurements [13, 29], we found the 10 bp sequence whose binding energy was closest to this assigned value, and virtually planted it at each location. We simulated a ChIP-seq experiment with a fixed extraction and PCR efficiency across the genome, following which we selected sites having the top 100 read count ratios and constructed the PWM of Tye7. This PWM, which we refer to as the baseline PWM, is used to compute the extent to which heterogeneity in extraction and PCR efficiency changes the derived PWM.
Ideally, one would use a PWM of Tye7 published in a database as the baseline motif against which to make these comparisons. However, these motifs can differ between databases due to differences not only in the experimental assay used to measure TF-DNA binding but also the underlying binding energy distribution of the bound sequences. This means that the baseline Tye7 PWM derived from the simulation may differ from that present in the ScerTF database [30]. However, our goal is to specifically assess the effect of extraction and PCR amplification heterogeneity on motif recoverability. For this purpose, it suffices to compare the motif derived in the presence of heterogeneity with the baseline motif derived in the absence of heterogeneity.
Fig 2B shows the difference between the baseline PWM and the Tye7 PWM that is derived in the presence of extraction or PCR amplification heterogeneity, respectively, when the efficiencies follow a truncated normal distribution. This difference is measured in terms of the mean Kullback-Leibler (K-L) distance, measured in bits (Methods), between the two PWMs. The impact of heterogeneity in these parameters on the inferred motif is small as the highest K-L distance from the baseline motif is about 0.08 bits. The effect of PCR amplification and extraction heterogeneity on motif inference is more pronounced when the heterogeneity follows a power law distribution (S1A Fig) than when it follows a truncated normal distribution. The distortion of the PWM is still relatively low, however, with the highest K-L distance from the baseline motif being less than 0.1 bits per position. We also evaluated the impact of varying the chemical potential between 1kB T and 6kB T on the inferred motif when the baseline motif is derived at μ = 3kB T. Examples of the effect of a different chemical potential on the read count ratios obtained across the genome are shown in S2A Fig. We found that the inferred motif deviates up to 0.08 bits per position from the baseline motif (S2B Fig). This is within the same order of magnitude as the effect of a low mean extraction efficiency on the inferred motif.
We checked the extent to which the trends in Fig 2B depended on our choice of TF. We selected 21 TFs that possessed different DNA binding domains [31] (S1 Table), and for each TF, we simulated motif inference when there is heterogeneity in extraction efficiency (S3 Fig) or the PCR amplification ratio (S4 Fig) across the genome. The binding energy distribution of each TF, along with all other parameters of ChIPulate, was kept at their default values. We found that motif inference in each of these TFs was affected in a manner similar to Tye7, where a low mean extraction efficiency distorted the inferred motif more than a low mean amplification ratio. However, we found that the extent of motif distortion due to extraction heterogeneity was significantly correlated (R2 = −0.67, p < 10−3) with the baseline motif information content of each TF (S3A Fig), while there was no such correlation in the presence of amplification heterogeneity (S4A Fig, R2 = −0.36, p = 0.1). Finally, we found a weak dependence of the extent of motif distortion on the length of the motif, where a low mean extraction efficiency distorted a 6 bp motif upto nearly 0.1 bits per position with a lower magnitude of distortion for longer motifs (S5A Fig). There was no such dependence of motif distortion on motif length when the amplification ratio varied across the genome (S5B Fig).
Results shown in Fig 2C show that ChIP-seq fidelity is generally higher for sites with intermediate read count ratios (50th percentile to 75th percentile) and deteriorates at lower and higher read count ratios. This is partly due to the value of the chemical potential of 3kB T employed in our simulation. When the chemical potential is varied between 1kB T and 6kB T, the fidelity amongst the top 25th percentile of read count ratios noticeably decreases and reaches close to 0.5 at μ = 6kB T (S2C Fig). The fidelity amongst read count ratios of the bottom 25%, however, increases over the same range of the chemical potential. This is due to the fact that the occupancy of locations whose binding energies are much lower than the chemical potential are close to 1 while locations with binding energies above the chemical potential are close to zero. As the chemical potential increases, the increase in occupancy at locations with high binding energies is sufficiently large for their read count ratios to differ from one another. On the other hand, the occupancies of locations with low binding energies rapidly tend to one, which results in similar read count ratios between sites that possess different binding energies.
Fig 2D shows the impact of heterogeneity in extraction efficiency and PCR amplification ratio on fidelity. The fidelity is highest when computed across all binding site pairs, than amongst pairs in the top 25% of read count ratios. This is because the expected difference between the binding energies of sites in each pair is larger when the pairs are selected from the entire range. Changes in the mean and variance in the amplification ratio have little impact on fidelity, both overall as well as in each read count ratio bin. The fidelity across all regions is also not substantially affected by the mean and variance in extraction efficiency, but the fidelity is markedly lowered for sites with the lowest read count ratios. When PCR amplification heterogeneity is power-law distributed, its impact on fidelity is still quite low (S1B Fig). In contrast, when the extraction efficiency is power-law distributed across the genome, its impact on fidelity is more drastic than when it is normally distributed.
A low mean extraction efficiency increases the probability of false positive peak calls but the PCR efficiency has no impact
We tested the effect of heterogeneity in extraction and PCR efficiency on the ability of ChIP-seq to distinguish peak calls that contain a binding site for the target TF (true positive) from those peak calls that do not contain a binding site for the target TF (false positive). Fig 3A shows a simulation where genomic locations that do not harbor a binding site for the target TF give rise to sequence reads. We refer to such locations as false positive peaks. This differs from indirectly bound peaks, where the target TF is part of the complex of TFs that binds DNA. In practice, a false positive peak can arise due to poor antibody quality, where the antibody binds epitopes on TFs other than the target TF. We assign binding energies to these false positive locations from a truncated power law such that the mean occupancy ratio between true and false positive sites are fixed while the variance in binding energies amongst false positive sites and true positive sites are equal. Fig 3B shows the receiver operating characteristic (ROC) curve for the simulation shown in Fig 3A. The ROC curve shows the change in the number of true positives and false positives when the read count ratio threshold at which a location is declared as a peak is changed. The area under the ROC curve (auROC) provides an overall measure of the accuracy of using ChIP-seq read count ratios in distinguishing between locations with target TF binding sites from those without these sites.
Fig 3C and 3D show the impact of heterogeneity in extraction efficiency and PCR efficiency, respectively, on the auROC of ChIP-seq read count ratios. We found that increases in the mean PCR efficiency did not appreciably increase the auROC. Similarly, an increase in the heterogeneity of PCR efficiency, in terms of its coefficient of variation across the genome, did not decrease the auROC. In contrast, an increase in the mean extraction efficiency, and a decrease in its heterogeneity, led to a higher auROC. Thus, much like in the case of ChIP-seq fidelity and motif inference, extraction efficiency has a greater impact on the auROC of ChIP-seq read count ratios than PCR efficiency.
Fig 3E shows that as expected, the auROC increases with the ratio of the mean occupancy of true and false positive binding sites. We illustrate in Methods that this mean occupancy ratio can be considered as a proxy for the specificity of the ChIP antibody used, where a higher mean occupancy ratio translates to a higher antibody specificity. A mean occupancy ratio of ∼10 gives an auROC of around 0.9, which translates to a true positive rate of 0.8 at a false positive rate of 0.07. For a fixed mean occupancy ratio, an increase in the sequencing depth of both ChIP and input samples leads to an increase in the auROC (Fig 3F).
We further evaluated the impact of variation in chromatin accessibility across true and false positive binding sites. Our model of TF-DNA binding in the presence of chromatin assumes that TFs occupy a genomic location only when chromatin is accessible, i.e., the probability of occupancy depends on the energy of the binding site present and the probability that chromatin is accessible at that location (Eq (8)). We found that chromatin accessibility had a low impact on the auROC when the mean accessibility was at least 0.2 (S6 Fig). We note that Eq (8) implicitly assumes that the probability of occupancy at a genomic location is zero in cells where chromatin is inaccessible. This does not hold for TFs such as pioneer TFs [32], which are capable of binding inaccessible chromatin and opening it up for further binding by other TFs. For these TFs, our model under-estimates the occupancy probability at a given genomic location, with the result that the auROC that we obtain in our simulation represents a lower bound.
Indirect binding affects motif inference and lowers sensitivity more than cooperative binding
The target TF (say, A) of a ChIP-seq experiment is said to be indirectly bound to DNA if it does not bind DNA directly but instead binds a second TF (say, B) that in turn directly binds DNA. Thus, an indirectly bound locus lacks a binding site for the target TF, and the number of reads mapped to this location do not depend on the binding energy of A. This can be seen in the top panel of Fig 4A, where the read count ratios of locations directly bound by A depend on the binding energy of A (R2 = −0.73, p < 10−115) whereas the read counts from indirectly bound regions do not (R2 = 0.004, p = 0.933).
In contrast to indirect binding, genomic locations that are cooperatively bound by the target TF and the second TF contain a binding site for each TF. The magnitude of the cooperative effect is represented by the interaction energy (Δ, in units of kB T). Lower (negative) values of Δ represent a larger cooperative effect, with Δ = 0 representing independent binding (see Eq (4)). In the bottom panel of Fig 4A, read count ratios of some cooperatively bound locations (Δ = −6kB T) are higher than independently bound regions. Unlike in the case of indirect binding, however, read count ratios from cooperatively bound regions depend on the binding energy of the target TF (R2 = −0.66, p < 10−38), in addition to depending on the binding energy of the second TF and the interaction energy between both TFs.
In Fig 4B, we separately evaluated the impact of indirect and cooperative binding on the inferred PWM of the target TF. A detailed description of PWM inference in the presence of indirect and cooperative binding is given in Methods. The baseline PWM of the TF Tye7 is first computed with direct binding alone. We then computed the mean K-L distance between this baseline PWM and the PWM inferred in the presence of either cooperative binding or indirect binding with a second TF. We found that the inclusion of a given fraction of indirectly bound sequences distorted the inferred PWM more than the inclusion of the same fraction of cooperatively bound sequences. The divergence of the inferred PWM from the baseline depended both on the binding energy range of the indirectly or cooperatively binding second TF, as well as the strength of the cooperative effect.
Similarly, we found that a given fraction of indirectly bound locations had a greater impact on ChIP-seq fidelity than the same fraction of cooperatively bound locations (Fig 4C). This was true even though the cooperativity is high (Δ = −6kB T). Indirect and cooperative binding particularly affected the fidelity of read count ratios from the strongest binding sites (the top 25th percentile of read count ratios).
More than two ChIP-seq replicates are needed to reliably estimate binding energies of low affinity sites from read counts
Next, we assessed the accuracy with which the binding energy at a locus can be estimated using ChIP-seq read count ratios, and the impact of replicates on this accuracy. If we denote the true binding energy of the i-th locus as ϵ(i) and the estimate of the binding energy as , we expect to move closer to ϵ(i), on average, as more replicates of ChIP-seq are performed. The first step to quantifying the accuracy of is to compute its posterior probability after having observed read count ratios R(1), R(2), …, R(n) from n biological replicates, which is the conditional probability . We define the absolute uncertainty or uncertainty of the binding energy estimate to be the 95% Bayesian credible interval of this posterior distribution [33], which we take to be the difference between its 97.5th and 2.5th quantiles. The posterior probability, and hence, the uncertainty of after n + 1 replicates are performed, can be computed from using Bayes’ rule, as shown in Methods.
The expected decrease in the uncertainty of as more replicates are performed can be seen in Fig 5A, where the area under posterior probability of becomes more concentrated around ϵ(i) with each additional replicate. We repeated this procedure to calculate the reduction in uncertainty at locations with binding energies between 2kB T and 6kB T in Fig 5B, and found that the uncertainty is high at sites with the lowest binding energies even after five replicates are performed. At the lowest binding energies, we also checked if the uncertainty after five replicates sufficed to distinguish between two binding sites that differ by one base pair from each other. From an analysis of binding energy matrices of 368 TFs in the BEEML database [13], we estimated that 75% of single mutations change the binding energy of a site by at least 0.24kB T, while 50% of single mutations change the energy by at least 0.71kB T. Thus, even three replicates of ChIP-seq would allow us to distinguish between two binding sites that are a single mutation apart with a probability between 50% and 75% at only relatively low energy binding sites.
Simulating FASTQ reads using ChIPulate
In addition to simulating read counts from ChIP and control samples as described so far, ChIPulate can output single-end and paired-end reads for each genomic location if its chromosome coordinates are specified.
Fig 6A illustrates the working of ChIPulate when it is run in FASTQ generation mode. To generate sequence reads, a set of n genomic intervals (b1, e1), (b2, e2), …, (bn, en), along with a set of “summits” s1, s2, …, sn is input to ChIPulate. These summits can be thought of as the physical location of TF-DNA binding in each interval. The total and unique read counts (ri and ui, respectively) at each interval are computed as described in Methods based on the binding energy (or energies) associated with each interval. Fragments that are PCR duplicates are tracked and the reads arising from duplicate fragments are named appropriately to reflect their status as a PCR duplicate. In the ChIP sample, the start positions of fragments in the i-th interval are sampled from a Gaussian distribution with mean si − d/2 and standard deviation j, where d is the fragment length and j is referred to as the fragment jitter. This captures the notion that a genomic position close to a TF-DNA binding event is more likely to give rise to a fragment in the ChIP sample than a genomic position that is far away. In the control sample, each position in an interval is assumed to be equally likely to give rise to a fragment. This corresponds to the Poisson background model assumed by peak callers such as MACS2 [24]. Thus, in the control sample, ChIPulate samples start positions in the i-th genomic interval from a Uniform(bi, ei) distribution. The l base pairs at the ends of each fragment in both ChIP and control samples represents the read length. Though Fig 6A illustrates the simulation of paired-end reads, ChIPulate can simulate both single-end reads and paired-end libraries, where the sequence of each read is assumed to be error-free.
Fig 6B is an IGV (Integrated Genomics Viewer) [35] snapshot of paired-end reads simulated from a genomic interval containing a GCN4 binding site in the S. cerevisiae genome. In this example, we chose a set of 549 genomic regions that were found to be bound by GCN4 in an earlier publication [34], and computed the binding energy of GCN4 in each region using its binding energy matrix from the BEEML database. The starting position of the lowest energy binding site was set to be the summit of each region. We then generated the start positions of fragments (200 bp in length) in the ChIP sample by setting the fragment jitter to 50 bp. The read length for the paired-end reads were set at 50 bp at a sequencing depth of 100. The sequence of each read was assigned based on the sequence of the S288C R64-2-1 reference of the S. cerevisiae genome [36] from the Saccharomyces Genome Database [37]. The reads generated were aligned to this genome reference using the BWA aligner [38].
Discussion
ChIPulate substantially and qualitatively extends previous statistical models of read counts obtained in a ChIP-seq experiment. Early work by Zhang et. al assumed a distribution of binding affinities across the genome and computed occupancy using a similar biophysical model to ours [24], but did not simulate extraction and amplification. Bao et. al explicitly accounted for the effect of extraction efficiency on read counts [26], but did not model the underlying biophysical occupancy of genomic loci based on their binding energies. More recent work by Ruan et. al, accounted for the effect of chemical potential on TF-DNA occupancy and its impact on motif inference [14]. However, the authors evaluated the impact of experimental noise by adding Gaussian noise to the energies of binding sites rather than modeling the downstream processes of the ChIP-seq protocol.
Our pipeline combines a biophysical model of TF-DNA binding with a detailed simulation of fragment extraction, amplification and sequencing. This allows us to analyze the impact of heterogeneity in fragment extraction and PCR amplification on the motif inferred from bound genomic loci, and the fidelity of read count ratios in discriminating relatively close binding energies. We also evaluated how these factors, along with chromatin accessibility and sequencing depth, affect the false positive peak detection rate. The role of biological factors such as indirect binding and cooperative binding, which are frequent occurrences in ChIP-seq datasets, were also evaluated for their impact on motif inference and fidelity. Finally, we measured the accuracy of using read count ratios to infer the energy of a binding site and calculated the improvement in this accuracy after several biological replicates are performed.
In our simulations, fragment extraction encapsulates multiple steps in the ChIP-seq protocol, namely, cross-linking TF-DNA bound complexes, antibody-mediated pull down of fragments bound by the TF, and the removal of cross-links. In addition to the mean extraction efficiency, the nature of the extraction heterogeneity dictates the magnitude of its impact on motif inference and fidelity, with power law distributions having a greater impact than normally distributed heterogeneity. The effect of extraction heterogeneity on motif inference also depended on the structural class of the TF, where we found that a low mean extraction efficiency distorted motifs with a lower information content much more than those with high information content. However, for a given TF, it is unclear as to whether a normal or power law distribution better capture experimental variation in extraction efficiency across the genome. Previous reports suggest that variation in chromatin accessibility alone imposes a power-law distribution on extraction efficiency variation [18]. The development of alternate protocols that reduce the number of extraction steps [39–41] would improve the fidelity of read count ratios and reduce the number of false positive peak calls. In contrast to extraction efficiency, variation in PCR amplification ratio had a much lower impact on motif inference and the fidelity of read count ratios. However, in the presence of sequencing errors during amplification (which our model does not currently include) and imperfect mappability, a large mean amplification ratio in practice would increase false positive peak calls [42] and likely affects fidelity more than indicated by our simulations.
Though we explicitly modelled TF-DNA binding here, our conclusion on the impact of extraction and amplification ratio on fidelity also likely holds for the ChIP-seq of histone marks. Though the occupancy of histones in nucleosomal complexes would have to be modelled in a very different manner to that of TFs [43–46], this only affects the calculation of . The remaining steps of extraction, PCR amplification and sequencing that are carried out in the ChIP-seq of a histone mark are identical to those that are simulated here. An issue of interest in a histone ChIP-seq dataset is the method employed to process the control sample [47, 48], where employing an antibody against the histone H3 in the control sample provides a better estimate of pext than an input sample [47]. Our simulations suggest that this would be true only if the mean extraction efficiency of fragments with these methods is not too much lower than using an input sample. This is because a low mean value of pext in the control sample would poorly sample any potential variation in extraction between genomic regions in the ChIP sample.
Extraction of DNA fragments due to indirect binding is believed to be frequent in ChIP-seq experiments [10, 49]. We find that the inclusion of indirectly bound regions has a more adverse effect on motif inference and fidelity than even strongly cooperatively bound regions. The extent of indirect binding in a dataset depends both on antibody quality [11, 23] and the cross-linking protocol employed [50] except when the ChIP-seq target protein is a co-factor which, by definition, is always indirectly bound. When antibody quality leads to indirect binding, we note that indirectly bound peaks and false positive peaks are hard to distinguish. Our work suggests that minimizing the extent of indirect binding and developing computational methods to detect them may provide a potent avenue to improving the fidelity of ChIP-seq experiments. For instance, protocols such as ChIP-exo [11, 51, 52] allow indirectly bound regions to be more easily detected through the peak shapes obtained after alignment and represent an important direction for further improvement of the ChIP-seq protocol.
Our results shows that several replicates of ChIP-seq are required if the energy of a binding site is to be inferred through read count ratios within a certain confidence interval. Since our simulation assumes a single site per peak, it should be noted that a single replicate of ChIP-seq can suffice to accurately infer a PWM for the TF [53], which in turn reliably estimates the energy of the binding site [54–56]. However, in the more general case where a peak may harbor multiple TF binding sites, the mapping between the binding energies of sites and the read count ratios in such a region is far more complex than in our simulation. This means that reliably inferring the occupancy at such a locus through read count ratios is likely to involve more replicates than we have estimated here. Since our simulations in this calculation assumed relatively low heterogeneity in extraction and PCR efficiency, further improvement in these steps of the protocol may not be the most effective avenue to reduce the number of replicates required to infer occupancy. Instead, reduction in sequencing cost to obtain multiple biological replicates of ChIP-seq will yield an accurate inference of in vivo occupancy at a genomic locus.
There is considerable scope for extending ChIPulate. We assumed that amplified fragments can be de-duplicated after sequencing in our simulation, which is possible with paired-end sequencing and unique molecular identifier (UMI) based methods of PCR amplification [57–59]. Most ChIP-seq libraries are, however, subjected to single-end sequencing. It might be of interest to investigate the effect of imperfect de-duplication with single read sequencing. Furthermore, we did not take into account differences in mappability across the genome or sequencing errors, which can cause reads originating from a genomic locus to not map back to the same region [60]. These are relatively easy to account for in our simulation since it keeps track of individual fragments when they are extracted, amplified and sequenced. Finally, the FASTQ generation mode of ChIPulate can be used to comprehensively benchmark ChIP-seq peak callers and other computational pipelines that process ChIP-seq data.
Overall we have presented a detailed ChIP-seq simulation model and software pipeline that can be extended in various ways, including other bulk and single-cell sequencing protocols.
Methods
ChIP-seq simulation framework
Genome-wide TF-DNA binding model
In the most basic version of our simulation, we consider the genome to be a set of n locations. Each of these locations contains a single binding site for the ChIP-seq target TF. We follow an approach similar to [27], where, at a given point in time, the i-th locus can be in one of two states—bound by the target TF or unbound. We assign a binding energy ϵu to the unbound state and a binding energy ϵ(i) to the bound state. The Boltzmann weights of both these states are then exp(−ϵu/kB T) and exp(−(ϵ(i) − μ)/kB T), respectively. kB is the Boltzmann constant, T is the temperature at which the binding occurs, and μ is the chemical potential of the TF, which is proportional to the logarithm of the concentration of the TF [27]. The probability of finding the i-th locus in the bound state is then
(1) |
where Z = exp(−(ϵ(i) − μ)/kB T) + exp(−ϵu/kB T). This can be re-written as
(2) |
Thus, the occupancy at a location is determined by the three quantities ϵ(i), ϵu, μ. In the convention followed in this paper, the scale of ϵ(i) is chosen such that the highest affinity binding site has a binding energy of 0, with more positive values representing weaker binding sites. We set μ = 3kB T, which is within the range of values suggested by an earlier calculation in [27]. Finally, we set ϵu = 1.59kB T, which ensures that at the location with the highest affinity site i.e., when ϵ(i) = 0, the occupancy probability is 0.99.
ϵ(i) can be thought of as a mismatch binding energy, where mutations that change the binding site sequence away from the highest affinity sequence increase its energy and thus lower the probability that it is occupied. This is in line with the convention followed in the binding energy matrices in the BEEML database.
To compute the probabilities of binding at all n locations, , using Eq (1), we assign a binding energy to each locus. We sample binding energies from a power law that is truncated to a specified range. We define the probability density function f of this truncated power law, with parameters 1 > α > 0, Emax > 0, as
(3) |
Our choice of such a power law is motivated by the analysis of binding energies of sites that are occupied by the TFs CRP and FNR in the E. coli genome [61]. Unless stated otherwise, we set α = 0.5 and Emax = 10kB T. This corresponds to a situation where most of the binding sites in the genome have a low affinity (or high energy) for the target TF. Emax = 10kB T typically corresponds to a binding site that is 3-4 mutations away from the strongest binding site, since each mutation to the strongest sequence typically adds an energy 1 − 3kB T to it for most TFs [27]. We set the chemical potential of the target TF, μ, to be 3kB T by default in all our simulations in the main text.
In a population of C cells, when the i-th locus has a probability of being bound, then the number of bound fragments extracted from the i-th locus, denoted , follows a distribution, where the mean number of bound fragments is .
In most ChIP-seq experiments, a small number of cells are used to carry out a control, or input, experiment where fragments from cells are extracted without the use of antibody specific to the target TF. The read counts obtained in the input experiment are used to normalize, in a region or locus-specific manner, the read counts obtained from the ChIP sample. The input sample helps take into account heterogeneity that may arise in the extraction, amplification and sequencing of fragments from different genomic locations. The difference between the input and ChIP samples is in the number of cells employed and the probability of occupancy employed for each location. We assume that 10% of the number of cells used in the ChIP experiment are used in the input sample. The occupancy of genomic regions in the background sample consists of the non-specific binding of all the TFs in the cell, along with different sets of TFs that may be specifically bound at each genomic location. We phenomenologically model this scenario by assigning a fixed background binding energy to each of the n genomic locations, from which we use Eq (1) to compute the probability of occupancy . We set μ = 0 in Eq (1) for the input sample and keep ϵu = 1.59kB T.
If the number of cells used in the input sample is C′, then the number of bound fragments at each location follows a distribution. Unless stated otherwise, we set to 1kB T in simulations where we do not model false positive binding sites in the ChIP sample. When we simulate false positive binding sites, we set to a value where the ratio between the mean probability of occupancy in the ChIP sample to the mean probability of occupancy in the input sample is 10.
Aside from these differences in the TF-DNA binding model in the input and ChIP samples, the simulation procedures used in the description of the extraction, amplification and sequencing steps are common to both samples.
Cooperative binding
Consider TFs A and B, where A is the target of the ChIP-seq experiment, however, its binding depends on nearby binding of TF B. To simulate such cooperative binding between A and B, we have each of the n genomic locations in our simulation to contain a single binding site each for A and B, with binding energies and and an interaction energy Δ between them.
A given genomic locus can be in one of four states—unbound, bound by A, bound by B, or bound by both A and B. The probabilities of the locus being in each of these four states is [62]
where . Δ = 0 corresponds to independent binding between A and B, Δ < 0 corresponds to cooperative binding between A and B and Δ > 0 represents competitive binding between A and B.
Since the ChIP experiment involves extracting fragments that are bound by A, the probability of a location being bound by A is the sum of the probability of the location being bound only by A and the probability of being bound by A and B. Thus, the occupancy probability of the i-th location, , as seen in the ChIP-seq of A is:
(4) |
We assume here that the binding site of A is not occupied by B, and vice versa. Further, we assume that there is no cooperativity between two distinct genomic locations i and j.
Indirect binding
Consider TFs A and B, where A is the target of the ChIP-seq experiment. We say that A indirectly binds DNA if A binds to B which in turn binds DNA. To simulate indirect binding, we assume that the probability of occupancy is proportional to the binding energy of B at the i-th location, as
(5) |
On the other hand, at locations directly bound by A, is dependent on according to Eq (1). We further assume that B cannot occupy binding sites of A, and vice versa.
False positive binding sites
We consider a detected binding site to be false positive if it is bound by a TF (or TFs) other than the target TF of a ChIP-seq, or not bound by any TF at all, but fragments from which are nonetheless extracted in Step 2 of simulation. This differs from indirect binding, where the target TF is part of the complex of TFs that is bound to DNA. False positives reflect antibody quality or specificity.
In our simulations of false positive binding sites in Fig 3, we set the number of false positive binding sites to be equal to the number of true positive binding sites. We note that the area under the ROC curve is independent of the number of false positive binding sites simulated.
We set the binding energy distribution of true positive binding sites to be a power law between 0 and 6kB T with α = 0.5. This differs from the default power law distribution employed for true positive binding energies in our other simulations. This was because we found that binding sites with energies in the range 7 − 10kB T had read count ratios that were very close to each other. Thus, when we computed the ROC curve with binding sites in this energy range, we saw that the true positive rate showed an abrupt jump as the threshold on the read count ratio was lowered below a point. Such jumps in the true positive rate make it difficult to compare ROC curves. By restricting the energy range of true positive binding sites to between 0 and 6kB T, we ensured that the true positive rate did not display this jump-like behaviour, which in turn allowed us to use the auROC as an accurate measure of detection performance.
We set the binding energies of the false positive sites to follow a power law distribution where the minimum binding site energy was 0kB T. The maximum binding energy () and αfp was set such that the ratio of the means of true and false positive binding energies could be fixed at a constant value while the variances were kept equal. Suppose the true positive binding energy distribution follows a power law over the energy range and exponent αtp such that its mean is m and variance is v. Then, setting αfp and as
(6) |
where r = v/(g2 m2) + 1, sets the mean false positive binding energy to be fm while the variance remains at v.
Once the true and false positive binding energies are sampled, we compute the ratio between the mean occupancy of the true positive sites to that of the false positive binding sites. This is calculated as
(7) |
where Nfp and Ntp are the number of false and true positive binding sites, respectively, and and are occupancies at true and false binding sites respectively.
In Fig 3, we set αfp = 0.76 and , which corresponds to a mean occupancy ratio of ∼2. This is in line with the antibody recommendations of the ENCODE consortium [23], whose recommendation for antibody quality is that the primary reactive band should be at least 50% of the signal on the blot, which we interpret to represent a mean occupancy ratio between true positive and false positive sites in the ChIP sample to be at least 2.
Finally, we set the background binding energy, which determines the occupancy of fragments in the input sample, to a value of 4.96kB T. This sets the ratio of the mean occupancy of true positive sites in the ChIP sample to the mean occupancy of the same sites in the input sample to 10. This is in line with the 5− to 13− fold-enrichment observed in read counts of ChIP-seq peaks between the ChIP and input samples in the ENCODE project [23].
Chromatin accessibility
We modeled chromatin accessibility using a sigmoidal prior based on DNAse-seq hypersensitivity data following [3, 63]. Briefly, the occupancy probability calculated based on the binding energies in Eq (1) is multiplied by the sigmoidal function—
(8) |
where d is the DNAse-seq read count density, which is average per-base DNASe-seq read coverage within a 150 bp window.
Thus, for a genomic locus whose occupancy probability is pb, the probability that it is bound in Step 1 of our simulation is the product pb pacc. Thus, the occupancy probability essentially provides a scaling factor for binding probability.
Instead of simulating a profile of DNAse-seq read counts across the genome, we used read counts from DNAse-seq data of the M. musculus DBA/2 cell line (accession number ENCFF871YIT, lab of John Stamatoyannopoulos), available from the ENCODE Consortium [64, 65]. We used the filtered binary alignment map (BAM) files, which were aligned to the mm10 genome assembly using the ENCODE data processing pipeline. We chose the DNAseq-seq profile of this cell line as a reference DNAse-seq profile since it cleared all quality audit error categories laid out by the ENCODE Consortium for DNAse-seq data.
In order to consider only regions with accessible chromatin, we counted the number of reads falling into non-overlapping 100 kb windows of the genome and retained the top 10% of windows that had the highest read counts. We finally counted the reads falling into non-overlapping 150 bp windows and stored these read counts. In each ChIP-seq simulation, we uniformly sampled read counts of n of these regions, where n is the number of binding locations being simulated, and plugged them into Eq (8) (after dividing the counts by 150) to compute chromatin accessibility.
The extraction process
Given the number of bound fragments , each fragment needs to be extracted from the cell population. This extraction process involves several steps that include the lysing of cells to extract DNA, cross-linking of bound proteins to DNA, the size selection of sheared fragments, etc. After each of these steps, the number of bound fragments either stays the same or reduces. Our model of fragment loss during these steps tracks the reduction in fragment numbers prior to PCR amplification step.
We assume that the number of extracted fragments from the i-th genomic locus, denoted , follows a distribution. is the probability of a bound fragment from the i-th region being successfully extracted and present in the pre-PCR fragment pool. pe can vary across the genome [66, 67] and is also dependent on the extraction procedure employed [68]. Unless stated otherwise, we assume that pe follows a normal distribution truncated to lie between 0 and 1, with a mean of 0.5 and a standard deviation of 0.05.
Since we assume that is a binomial sample of fragments, the addition of more extraction steps into the simulation only changes the value of without necessarily violating the binomial assumption. Suppose we add an additional extraction step with efficiency ei into the simulation such that , where . Then, by the laws of total variance and total expectation, the mean of , for a fixed value of , is and its variance is . By setting , we see that (conditioned on ) follows a distribution up to the first two moments. Thus, the parameter can be thought to implicitly take into account a variety of steps employed in the extraction process.
As stated in the previous section, we employ the same values of in both ChIP and input samples. In a single run of the simulation, it can happen that the number of fragments extracted in the ChIP sample exceeds that of the input sample, or vice versa. In practice, since fragments are typically more efficiently extracted in the input sample than in the ChIP sample, DNA extracted from the input library is diluted such that the number of fragments in both ChIP and input samples are equalized before amplification.
In our simulation, we compute a down-sampling factor , which is the ratio of the total number of extracted fragments in the ChIP sample to that in the input sample. If D < 1, we down-sample extracted fragments in the input sample by replacing with the sample . If D > 1, we similarly down-sample the fragments from the ChIP sample instead of the input sample.
Mean occupancy ratio as a measure of antibody specificity
In Eq (7), we defined the mean occupancy ratio as the ratio between the mean occupancy of true positive binding sites to that of false positive binding sites. This ratio can also be interpreted as a measure of antibody specificity in the following way.
Consider a genome with n true positive binding sites and m false positive binding sites. Suppose the extraction efficiency is at true positive binding sites and at false positive binding sites. Then, the average number of fragments extracted from the i-th true positive binding site in the ChIP sample is , and the average number extracted from the j-th false positive binding site is , where are occupancies at each location. The ratio (re) between the average number of fragments extracted from true positive binding sites to that from false positive binding sites is then
This is the ratio that determines the accuracy of ChIP-seq in distinguishing between true and false positive binding sites. If re is large, true positive binding sites will give rise to more fragments than false positive binding sites, leading to true positive sites having larger read count ratios. A high value of re is achieved if, for across the genome, true positive sites have a larger mean occupancy than at false positive sites. Setting in the above equation reduces re to the mean occupancy ratio defined in Eq (7).
Conversely, if across the genome, then re reduces to the ratio
which is merely the ratio between the mean extraction efficiency at true positive binding sites to that at false positive binding sites. This constitutes a measure of the specificity of the antibody employed against the target TF of the ChIP-seq. Thus, ensuring that the average extraction efficiency at true positive sites is higher than at false positive sites ensures that the former give rise to higher read count ratios.
PCR amplification
We simulate PCR amplification using the model in [69] which we briefly explain below. In this model, each DNA fragment has a probability pa of being amplified in a cycle of PCR and gives rise to two fragments. The fragment fails to undergo amplification and remains as a single fragment with probability 1 − pa.
Suppose is a random variable that represents the number of amplified fragments after ncy cycles of PCR. can assume values between 1 and .
(9) |
where . If we represent as a vector of length , the probability distribution of can then be calculated from in terms of an updating matrix (of dimension ) by setting where
(10) |
Thus, for a given value of pa, the distribution of can be computed recursively from when we start from a single DNA fragment. For computational efficiency, for values of ncy between 10 and 15, we pre-computed and stored the distributions of for values of pa between 0.01 and 0.99 in steps of 0.01. In order to simulate ncy cycles of PCR amplification for fragments, we draw samples from the distribution corresponding to the value of at that locus.
The mean and variance in the number of amplified fragments, , starting with a single fragment at the first cycle and an amplification efficiency of pa, can be calculated from branching process theory [70]. After a single cycle of PCR, the mean (m1) and variance (v1) are
After ncy cycles of amplification, and are given by —
Substituting the expressions for m1 and v1 into the above equation, we have
(11) |
We refer to as amplification ratio of PCR at that location.
We assume that the PCR efficiency at a locus remains constant across all cycles of amplification. We also assume that the number of amplified fragments obtained from each starting DNA fragment is statistically independent of amplifications at other fragments. This implies that starting with fragments, the mean number of amplified fragments after ncy cycles of PCR is . The expressions in Eq (11) are valid only when PCR has not yet reached a saturation of amplification where the concentration of PCR primers, polymerase, etc. relative to the concentration of the amplified fragments is enough to ensure that pa does not decrease as ncy is increased.
By default, we set A = 1000 and ncy = 15 across the genome in all our simulations unless stated otherwise. This corresponds to a value of pa ≈ 0.58.
Sequencing
At the end of the PCR amplification step, there are amplified fragments from all n genomic locations. In this set of amplified fragments, there are unique fragments, each of which come from different cells, and the remaining fragments are duplicates obtained through PCR. During the sequencing step, a total of r = cn fragments are sampled from this amplified pool and sequenced. r denotes the total read count of the experiment and c is the sequencing depth.
Since each fragment has an equal probability of being sampled, the read count sample r1, r2, …, rn from amplified fragment pools , where , follows a multivariate hyper-geometric distribution. To draw a sample from this distribution, we implemented the following procedure [71]—
Given two pools of fragments of pool sizes A and B from which r reads are to be sampled, the probability that k reads come from the first pool is
We extend this distribution to sampling from n pools of fragments, each of size by first drawing r reads from two pools of size and . The probability of observing r1 reads from the first locus (i.e. pool A1) is
(12) |
To draw reads for the second locus, we draw a sample of size r − r1 from two pools of size and .
(13) |
We continue this sampling process till all r reads have been sampled.
The read count at the i-th location, ri, consists of a mixture of ui unique reads and di duplicate reads such that ri = ui + di. We keep track of the fragments that were obtained via amplification versus those obtained in extraction step, and therefore, by simulation design, the ui reads can be perfectly separated out from the di reads, which is detailed below.
As stated in the earlier section, fragments extracted from the i-th location undergo PCR amplification to give fragments, where are the number of amplified fragments obtained from each of the fragments. To sample ui we first draw samples from the fragments pools such that . We can write , where and are the numbers of unique and duplicate fragments sampled from . Since we assume that each of the fragments has an equal probability of being sampled, is a multivariate hyper-geometric sample of , which we generate using the same procedure outlined for sampling r1, r2, …, rn reads from fragments.
We then compute ui for each location as follows. If , then and . Since only one fragment in is unique, cannot exceed 1, which means that if , then, and . We can then obtain ui by setting .
In the process of simulating read counts, We do not account for mutations than can cause alignment errors in actual ChIP-seq reads, which in turn can change read counts at a genomic locus.
FASTQ read generation
To generate sequence reads, a set of genomic n intervals (b1, e1), (b2, e2), …, (bn, en), along with a set of “summits” s1, s2, …, sn need to be input to ChIPulate. These summits can be thought of as the physical location of TF-DNA binding in each interval. The total and unique read counts (ri and ui, respectively) at the i-th interval are computed as described above, based on the binding energy (or energies) associated with each interval.
In the ChIP sample, after ri and ui are computed, ui fragment start positions are sampled from a Gaussian distribution with mean si − d/2 and standard deviation j, where d is the fragment length and j is referred to as the fragment jitter. Suppose the copy number of each of the ui fragments is , such that , where ci ≥ 1. Then, a set of ri fragment start positions can be obtained by repeating the j-th unique fragment start position cj times to give the set . The fragment jitter parameter j controls the dispersion of the fragment start positions from the position si.
The fragment start positions are simulated differently in the control sample. Here, given a unique read count ui and total read count ri at the i-th genomic interval, unique fragment start positions are sampled from a Uniform(bi, ei) distribution. Given this set of unique fragment positions, the set of ri fragment positions is constructed in the same way as in the ChIP sample, with the j-th unique fragment’s starting position aj being repeated cj times.
Suppose the read length being simulated is l base pairs. At the end of the previous step, we have a total of r = cn fragment start positions each in the ChIP and control samples, where c is the sequencing depth and r is the total read count. Suppose the the start position of the i-th read is ai and the genome is a N letter sequence g1 g2…gN, with the reverse complement sequence denoted . Then, if single-end sequencing is being simulated, we assign the sequence read to begin from the positive strand or the negative strand with equal probability. If the strand assigned to the read is positive, we assign the sequence to the i-th read. If the strand assigned to the read is negative, we assign the sequence . If paired-end sequencing is being simulated, we generate r read pairs, i.e., 2r reads in total, where each fragment gives rise to one read from the positive strand with the sequence and one read from the negative strand with the sequence . ChIPulate uses the getfasta subcommand of pybedtools from the input genome FASTA file to extract these sequences [72, 73].
The quality of each base call in every sequence read is set to be K, the maximum possible value on the Illumina Phred-33 quality scale. This corresponds to a base call error probability of 10−42 [74].
Default values
Unless stated otherwise, we use the following values by default—
Genome-wide TF-DNA binding model: n = 1000, ϵ1, …, ϵn are sampled from a power law (with α = 0.5) between 0 and 10kB T, , C = 105(ChIP sample), μ = 3kB T, C = 104(input sample)
Extraction process: are sampled from a N(0.5, 0.025) distribution that is truncated to lie in [0, 1]. Further, at each location, the extraction efficiency is set to be the same in both ChIP and input samples.
Amplification process: A = 1000, ncy = 15
Sequencing: c = 100
Motif estimation
To simulate motif estimation, we first sample binding energies ϵ1, ϵ2, …, ϵn from a binding energy distribution. We associate each binding energy ϵ(i) with a binding site sequence of the target TF whose energy is closest to this assigned value. The sampled energy ϵ(i) is then replaced with , and the set of energies are used for all occupancy calculations in the TF-DNA binding simulation. In the simulations shown here, the energies for each binding site sequence were taken from BEEML binding energy matrices (BEMs) that were fit to in vitro protein-binding microarray affinity measurements of different TFs [13].
Once ChIP-seq is simulated based on these binding energies, the top 10% of locations based on their read count ratios are chosen and the binding sites in each of them are used to construct the PWM of the target TF of the ChIP-seq. Since the BEMs we employed were for 10 bp long sequences, the PWMs we estimated were also 10 base pairs in length. Each term of the W was computed using the formula [75]
(14) |
where Nij is the number of sequences with the i-th base at the j-th position, bi is the background frequency of the i-th sequence and N is the number of sequences used to estimated W. The background frequencies are added as pseudo-counts to deal with positions where Nij is 0.
Motif estimation in the presence of indirect binding and cooperative binding
As stated earlier, in indirect binding, a fraction of genomic locations are bound by the ChIP target TF A while the remaining locations are bound by a second TF B, which is in turn bound to A. The binding site sequences of A are assigned to each genomic locus based on the BEM of A but we do not utilize any BEM of B to assign a binding site sequence for it. Instead, we associate with each binding energy of B a 10 bp sequence generated from a dinucleotide model of the S. cerevisiae genome. We chose a dinucleotide model to generate indirectly bound sequences since this has been shown to closely approximate background genomic DNA that is not bound by the target TF [61].
After ChIP-seq is simulated in the presence of indirect binding, the top 10% of genomic locations are chosen according to their read count ratio to estimate the PWM of A. The sequences used for PWM estimation are the binding sites of A from directly bound locations that fall in the top 10% and the randomly generated binding site sequences of B from the remaining indirectly bound locations.
In the case of cooperative binding, a fraction of locations is bound cooperatively by A and B while the remaining locations are independently bound by both TFs. At each genomic locus, binding sites of A and B are associated with the binding energies of each location based on their respective BEMs. When the top 10% of locations are chosen for PWM estimation, the binding sites of A from both cooperatively and independently bound locations are chosen.
Posterior density estimation
We drew samples from the posterior binding energy distribution using a combination of kernel density estimation and the Metropolis-Hastings algorithm [76]. Here, r(1), r(2), …, r(k) are read count ratios observed in k sequential replicates from a genomic locus whose true binding energy is ϵT.
We first compute the posterior distribution when k = 1. From Bayes’ rule, we have
(15) |
where C1 is the normalization constant and π is a prior distribution, which we set to be the default binding energy distribution.
represents the probability density of read count ratios from a locus containing a single binding site with energy ϵ. To compute this distribution, we simulated 103 replicates of ChIP-seq across n = 1000 locations whose binding energies ϵ1, ϵ2, …, ϵn were sampled from the default binding energy distribution. The remaining simulation parameters of the ChIP-seq were set to their default values. This gave us 103 replicates of read count ratios for each of the binding energies ϵ1, ϵ2, …, ϵn. We used these read count ratios to compute Gaussian kernel density estimators (KDE) of p(ϵ1), p(ϵ2), …, p(ϵn), which we denote as . The KDE estimators were computed using the gaussian_kde method in the Python scipy library (v0.19.1) [77]. Given this set of KDE estimators, we can compute at any arbitrary ϵ in the range [min ϵ(i), max ϵ(i)] using a linear interpolation between values ϵj and ϵj+1 as
(16) |
where ϵj < ϵ < ϵj+1 and λ = (ϵ − ϵj)/(ϵj+1 − ϵj). Substituting this into Eq (15), we get
(17) |
where . To sample from , we implemented the Metropolis-Hastings algorithm [76], which is an algorithm that draws samples from a Markov chain whose stationary distribution is the posterior density from which we wish to sample.
Using the same ChIP-seq simulation parameters as used in generating the 103 replicates, but with the binding energy of the first locus ϵ1 set to ϵT, we simulated k replicates of ChIP-seq and store the sequence of read count ratios r(1), r(2), …r(k) from the first locus. These are the read count ratios that are used to sequentially update the posterior binding energy estimate in Eq (15).
Metropolis-Hastings algorithm
The output of the Metropolis-Hastings algorithm is a set of samples that follows a target distribution, which in this case is the posterior distribution . We explain the algorithm for the case when k = 1.
We first sample ϵ from a Uniform[0, 10] distribution and set , and compute . is the initial state of the Markov chain. We then sample ϵ′ from a proposal distribution, which we denote as , and then compute using Eq (16). If , we update the current state of the sampler to . If , we compute a ratio
(18) |
and sample a number u from a Uniform[0, 1] distribution. If u < r, we set the current state of the sampler to or leave it unchanged at if u > r. If takes on values close to the values 0 or 10kB T, then the probability density must be 0 when ϵ′ < 0 and ϵ′ > 10kB T. Thus, the choice of g which we use for the proposal distribution is a truncated normal distribution. The forward proposal distribution , where is the i-th sample drawn, is a normal distribution with mean and standard deviation that is truncated to lie within [0, 10kB T]. The backward proposal distribution, is a normal distribution with mean ϵ′ and standard deviation 0.2ϵ′ that is truncated to lie within [0, 10kB T].
We repeat this process and store the states of the sampler , where t is a thinning factor that we fix at 100, b is the burn-in period that is set to 10000 and m is the number of samples to be retained, which we set at 10000. We then retain only every t-th sample beginning from the b-th sample i.e. , and use it to construct a Gaussian kernel density estimator of , which we denote as . Note that in this process, the normalization constant C1 in Eq (15) need not be computed.
When the read count ratio r(2) is observed after the second replicate of ChIP-seq, we substitute in place of the prior π in Eq (15) and update the posterior —
where C2 is a normalization constant. This process is repeated k times in order to sample from the posterior binding energy distributions .
Change in binding energy due to a single nucleotide change in a binding site
We obtained BEM models of 368 TFs from the BEEML database (http://stormo.wustl.edu/beeml/) [13]. These matrices follow the convention where the highest affinity sequence is assigned an energy of 0, with all other sequences being assigned a positive binding energy. The matrices in this database were calculated by fits of binding energy models to protein binding microarray data [13] which measured the affinity of TFs for different 10 bp long sequences. For each TF, there were two BEMs (each of dimension 4 × 10) available since the matrices were fit individually to replicates of microarray measurements, with the quality of the fit being determined by the R2 value of predictions from the matrix with measurements. For each TF, we chose the BEM that had the higher R2 value for further analysis.
For each TF, we picked the sequence whose energy was closest in value to a baseline energy that were in the range 2 − 6kB T in steps of 1kB T. For a given baseline energy, we then computed the binding energy of each of the 30 sequences that were a single mutation away from this sequence and stored the absolute values of the energy differences. We repeated this process for every TF in the database and computed the 50-th and 25-th quantiles of binding energy differences. The 50-th quantiles for the baseline energies from 2 − 6kB T were (in units of kB T) 0.24, 0.24, 0.23, 0.24, 0.24 and the 25-th quantiles were 0.76, 0.72, 0.7, 0.7, 0.71.
Supporting information
Acknowledgments
We thank Gautam Menon, Sandeep Krishna, Parul Singh and Aswin Sai Narain Seshasayee, for discussions.
Data Availability
All code and data necessary to reproduce the results in the manuscript are described in https://github.com/vishakad/chipulate/blob/master/paper/Manuscript.ipynb. Instructions to run the code are provided in the README file at https://github.com/vishakad/chipulate/.
Funding Statement
SH was funded in part by NSF award 1564785. VD was supported by the Simons Foundation. RS was supported by the PRISM 12th plan project at the Institute of Mathematical Sciences, funded by Department of Atomic Energy, Government of India. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
References
- 1. Johnson DS, Mortazavi A, Myers RM, Wold B. Genome-wide mapping of in vivo protein-DNA interactions. Science. 2007;316(5830):1497–1502. 10.1126/science.1141319 [DOI] [PubMed] [Google Scholar]
- 2. Li XY, Thomas S, Sabo PJ, Eisen MB, Stamatoyannopoulos JA, Biggin MD. The role of chromatin accessibility in directing the widespread, overlapping patterns of Drosophila transcription factor binding. Genome biology. 2011;12(4):R34 10.1186/gb-2011-12-4-r34 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3. Kaplan T, Li XY, Sabo PJ, Thomas S, Stamatoyannopoulos JA, Biggin MD, et al. Quantitative models of the mechanisms that control genome-wide patterns of transcription factor binding during early Drosophila development. PLoS genetics. 2011;7(2):e1001290 10.1371/journal.pgen.1001290 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4. John S, Sabo PJ, Thurman RE, Sung MH, Biddie SC, Johnson TA, et al. Chromatin accessibility pre-determines glucocorticoid receptor binding patterns. Nature genetics. 2011;43(3):264–268. 10.1038/ng.759 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5. Guertin MJ, Martins AL, Siepel A, Lis JT. Accurate prediction of inducible transcription factor binding intensities in vivo. PLoS genetics. 2012;8(3):e1002610 10.1371/journal.pgen.1002610 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6. Roider HG, Kanhere A, Manke T, Vingron M. Predicting transcription factor affinities to DNA from a biophysical model. Bioinformatics. 2006;23(2):134–141. 10.1093/bioinformatics/btl565 [DOI] [PubMed] [Google Scholar]
- 7. Cheng Q, Kazemian M, Pham H, Blatti C, Celniker SE, Wolfe SA, et al. Computational identification of diverse mechanisms underlying transcription factor-DNA occupancy. PLoS genetics. 2013;9(8):e1003571 10.1371/journal.pgen.1003571 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8. He X, Chen CC, Hong F, Fang F, Sinha S, Ng HH, et al. A biophysical model for analysis of transcription factor interaction and binding site arrangement from genome-wide binding data. PloS One. 2009;4(12):e8155 10.1371/journal.pone.0008155 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9. Bailey TL, Boden M, Buske FA, Frith M, Grant CE, Clementi L, et al. MEME SUITE: tools for motif discovery and searching. Nucleic acids research. 2009;37(suppl_2):W202–W208. 10.1093/nar/gkp335 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10. Wang J, Zhuang J, Iyer S, Lin X, Whitfield TW, Greven MC, et al. Sequence features and chromatin structure around the genomic regions bound by 119 human transcription factors. Genome research. 2012;22(9):1798–1812. 10.1101/gr.139105.112 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11. Starick SR, Ibn-Salem J, Jurk M, Hernandez C, Love MI, Chung HR, et al. ChIP-exo signal associated with DNA-binding motifs provides insight into the genomic binding of the glucocorticoid receptor and cooperating transcription factors. Genome Research. 2015;25(6):825–835. 10.1101/gr.185157.114 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12. Stormo GD. DNA binding sites: representation and discovery. Bioinformatics. 2000;16(1):16–23. 10.1093/bioinformatics/16.1.16 [DOI] [PubMed] [Google Scholar]
- 13. Zhao Y, Stormo GD. Quantitative analysis demonstrates most transcription factors require only simple models of specificity. Nature biotechnology. 2011;29(6):480 10.1038/nbt.1893 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14. Ruan S, Stormo GD. Inherent limitations of probabilistic models for protein-DNA binding specificity. PLoS computational biology. 2017;13(7):e1005638 10.1371/journal.pcbi.1005638 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15. Kharchenko PV, Tolstorukov MY, Park PJ. Design and analysis of ChIP-seq experiments for DNA-binding proteins. Nature biotechnology. 2008;26(12):1351 10.1038/nbt.1508 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16. Park PJ. ChIP–seq: advantages and challenges of a maturing technology. Nature Reviews Genetics. 2009;10(10):669–680. 10.1038/nrg2641 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17. Park D, Lee Y, Bhupindersingh G, Iyer VR. Widespread misinterpretable ChIP-seq bias in yeast. PLoS One. 2013;8(12):e83506 10.1371/journal.pone.0083506 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18. Kazemian M, Pham H, Wolfe SA, Brodsky MH, Sinha S. Widespread evidence of cooperative DNA binding by transcription factors in Drosophila development. Nucleic Acids Research. 2013;41(17):8237–8252. 10.1093/nar/gkt598 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19. Jain D, Baldi S, Zabel A, Straub T, Becker PB. Active promoters give rise to false positive ‘Phantom Peaks’ in ChIP-seq experiments. Nucleic acids research. 2015;43(14):6959–6968. 10.1093/nar/gkv637 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20. Benita Y, Oosting RS, Lok MC, Wise MJ, Humphery‐Smith I. Regionalized GC content of template DNA as a predictor of PCR success. Nucleic Acids Research. 2003;31(16):e99 10.1093/nar/gng101 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21. Aird D, Ross MG, Chen WS, Danielsson M, Fennell T, Russ C, et al. Analyzing and minimizing PCR amplification bias in Illumina sequencing libraries. Genome biology. 2011;12(2):R18 10.1186/gb-2011-12-2-r18 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22. Best K, Oakes T, Heather JM, Shawe-Taylor J, Chain B. Computational analysis of stochastic heterogeneity in PCR amplification efficiency revealed by single molecule barcoding. Scientific Reports. 2015;5 10.1038/srep14629 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23. Landt SG, Marinov GK, Kundaje A, Kheradpour P, Pauli F, Batzoglou S, et al. ChIP-seq guidelines and practices of the ENCODE and modENCODE consortia. Genome Research. 2012;22(9):1813–1831. 10.1101/gr.136184.111 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24. Zhang Y, Liu T, Meyer CA, Eeckhoute J, Johnson DS, Bernstein BE, et al. Model-based analysis of ChIP-Seq (MACS). Genome biology. 2008;9(9):R137 10.1186/gb-2008-9-9-r137 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25. Rozowsky J, Euskirchen G, Auerbach RK, Zhang ZD, Gibson T, Bjornson R, et al. PeakSeq enables systematic scoring of ChIP-seq experiments relative to controls. Nature biotechnology. 2009;27(1):66 10.1038/nbt.1518 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 26. Bao Y, Vinciotti V, Wit E, ’t Hoen PA. Joint modeling of ChIP-seq data via a Markov random field model. Biostatistics. 2013;15(2):296–310. 10.1093/biostatistics/kxt047 [DOI] [PubMed] [Google Scholar]
- 27. Gerland U, Moroz JD, Hwa T. Physical constraints and functional characteristics of transcription factor–DNA interaction. Proceedings of the National Academy of Sciences. 2002;99(19):12015–12020. 10.1073/pnas.192693599 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28. Lalam N, Jacob C, Jagers P. Modelling the PCR amplification process by a size-dependent branching process and estimation of the efficiency. Advances in Applied probability. 2004;36(2):602–615. 10.1239/aap/1086957587 [DOI] [Google Scholar]
- 29. Zhao Y, Granas D, Stormo GD. Inferring binding energies from selected binding sites. PLoS computational biology. 2009;5(12):e1000590 10.1371/journal.pcbi.1000590 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30. Spivak AT, Stormo GD. ScerTF: a comprehensive database of benchmarked position weight matrices for Saccharomyces species. Nucleic acids research. 2011;40(D1):D162–D168. 10.1093/nar/gkr1180 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31. Matys V, Kel-Margoulis OV, Fricke E, Liebich I, Land S, Barre-Dirrie A, et al. TRANSFAC® and its module TRANSCompel®: transcriptional gene regulation in eukaryotes. Nucleic acids research. 2006;34(suppl_1):D108–D110. 10.1093/nar/gkj143 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32. Zaret KS, Carroll JS. Pioneer transcription factors: establishing competence for gene expression. Genes & development. 2011;25(21):2227–2241. 10.1101/gad.176826.111 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 33. Casella G, Berger RL. Statistical inference. vol. 2 Duxbury Pacific Grove, CA; 2002. [Google Scholar]
- 34. Rawal Y, Chereji RV, Valabhoju V, Qiu H, Ocampo J, Clark DJ, et al. Gcn4 Binding in Coding Regions Can Activate Internal and Canonical 5’ Promoters in Yeast. Molecular cell. 2018;70(2):297–311. 10.1016/j.molcel.2018.03.007 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35. Robinson JT, Thorvaldsdóttir H, Winckler W, Guttman M, Lander ES, Getz G, et al. Integrative genomics viewer. Nature biotechnology. 2011;29(1):24 10.1038/nbt.1754 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36. Engel SR, Dietrich FS, Fisk DG, Binkley G, Balakrishnan R, Costanzo MC, et al. The reference genome sequence of Saccharomyces cerevisiae: then and now. G3: Genes, Genomes, Genetics. 2014;4(3):389–398. 10.1534/g3.113.008995 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37. Cherry JM, Hong EL, Amundsen C, Balakrishnan R, Binkley G, Chan ET, et al. Saccharomyces Genome Database: the genomics resource of budding yeast. Nucleic Acids Research. 2011; p. gkr1029. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38. Li H, Durbin R. Fast and accurate long-read alignment with Burrows–Wheeler transform. Bioinformatics. 2010;26(5):589–595. 10.1093/bioinformatics/btp698 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39. Kasinathan S, Orsi GA, Zentner GE, Ahmad K, Henikoff S. High-resolution mapping of transcription factor binding sites on native chromatin. Nature methods. 2014;11(2):203 10.1038/nmeth.2766 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40. Zentner GE, Kasinathan S, Xin B, Rohs R, Henikoff S. ChEC-seq kinetics discriminates transcription factor binding sites by DNA sequence and shape in vivo. Nature communications. 2015;6:8733 10.1038/ncomms9733 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41. Skene PJ, Henikoff S. An efficient targeted nuclease strategy for high-resolution mapping of DNA binding sites. Elife. 2017;6:e21856 10.7554/eLife.21856 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42. Sundaram AY, Hughes T, Biondi S, Bolduc N, Bowman SK, Camilli A, et al. A comparative study of ChIP-seq sequencing library preparation methods. BMC genomics. 2016;17(1):816 10.1186/s12864-016-3135-y [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43. Padinhateeri R, Marko JF. Nucleosome positioning in a model of active chromatin remodeling enzymes. Proceedings of the National Academy of Sciences. 2011;. 10.1073/pnas.1015206108 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44. Parmar JJ, Marko JF, Padinhateeri R. Nucleosome positioning and kinetics near transcription-start-site barriers are controlled by interplay between active remodeling and DNA sequence. Nucleic acids research. 2013;42(1):128–136. 10.1093/nar/gkt854 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 45. Osberg B, Nuebler J, Gerland U. Adsorption-desorption kinetics of soft particles. Physical review letters. 2015;115(8):088301 10.1103/PhysRevLett.115.088301 [DOI] [PubMed] [Google Scholar]
- 46. Chereji RV, Clark DJ. Major determinants of nucleosome positioning. Biophysical journal. 2018;. 10.1016/j.bpj.2018.03.015 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47. Flensburg C, Kinkel SA, Keniry A, Blewitt ME, Oshlack A. A comparison of control samples for ChIP-seq of histone modifications. Frontiers in genetics. 2014;5:329 10.3389/fgene.2014.00329 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 48. Nakato R, Shirahige K. Recent advances in ChIP-seq analysis: from quality management to whole-genome annotation. Briefings in bioinformatics. 2016;18(2):279–290. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49. Bailey TL, Machanick P. Inferring direct DNA binding from ChIP-seq. Nucleic acids research. 2012; p. gks433. 10.1093/nar/gks433 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 50. Zeng PY, Vakoc CR, Chen ZC, Blobel GA, Berger SL. In vivo dual cross-linking for identification of indirect DNA-associated proteins by chromatin immunoprecipitation. Biotechniques. 2006;41(6):694–698. 10.2144/000112297 [DOI] [PubMed] [Google Scholar]
- 51. Rhee HS, Pugh BF. Comprehensive genome-wide protein-DNA interactions detected at single-nucleotide resolution. Cell. 2011;147(6):1408–1419. 10.1016/j.cell.2011.11.013 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52.Yamada N, Lai WK, Farrell N, Pugh BF, Mahony S. Characterizing protein-DNA binding event subtypes in ChIP-exo data. bioRxiv. 2018; p. 266536. [DOI] [PMC free article] [PubMed]
- 53. Kinney JB, Tkačik G, Callan CG. Precise physical models of protein–DNA interaction from high-throughput data. Proceedings of the National Academy of Sciences. 2007;104(2):501–506. 10.1073/pnas.0609908104 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54. Berg OG, von Hippel PH. Selection of DNA binding sites by regulatory proteins: Statistical-mechanical theory and application to operators and promoters. Journal of molecular biology. 1987;193(4):723–743. 10.1016/0022-2836(87)90354-8 [DOI] [PubMed] [Google Scholar]
- 55. Maerkl SJ, Quake SR. A systems approach to measuring the binding energy landscapes of transcription factors. Science. 2007;315(5809):233–237. 10.1126/science.1131007 [DOI] [PubMed] [Google Scholar]
- 56. Ma X, Ezer D, Navarro C, Adryan B. Reliable scaling of position weight matrices for binding strength comparisons between transcription factors. BMC bioinformatics. 2015;16(1):265 10.1186/s12859-015-0666-1 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 57. Kivioja T, Vähärautio A, Karlsson K, Bonke M, Enge M, Linnarsson S, et al. Counting absolute numbers of molecules using unique molecular identifiers. Nature methods. 2012;9(1):72–74. 10.1038/nmeth.1778 [DOI] [PubMed] [Google Scholar]
- 58. Islam S, Zeisel A, Joost S, La Manno G, Zajac P, Kasper M, et al. Quantitative single-cell RNA-seq with unique molecular identifiers. Nature methods. 2014;11(2):163–166. 10.1038/nmeth.2772 [DOI] [PubMed] [Google Scholar]
- 59. He Q, Johnston J, Zeitlinger J. ChIP-nexus enables improved detection of in vivo transcription factor binding footprints. Nature Biotechnology. 2015;33(4):395–401. 10.1038/nbt.3121 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 60. Kuan PF, Chung D, Pan G, Thomson JA, Stewart R, Keleş S. A statistical framework for the analysis of ChIP-Seq data. Journal of the American Statistical Association. 2011;106(495):891–903. 10.1198/jasa.2011.ap09706 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 61. Djordjevic M, Sengupta AM, Shraiman BI. A biophysical approach to transcription factor binding site discovery. Genome research. 2003;13(11):2381–2390. 10.1101/gr.1271603 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 62. Shea MA, Ackers GK. The OR control system of bacteriophage lambda: A physical-chemical model for gene regulation. Journal of molecular biology. 1985;181(2):211–230. 10.1016/0022-2836(85)90086-5 [DOI] [PubMed] [Google Scholar]
- 63. Pique-Regi R, Degner JF, Pai AA, Gaffney DJ, Gilad Y, Pritchard JK. Accurate inference of transcription factor binding from DNA sequence and chromatin accessibility data. Genome research. 2010; p. gr–112623. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 64. Consortium EP, et al. An integrated encyclopedia of DNA elements in the human genome. Nature. 2012;489(7414):57–74. 10.1038/nature11247 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 65. Sloan CA, Chan ET, Davidson JM, Malladi VS, Strattan JS, Hitz BC, et al. ENCODE data at the ENCODE portal. Nucleic acids research. 2015;44(D1):D726–D732. 10.1093/nar/gkv1160 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 66. Teytelman L, Özaydın B, Zill O, Lefrançois P, Snyder M, Rine J, et al. Impact of chromatin structures on DNA processing for genomic analyses. PloS one. 2009;4(8):e6700 10.1371/journal.pone.0006700 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 67. Teytelman L, Thurtle DM, Rine J, van Oudenaarden A. Highly expressed loci are vulnerable to misleading ChIP localization of multiple unrelated proteins. Proceedings of the National Academy of Sciences. 2013;110(46):18602–18607. 10.1073/pnas.1316064110 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 68. Waldminghaus T, Skarstad K. ChIP on Chip: surprising results are often artifacts. BMC genomics. 2010;11(1):414 10.1186/1471-2164-11-414 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 69. Kebschull JM, Zador AM. Sources of PCR-induced distortions in high-throughput sequencing data sets. Nucleic Acids Research. 2015;43(21):e143–e143. 10.1093/nar/gkv717 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 70. Harris TE. The theory of branching processes. Courier Corporation; 2002. [Google Scholar]
- 71. Gentle JE. Random number generation and Monte Carlo methods. Springer Science & Business Media; 2006. [Google Scholar]
- 72. Quinlan AR, Hall IM. BEDTools: a flexible suite of utilities for comparing genomic features. Bioinformatics. 2010;26(6):841–842. 10.1093/bioinformatics/btq033 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 73. Dale RK, Pedersen BS, Quinlan AR. Pybedtools: a flexible Python library for manipulating genomic datasets and annotations. Bioinformatics. 2011;27(24):3423–3424. 10.1093/bioinformatics/btr539 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 74. Cock PJ, Fields CJ, Goto N, Heuer ML, Rice PM. The Sanger FASTQ file format for sequences with quality scores, and the Solexa/Illumina FASTQ variants. Nucleic acids research. 2009;38(6):1767–1771. 10.1093/nar/gkp1137 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 75. Kulakovskiy I, Levitsky V, Oshchepkov D, Bryzgalov L, Vorontsov I, Makeev V. From binding motifs in ChIP-Seq data to improved models of transcription factor binding sites. Journal of bioinformatics and computational biology. 2013;11(01):1340004 10.1142/S0219720013400040 [DOI] [PubMed] [Google Scholar]
- 76. Gelman A, Carlin JB, Stern HS, Rubin DB. Bayesian data analysis. vol. 2 Chapman & Hall/CRC; Boca Raton, FL, USA; 2014. [Google Scholar]
- 77. Jones E, Oliphant T, Peterson P. SciPy: open source scientific tools for Python. 2014. [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
All code and data necessary to reproduce the results in the manuscript are described in https://github.com/vishakad/chipulate/blob/master/paper/Manuscript.ipynb. Instructions to run the code are provided in the README file at https://github.com/vishakad/chipulate/.