Tutorials › High-Dimensional Genomic Data Analysis › Quality Control for Chromatin Sequencing Libraries

Epigenomic and Regulatory Data · Tutorial 785 of 795

Quality Control for Chromatin Sequencing Libraries

Calculate key chromatin-library QC metrics and interpret them together, accounting for assay design, sequencing depth, and common sources of misleading results.

Intermediate 12 min read

What You'll Learn

  • Distinguish overall mapping rate from unique mapping rate and usable-fragment yield.
  • Calculate duplicate rate, non-redundant fraction, and basic library-complexity summaries.
  • Interpret fragment-size distributions in relation to assay and library preparation.
  • Calculate FRiP and a descriptive target-to-background enrichment ratio.
  • Recognize why no single QC metric or universal cutoff establishes library quality.
  • Identify patterns that may indicate a failed or low-information library.

Why Library Quality Control Is Multidimensional

A chromatin sequencing library can produce many reads yet provide little useful information. Reads may fail to align, map ambiguously, repeat already observed fragments, or show little enrichment for the biological signal of interest. Quality control (QC) asks whether the library and its sequencing yield are adequate for the intended assay—not whether a sample is biologically “good” or whether a result is true.

The relevant evidence depends on the assay, reference genome, read layout, sequencing depth, and library preparation. A narrow enrichment pattern and a broad enrichment pattern need not have the same expected fragment profile. Therefore, QC should combine complementary metrics and compare samples with appropriate assay-specific expectations, rather than rely on a single pass/fail cutoff.

Definition: In this tutorial, a fragment is the original DNA fragment represented by a read pair in paired-end sequencing. Unless specified otherwise, rates use fragments—not individual reads—as their unit. For single-end sequencing, the read is the available unit, and fragment length cannot be measured directly from the sequenced read alone. A mapped fragment has an alignment to the reference under the stated mapping rules; a uniquely mapped fragment has one accepted genomic placement.

Before interpreting the metrics, state the counting rules: whether the denominator is read pairs or individual reads, whether multimapping alignments are retained, how duplicate fragments are defined, and whether enrichment uses duplicate-marked or nonduplicate fragments. These choices can change the numerical values, so comparisons are meaningful only when the rules are consistent.

Mapping, Duplication, and Complexity

Mapping summarizes how much sequenced material can be placed on the chosen reference. One useful quantity is the overall mapping rate, the number of fragments with an accepted alignment divided by all sequenced fragments. The unique mapping rate instead uses uniquely mapped fragments in the numerator. Reporting both helps distinguish poor overall alignment from a high rate of ambiguous placement. The reference, read quality, contamination, and repetitive sequence can all affect these rates.

$$ \text{Overall mapping rate} = \frac{\text{mapped fragments}}{\text{sequenced fragments}}, \qquad \text{Unique mapping rate} = \frac{\text{uniquely mapped fragments}}{\text{sequenced fragments}}. $$

A duplicate-marking procedure identifies fragments that share the same genomic endpoints under its operational rules. The duplicate rate is the number of marked duplicate fragments divided by the mapped fragments examined. It is a warning about redundancy, not a direct count of PCR cycles: genuinely abundant biological fragments can also share endpoints, particularly in a strongly enriched library or a deeply sequenced sample.

$$ \text{Duplicate rate} = \frac{\text{duplicate-marked mapped fragments}} {\text{mapped fragments examined}}. $$

Library complexity concerns how many distinct fragment patterns are represented, and whether additional sequencing is likely to recover new ones. A simple summary is the non-redundant fraction (NRF): the number of distinct mapped fragment endpoint patterns divided by the number of mapped fragments. Under identical endpoint and denominator rules, NRF is approximately one minus the duplicate rate. Other summaries, such as PBC1, compare the number of genomic fragment patterns observed exactly once with the number observed at least once. Such summaries depend on the counting definition and do not by themselves estimate a universal library size.

A useful justification for examining complexity is a simple occupancy model. Suppose there are \(M\) possible fragment patterns and each of \(n\) sequenced fragments independently draws one pattern with equal probability. For any one pattern, the probability it is never observed is \((1-1/M)^n\). Its probability of appearing at least once is therefore \(1-(1-1/M)^n\). Summing this probability over the \(M\) patterns gives the expected number of distinct patterns observed:

$$ E(\text{distinct patterns}) = M\left[1-\left(1-\frac{1}{M}\right)^n\right]. $$

As \(n\) increases, the number of distinct patterns still rises, but each additional fragment is increasingly likely to repeat one already observed. Real libraries violate the model’s equal-probability assumption: fragments have unequal probabilities because of biological abundance, assay enrichment, and technical effects. The model explains why duplication tends to rise with sequencing depth; it is not a literal complexity estimator for a real library.

Worked Example: Separating Mapping Yield from Duplication

Consider a hypothetical paired-end library with 20.0 million sequenced read pairs. Of these, 18.0 million map uniquely, 0.8 million map only ambiguously, and 1.2 million do not map. Among the 18.0 million uniquely mapped fragments, 5.4 million are marked as duplicates.

The overall mapping rate is \((18.0+0.8)/20.0=0.940\), or 94.0%. The unique mapping rate is \(18.0/20.0=0.900\), or 90.0%. The duplicate rate among uniquely mapped fragments is \(5.4/18.0=0.300\), or 30.0%. Thus the unique mapped, nonduplicate yield is \(18.0-5.4=12.6\) million fragments, or \(12.6/20.0=0.630\), 63.0% of the sequenced pairs.

These calculations distinguish three issues: most fragments align somewhere, a smaller fraction align uniquely, and some of those unique fragments are redundant. A 94.0% overall mapping rate alone would miss the loss from ambiguous placement and duplication. The conclusions assume the stated fragment-level counting rules are applied consistently.

Worked Example: Reading Complexity Summaries Together

A hypothetical library has 8.0 million uniquely mapped fragments. Endpoint grouping identifies 4.8 million distinct fragment patterns; 3.6 million patterns occur once, 0.6 million occur twice, and 0.6 million occur three or more times.

The non-redundant fraction is \(4.8/8.0=0.600\), or 60.0%. The complementary fraction of fragments beyond the first observation of each pattern is \((8.0-4.8)/8.0=0.400\), or 40.0%, consistent with that endpoint-based redundancy summary. PBC1, defined here as the number of patterns observed exactly once divided by the number observed at least once, is \(3.6/4.8=0.750\). A one-versus-two-copy ratio is \(3.6/0.6=6.00\).

These values suggest that repeated patterns are present, but they do not alone prove the library is poor: strong biological enrichment can produce repeated endpoints, and deeper sequencing can increase redundancy. The useful next check is whether additional sequencing is still yielding new patterns and whether the library’s enrichment and fragment profile are plausible for its assay.

Fragment Distributions and Enrichment

For paired-end data, the inferred fragment length is the genomic span between the aligned read ends. A histogram of these lengths can reveal an unexpected concentration of very short or very long fragments, a restricted range, or a pattern inconsistent with the library-preparation protocol. The expected profile is assay-dependent; there is no single ideal histogram for all chromatin assays. Check whether the distribution reflects the intended preparation, and investigate unexpected modes or abrupt truncation rather than automatically rejecting a sample. For single-end data, a fragment-size profile requires an estimate beyond the read length and should be labelled accordingly.

Enrichment metrics ask whether reads concentrate in regions expected to carry signal. One commonly used summary is the fraction of reads in peaks (FRiP). Define the peak set and denominator explicitly. For example, FRiP can be calculated as the number of uniquely mapped, nonduplicate fragments overlapping called peaks divided by all uniquely mapped, nonduplicate fragments. Because peak calling and filtering choices affect the result, FRiP is not comparable across analyses unless these choices are aligned. A low value may reflect weak enrichment, a mismatched peak set, low depth, or an unsuitable assay-specific expectation.

$$ \text{FRiP} = \frac{\text{unique mapped, nonduplicate fragments overlapping peaks}} {\text{all unique mapped, nonduplicate fragments}}. $$

Another descriptive check compares signal in target regions with background. If counts are normalized to the same library-depth scale, the ratio of target to background in the assay library can be compared with the same ratio in a matched control. This ratio-of-ratios is an interpretable enrichment summary, but it is not a substitute for the assay’s full analysis. It depends on the target and background definitions, control quality, and normalization.

Worked Example: Combining Fragment Profile and Enrichment

Suppose a hypothetical paired-end library has 10.0 million uniquely mapped, nonduplicate fragments. A length summary places 1.6 million between 100 and 250 base pairs, 6.8 million between 250 and 500 base pairs, and 1.6 million above 500 base pairs. The bins sum to 10.0 million. Of the same fragments, 1.1 million overlap the defined peak set.

The FRiP is \(1.1/10.0=0.110\), or 11.0%. This is a calculation, not a pass/fail judgment: whether 11.0% is concerning depends on assay, peak definition, and comparable libraries. The size distribution has most fragments in the middle bin, but that observation is useful only relative to the protocol’s expected profile. It does not establish that the library is successful or failed on its own.

For a separate background check, suppose normalized assay counts are 40,000 in target regions and 10,000 in matched background regions, while normalized control counts are 8,000 and 10,000, respectively. The assay target-to-background ratio is \(40{,}000/10{,}000=4.00\); the control ratio is \(8{,}000/10{,}000=0.800\). The ratio-of-ratios is \(4.00/0.800=5.00\). Under the stated matching and normalization assumptions, target signal relative to background is fivefold higher in the assay than in the control. This descriptive comparison should be interpreted alongside, not instead of, FRiP and the fragment profile.

Practical Interpretation and Failure Modes

A defensible QC review begins with measurement conditions, then interprets metrics jointly. Verify that the reference and mapping settings suit the organism and assay; check read quality and contamination indicators; confirm duplicate handling and denominators; and compare fragment and enrichment summaries with libraries prepared and processed similarly. Where several libraries are available, a single outlier metric is a reason to investigate, not an automatic reason to discard a sample.

SummaryWhat it helps assessImportant limitation
Mapping rateWhether sequenced fragments align to the referenceCan look high despite ambiguous mapping or many duplicates
Duplicate rate or NRFRedundancy among mapped fragment patternsCan be affected by sequencing depth and genuine enrichment
Fragment-length distributionWhether observed lengths are plausible for the protocolExpected patterns differ by assay and read layout
FRiP or target-to-background ratioWhether reads concentrate in defined signal regionsDepends on region definitions, controls, and normalization

A common mistake is to reason, “The duplicate rate is high, so this library failed,” or the reverse, “The mapping rate is high, so this library passed.” Neither conclusion follows from that metric alone. A high duplicate fraction may arise after deep sequencing or from strong enrichment; a high mapping rate does not guarantee unique, informative, or enriched fragments. The correction is to report the counting rules, inspect the other metrics, and judge the combined pattern against appropriate assay-specific expectations.

QC metrics have further limits. They cannot by themselves establish biological validity, prove that a control is appropriate, or show that a downstream result is reproducible. Thresholds are useful only when they have been justified for the assay and workflow; applying a universal cutoff across different assays can misclassify libraries. Retain the underlying summaries and document decisions so that a later analysis can distinguish a technical concern from an expected assay feature.

Check Your Understanding

Work through each item, then compare your reasoning with the solutions.

  1. A hypothetical run has 12 million sequenced fragments, of which 10.8 million map and 9.6 million map uniquely. What are the overall and unique mapping rates?
  2. A library has 5.0 million mapped fragments, with 1.5 million marked as duplicates. Calculate its duplicate rate and the nonduplicate mapped yield.
  3. There are 2.4 million peak-overlapping fragments among 8.0 million fragments in the stated FRiP denominator. Calculate FRiP and explain one reason it should not be treated as a universal pass/fail measure.
  4. Why might a high duplicate rate occur even when the library is not necessarily a technical failure?

Solutions: (1) Overall mapping rate is \(10.8/12=0.900\), or 90.0%. Unique mapping rate is \(9.6/12=0.800\), or 80.0%. (2) Duplicate rate is \(1.5/5.0=0.300\), or 30.0%; nonduplicate mapped yield is \(5.0-1.5=3.5\) million fragments. (3) FRiP is \(2.4/8.0=0.300\), or 30.0%. Its interpretation depends on assay, peak set, and denominator choices, so no universal cutoff follows from the calculation. (4) Deep sequencing can resample existing fragments, and genuinely strong enrichment can produce repeated fragment endpoints; duplicate rate must be interpreted with complexity, enrichment, and protocol context.

Clinical Biostats