Sequencing adapter trimming and quality filtering
Use when after receiving raw FASTQ files from SRA or local sequencing input, and after FastQC has identified adapter content and quality issues.From its SKILL.md
npx -y skills add HolobiomicsLab/asb-skill-collections --skill sequencing-adapter-trimming-and-quality-filteringAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as CC-BY-4.0. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
5.7 KB, 857 tokens by cl100k_base, as published. Nobody here has run it
sequencing-adapter-trimming-and-quality-filtering
Summary
Remove sequencing adapters and low-quality bases from raw FASTQ files using Trimgalore (which wraps Cutadapt) following quality assessment with FastQC. This preprocessing step prepares trimmed reads for downstream quantification tools like Salmon.
When to use
After receiving raw FASTQ files from SRA or local sequencing input, and after FastQC has identified adapter content and quality issues. Apply this skill when adapter contamination or low-quality base calls are present in the QC report before proceeding to transcript quantification or alignment.
When NOT to use
- Input FASTQ files have already been trimmed and quality-filtered by an upstream process.
- Downstream tool (e.g., pseudo-aligner) explicitly handles adapter removal internally.
- Analysis requires preservation of all original reads including low-quality bases (e.g., for specialized variant calling or error-rate studies).
Inputs
- raw FASTQ files (paired-end or single-end)
- FastQC quality control report identifying adapter sequences and quality scores
Outputs
- trimmed FASTQ files with adapters and low-quality bases removed
- trimming statistics and logs
How to apply
Run FastQC on raw FASTQ files to assess sequence quality, adapter content, and GC bias. Examine the FastQC report to confirm the presence of adapters and quality issues. Apply Trimgalore, which wraps Cutadapt, to automatically detect and remove sequencing adapters and trim low-quality bases from the 3' end of reads. Trimgalore outputs cleaned FASTQ files suitable for downstream quantification. Verify trimming success by confirming adapter removal in post-trimming FastQC reports and checking that read length distributions are appropriate for your downstream tool (e.g., Salmon typically requires minimum read lengths of ~20–31 bp).
Related tools
- FastQC (Quality control assessment to identify adapters, quality scores, GC bias, and other metrics before trimming)
- Trimgalore (Adapter detection and removal; wrapper around Cutadapt for automated trimming of adapters and low-quality bases)
- Cutadapt (Underlying tool invoked by Trimgalore to perform adapter clipping and quality trimming)
- Salmon (Downstream quantification tool that consumes trimmed FASTQ files to produce quant.sf files)
- Nextflow (Workflow orchestration engine to chain together FastQC, Trimgalore, and subsequent steps in automated pipelines) — https://www.nextflow.io
Evaluation signals
- FastQC 'Per base sequence quality' plot shows quality scores remain above Q30 across the majority of read length after trimming.
- Adapter content in FastQC report drops to 0% or near-zero after Trimgalore application.
- Trimgalore output log confirms number of reads removed and average read length post-trimming.
- Downstream Salmon quantification completes successfully with trimmed FASTQ inputs, producing valid quant.sf files with non-zero transcript counts.
- Read length distribution post-trimming is suitable for the downstream tool (e.g., ≥20 bp for Salmon quasi-mapping).
Limitations
- Trimgalore's adapter detection is pattern-based and may not identify novel or non-standard adapter sequences not in its built-in library.
- Aggressive trimming settings can remove short but valid reads, potentially reducing sensitivity for low-abundance transcripts.
- Trimming does not account for sample-specific quality issues (e.g., systematic errors in specific cycles) that may require specialized handling.
- Quality thresholds and minimum read length are fixed defaults; overly stringent settings may discard usable data.
Evidence
- [intro] sequential_processing_steps: "quality control using FASTQC, (3) adapter detection and removal with Trimgalore, and (4) quantification using salmon to produce quant.sf files"
- [methods] workflow_detail: "Run FastQC on raw FASTQ files to assess sequence quality, adapter content, and GC bias. (3) Trim sequencing adapters and low-quality bases using Trimgalore, which wraps Cutadapt."
- [methods] tool_integration: "Quality control | FastQC, trimgalore"
- [methods] downstream_output: "Quantify transcript abundances from trimmed FASTQ files using Salmon in quasi-mapping mode, generating quant.sf output files"
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.