Workflows

Trimming reads: when it helps and when it does not

When to trim low-quality bases, adapters, primers and poly-G tails, when trimming costs real data and what to record in the methods.

Trimming removes low-quality bases and adapter sequence from reads before alignment or assembly. It helps when the removed bases would otherwise create false matches, but it can hurt when it removes real biological signal or shortens reads below what the next step needs.

What trimming can remove

  • Low-quality tails. Base quality often falls towards the end of a read. Cutting the tail can reduce false variants and improve mapping.
  • Adapter sequence. If the insert is shorter than the read length, the sequencer reads into the adapter. Those bases do not belong to the sample.
  • Primers. Amplicon reads begin with primer sequence. Removing it is necessary before denoising or classification.
  • Poly-G tails. Some platforms produce long runs of G when no signal is present, especially in two-colour chemistry.
  • Overrepresented junk. rRNA, PhiX or a dominant contaminant can be filtered, but only after you identify it.

What trimming cannot fix

Trimming is not a substitute for a good library. It cannot repair a sample that was mislabelled, a run with a systemic cycle failure or a library with almost no insert. It also cannot recover reads that are shorter than the alignment seed or the overlap needed for merging.

If most reads are adapter dimer, trimming will leave very short fragments that map nowhere. The right response is to check the library preparation, not to trim harder.

Choosing a strategy

A simple and reproducible strategy is easier to defend than a chain of tools with overlapping jobs.

  1. Inspect the raw reads with a quality report.
  2. Decide which problems are present: quality tail, adapter, primer, poly-G, contamination.
  3. Use one tool that addresses those problems and records what it removed.
  4. Re-run the quality report on the trimmed reads.
  5. Compare the downstream result with and without trimming when the answer matters.

For short-read DNA, quality trimming and adapter removal are common. For RNA-seq, adapter removal matters and aggressive quality trimming is usually unnecessary because the aligner can handle lower-quality tails. For amplicon data, primer removal is essential and quality trimming should preserve enough overlap for merging. For long reads, adapter and quality trimming still apply, but the error profile is different and the tools are different.

The cost of cutting too much

Every trimmed base is data you no longer have. A read that falls below the minimum length may be discarded entirely. If the experiment depends on short fragments, a length filter can remove a real and important part of the library.

Trimming also changes the denominator. If 30 percent of reads are discarded, coverage falls and the remaining reads may be biased towards longer fragments. A variant caller may then miss a region that looked adequately covered before trimming.

The cost of cutting too little

Adapter read-through can create false alignments, especially in small genomes and amplicon data. Low-quality tails can create false single-nucleotide variants at the ends of reads. Poly-G runs can look like insertions or cause misalignment. A small amount of contamination can dominate a low-biomass sample.

The practical answer is to look at the report and the downstream evidence, not to choose a fixed recipe. A trimming policy that is appropriate for one library type can be wrong for another.

Record what you did

Trimming is an analysis step, so it belongs in the methods. Record the tool, version, parameters, minimum length and the number of reads before and after. If reads were merged or deduplicated, record that too.

A useful sanity check is a read-length distribution before and after. A large shift means the policy is doing more than you intended. A small shift with a big quality improvement is usually a good sign.

Key points

  • Trim for a named problem, not because trimming is a habit.
  • Adapter and primer removal are often more important than quality trimming.
  • Every trimmed base is lost data; check the downstream effect.
  • Record tool, version, parameters and read counts.
  • Re-run QC after trimming.

Common mistakes

  • Applying a DNA trimming recipe to RNA-seq or amplicon data.
  • Trimming primers but leaving the reverse complement or a partial primer.
  • Discarding short reads that are biologically meaningful.
  • Trimming twice with two tools and double-counting the effect.
  • Reporting only the final read count, with no raw count.

When to ask for help

If trimming removes a large fraction of reads, if the downstream result changes when the policy changes, or if you cannot tell adapter from real sequence, ask for a review before proceeding. You can order an analysis or read the RNA-seq QC checklist. The free FASTQ Read Processing studio reports what it trims, and the NGS pipeline overview shows the next steps.

Sources and further reading

A simple decision record

Before trimming, write down the problem you are solving in one sentence. For example: "The reverse reads contain adapter after base 90 in a subset of fragments." After trimming, write what changed: read count, mean length, per-base quality and the downstream result.

This record makes the choice reviewable. It also stops the common pattern in which a pipeline is copied from a previous project and applied to a new library type without checking whether the assumptions still hold.

If two trimming policies give the same biological conclusion, prefer the one that removes less data and is easier to explain. If they give different conclusions, the result is sensitive to preprocessing and should be reported as such. A sensitivity check on a small subset is often enough to decide.

A useful final check is to compare the trimmed and untrimmed read-length distributions side by side. If the shape changes sharply, the policy is selecting a subset of fragments rather than removing a technical artifact. That is a biological decision, not only a cleanup step, and it belongs in the methods with a clear rationale.

Record the date and tool version as well, because a later re-run should use the same settings unless there is a reason to change them.

When to ask for help. If your data or design do not fit a tutorial, order an analysis and we will reply with a fixed price.

Written by the Solagene team for research and education. Found an error? Tell us and we will correct it.