Sequencing adapters appear in reads only when the insert is shorter than the read length (read-through), so adapter content is a direct readout of the insert-size distribution. Adapter is foreign sequence with genuine base quality, so aligners may mis-anchor on it -- which is why adapter trimming is the one near-universal preprocessing step (quality trimming usually is not, because aligners soft-clip). Cutadapt gives precise, error-tolerant control; Trimmomatic adds palindrome mode for paired read-through; fastp trims paired adapters from the read overlap with no adapter sequence needed.
# Cutadapt
conda install -c bioconda cutadapt
# Trimmomatic
conda install -c bioconda trimmomatic
# fastp (all-in-one alternative)
conda install -c bioconda fastp
Tell your AI agent what you want to do: - "Remove TruSeq adapters from my paired-end reads" - "Trim small-RNA adapters and keep only 18-30 nt inserts" - "My FastQC adapter-content curve climbs toward the 3' end, fix it" - "Remove amplicon primers from my reads"
"Remove TruSeq adapters from my paired-end FASTQ files and discard reads shorter than 20 bp"
"Trim Nextera adapters from my reads with Cutadapt"
"Trim the small-RNA 3' adapter, gate inserts to 18-30 nt, and drop reads with no adapter"
"My inserts are short (cfDNA) so most reads read through; trim the adapter from both mates"
"Detect paired read-through without knowing the adapter sequence"
"FastQC still shows adapter after trimming, raise the error tolerance and use the shared stem"
| Library | Adapter |
|---|---|
| Illumina TruSeq (shared stem) | AGATCGGAAGAGC |
| Nextera / Tn5 | CTGTCTCTTATACACATCT |
| Small RNA | TGGAATTCTCGGGTGCCAAGG |
--discard-untrimmed and a tight length gate, because a no-adapter read is junk.read-qc/quality-reports - Read the adapter-content panel that triggers trimming read-qc/quality-filtering - Quality and length filtering after adapter removal read-qc/fastp-workflow - All-in-one adapter + quality trim with auto poly-G read-qc/contamination-screening - k-mer removal of PhiX/vector/contaminant sequence small-rna-seq/smrna-preprocessing - Full small-RNA adapter + length workflow