Tutorials › High-Dimensional Genomic Data Analysis › Tn5 Insertion Bias and ATAC-seq Fragmentation

Epigenomic and Regulatory Data · Tutorial 786 of 795

Tn5 Insertion Bias and ATAC-seq Fragmentation

Learn to interpret ATAC-seq insertion bias and fragment-size profiles while recognizing when library preparation makes accessibility evidence unreliable.

Intermediate 11 min read

What You'll Learn

  • Explain why Tn5 sequence preference can distort insertion counts independently of accessibility.
  • Use a simple bias model to understand when and how insertion counts may be adjusted.
  • Interpret short, mononucleosomal, and longer ATAC-seq fragment classes.
  • Assess whether fragment-length periodicity supports nucleosome-associated organization.
  • Diagnose possible over- or under-fragmentation without treating one profile feature as definitive.
  • Identify the limitations of sequence-bias correction and fragment-size summaries.

Why Tn5 Bias and Fragment Length Matter

ATAC-seq uses the Tn5 transposase to insert sequencing adapters into DNA. In general, more insertions can indicate greater access of the enzyme to a genomic region, but insertion counts are not a pure measurement of accessibility: Tn5 has sequence preferences, and the distribution of fragment lengths also depends on chromatin structure and library preparation. Interpreting these signals requires separating what they can support from what they cannot establish on their own.

The introductory material on ATAC-seq establishes that transposase insertions are used as evidence about accessible chromatin. Here the focus is on two qualifications. First, Tn5 may insert more readily at some local DNA sequences than at others. Second, paired-end fragment lengths often show patterns associated with nucleosome-scale DNA protection, but those patterns can be altered by transposition conditions, sample quality, and size selection.

Definition: Tn5 insertion bias is sequence-dependent variation in the probability of adapter insertion that is not caused by a difference in chromatin accessibility. A fragment-length profile is the distribution of lengths of sequenced DNA fragments, usually calculated from paired-end read alignments. In ATAC-seq, short fragments are often consistent with DNA from nucleosome-depleted regions, while longer fragment classes can reflect DNA protected around one or more nucleosomes.

A Simple Model for Sequence Preference

Let \(Y_j\) be the number of observed Tn5 insertions at genomic position \(j\), \(A_j\) the local accessibility, \(B_j\) the relative insertion propensity associated with the local sequence, and \(L\) a library-depth factor. A useful working model is

$$ E(Y_j)=L A_j B_j. $$

This equation is a conceptual model, not a complete model of every source of sequencing variation. It assumes that, apart from depth and local sequence preference, expected insertions increase with accessibility. To use it for correction, one must have a credible estimate of \(B_j\), and that estimate must apply to the assay and analysis being performed. Other factors, including mapping and library properties, can also affect observed counts.

The model shows why raw insertion counts alone cannot separate accessibility from sequence preference. A large \(Y_j\) could arise from large \(A_j\), large \(B_j\), or both. If the sequence propensity is known, one can compare counts adjusted by \(B_j\), but this does not make the estimate exact: \(B_j\) is itself estimated, and correction can increase noise, especially where the estimated propensity is small.

Worked Example: Comparing Two Sites With Different Tn5 Propensities

Suppose two hypothetical sites have the same library-depth factor, and a calibration has estimated relative sequence propensities of \(B_1=1.50\) and \(B_2=0.75\). The observed insertion counts are \(Y_1=30\) and \(Y_2=15\). Under the simple model, compare their bias-adjusted accessibility proxies \(Y_j/B_j\).

For site 1, the adjusted proxy is \(30/1.50=20\). For site 2, it is \(15/0.75=20\). The raw counts differ by a factor of two, but the adjusted proxies are equal under this illustrative model. Thus, the raw difference alone would not support the conclusion that site 1 is more accessible.

This calculation assumes the two propensity estimates are on the same relative scale, that the calibration applies to these sites, and that other relevant effects are comparable. It does not prove that the biological accessibility values are equal. It illustrates why sequence preference can confound a raw-count comparison.

Estimating and Using Sequence Bias

A sequence-bias model estimates how likely Tn5 is to insert near different local DNA sequences. One approach uses a control in which DNA is exposed to the transposase outside its native chromatin context, so the observed preference is less affected by chromatin accessibility. Another approach estimates preference from sequence context in the experimental data under explicit assumptions about which insertions provide a suitable reference. A model may represent sequence context using short motifs or a longer local sequence window.

Whichever approach is used, the estimate should be treated as a nuisance adjustment rather than a direct measurement of chromatin state. A correction is most defensible when the bias model is estimated with adequate data, its sequence context matches the assay, and it is applied consistently. If a model assigns near-zero propensity to a sequence, dividing by that estimate can produce an extremely large corrected value. Such unstable weights are a warning to inspect the model and its use, not a reason to regard the inflated value as strong biological evidence.

The exact interpretation of an insertion coordinate also depends on the read-alignment and fragment-processing convention. Some ATAC-seq workflows shift aligned read positions to approximate the Tn5 insertion site. Comparisons require consistent conventions: mixing shifted and unshifted coordinates can misalign insertion counts with local sequence and make a sequence-bias analysis misleading.

Reading Fragment-Length Periodicity

For paired-end data, the aligned read pair gives an estimate of the length of the DNA fragment between the two sequenced ends. A common qualitative pattern includes a short-fragment class, a longer class around the length of DNA wrapped around one nucleosome, and further classes at roughly additional nucleosome-scale intervals. Nucleosome-associated periodicity is supported when successive longer-fragment modes are separated by approximately one nucleosome repeat length, often near 180–200 base pairs. The precise positions and strength of modes vary with assay conditions and sample.

This pattern is not a direct count of nucleosomes or a stand-alone measure of accessibility. A short fragment may arise from nucleosome-depleted DNA, but short fragments can also be enriched by library processing or size selection. Longer fragments can be consistent with DNA protected by nucleosomes, but a fragment-length histogram does not locate those nucleosomes or establish their occupancy at a particular locus. Interpret the profile alongside other library diagnostics, including the quality-control measures covered in the earlier material on chromatin sequencing libraries.

Worked Example: Interpreting a Hypothetical Fragment Profile

A hypothetical paired-end ATAC-seq library has 1,000 usable fragments. After applying one consistent alignment and filtering procedure, its size summary is: 520 fragments shorter than 100 bp, 300 from 150 to 250 bp, 130 from 300 to 450 bp, and 50 longer than 450 bp. The histogram has modes near 70, 195, and 385 bp. Calculate the class proportions and assess the pattern.

The proportions are \(520/1000=0.520\), or 52.0%, below 100 bp; \(300/1000=0.300\), or 30.0%, from 150 to 250 bp; \(130/1000=0.130\), or 13.0%, from 300 to 450 bp; and \(50/1000=0.050\), or 5.0%, above 450 bp. These proportions sum to 100.0%.

The successive modes near 195 and 385 bp are separated by \(385-195=190\) bp, which is consistent with a nucleosome-scale interval. Together with the substantial short-fragment class, this profile is compatible with a mixture of short fragments and nucleosome-associated longer fragments. It does not, by itself, establish the fraction of accessible loci or prove that nucleosomes are positioned at particular genomic sites. The gaps between the stated size bins also mean the bin percentages are summaries, not a complete description of the histogram.

Diagnosing Fragmentation Problems

Fragmentation profiles should be compared using the same fragment definition, alignment conventions, filtering rules, and plotting scale. A profile dominated by very short fragments with few longer classes may reflect excessive transposition, degraded nuclei, or library size selection, among other possibilities. A profile with few short fragments and weak or absent nucleosome-associated modes may be consistent with insufficient transposition or poor recovery of informative fragments. These are diagnostic clues, not unique explanations: no single profile shape identifies its cause without considering the protocol and other quality measures.

A practical assessment combines the fragment-length distribution with sequence-bias checks and broader library quality metrics. For example, strong sequence-dependent variation at insertion sites may indicate that raw insertion counts should not be interpreted as accessibility without qualification. A severe loss of longer fragments or an unusually narrow profile may prompt investigation of transposition conditions and size selection. A discrepancy between the fragment profile and other quality indicators should be investigated rather than resolved by selecting whichever metric gives the preferred conclusion.

Worked Example: Flagging a Potentially Over-Fragmented Library

Two hypothetical libraries were processed with the same protocol and summarized using the same four fragment classes. Library A has 1,000 fragments: 520 below 100 bp, 300 from 150 to 250 bp, 130 from 300 to 450 bp, and 50 above 450 bp. Library B also has 1,000 fragments: 820, 140, 30, and 10 in those classes, respectively. Compare the profiles.

For library B, the proportions are \(820/1000=82.0\%\), \(140/1000=14.0\%\), \(30/1000=3.0\%\), and \(10/1000=1.0\%\). Relative to library A, B has a much larger short-fragment proportion and smaller proportions in each longer class. This is a warning pattern consistent with excessive fragmentation or a processing step that preferentially retains short fragments.

The calculation supports flagging library B for investigation; it does not identify the cause or prove that its accessibility measurements are invalid. The protocol, size-selection steps, and other quality metrics must be checked. If the libraries represent different biological samples, their fragment profiles should not be made identical by unexamined processing, because genuine sample differences may also affect chromatin-derived fragments.

Why Periodicity and Bias Are Not Simple Quality Scores

A common mistake is to reason, “The sample has many short fragments, so it must have high accessibility,” or “The longer-fragment periodicity is weak, so there are no nucleosomes.” Both statements overinterpret the profile. Fragment proportions depend on chromatin, transposition, DNA recovery, and size selection. Weak periodicity may reflect technical limitations or biological heterogeneity; a clear periodic pattern supports nucleosome-associated organization but does not quantify accessibility by itself.

A second pitfall is to treat sequence-bias correction as a universal repair. The incorrect reasoning is: “The raw counts are sequence-biased, so dividing by any estimated sequence preference gives unbiased accessibility.” The correction is only as credible as the bias estimate, the assumptions behind it, and the stability of the adjustment. In particular, very small propensity estimates can amplify noise. Inspect the distribution of estimated propensities and corrected values, and report the adjustment rather than presenting corrected counts as error-free measurements.

The main alternatives are to report raw insertion evidence with a clear caveat, to use a calibrated sequence-bias model, or to compare results across raw and adjusted representations as a sensitivity analysis. Raw counts are transparent but retain sequence preference; model-based adjustment targets that preference but introduces dependence on the model; a sensitivity analysis shows whether interpretation changes under the adjustment. None eliminates all technical or biological uncertainty. The later topic of differential chromatin accessibility testing addresses statistical comparisons between conditions; the fragment and bias checks here help assess the evidence those analyses may use.

Key takeaway: ATAC-seq insertion counts reflect both local accessibility and Tn5 sequence preference, while fragment lengths reflect a combination of chromatin structure and library processing. Use sequence models and nucleosome-scale periodicity as diagnostic and interpretive evidence, not as automatic corrections or stand-alone measures of accessibility.

Check Your Understanding

Answer each question, then compare your reasoning with the brief solutions.

  1. If a site has \(Y=24\) insertions and estimated relative propensity \(B=1.20\), what is the adjusted proxy \(Y/B\)? What assumption is needed to interpret it as an accessibility proxy?
  2. A fragment histogram has modes near 200 and 390 bp. What feature is consistent with nucleosome-associated periodicity, and what can the histogram not establish?
  3. A library has a high fraction of short fragments and few long fragments. Give one plausible technical explanation and one reason not to treat that explanation as proven.
  4. Why can correction by a very small estimated sequence propensity be unstable?
  5. Two libraries have different fragment profiles. Why is it not automatically appropriate to force the profiles to match before comparing their biological samples?

Solutions. (1) \(24/1.20=20\). Interpreting this as an accessibility proxy requires, among other conditions, that the propensity estimate applies to the site and that relevant non-accessibility effects are comparable. (2) The modes are separated by \(390-200=190\) bp, a nucleosome-scale interval. The histogram does not locate nucleosomes or quantify accessibility at specific loci. (3) Excessive transposition or size selection favoring short fragments is plausible; the profile is not unique to either cause, so protocol details and other diagnostics are needed. (4) Dividing by a very small number greatly magnifies both the count and its sampling variation, making corrected values sensitive to estimation error. (5) A profile difference can reflect technical processing or genuine sample biology; forcing profiles to match may remove real biological variation as well as technical variation.

Clinical Biostats