ngs-read-preprocessing
Skill4 starsChanged 12 days agoMITView on GitHub
Adapter trimming, quality filtering, and per-sample QC reporting with fastp.
In this repository56 other files it gives its agents.
- bioinformatics-env-setupSkill
- design-thermostable-mutationsSkill
- download-gdcSkill
- download-geoSkill
- download-sraSkill
- source-summarizerSkill
- genome-alignment-qcSkill
- genome-read-alignmentSkill
- genome-variant-annotationSkill
- genome-variant-callingSkill
- genome-variant-filteringSkill
- metagenome-assemblySkill
- metagenome-binningSkill
- metagenome-functional-profilingSkill
- metagenome-host-removalSkill
- metagenome-taxonomic-profilingSkill
- ncbi-eutilities-assistantSkill
- ngs-quality-controlSkill
- paper-to-briefSkill
- predict-protein-heat-stabilitySkill
- researchSkill
- rnaseq-alignment-qcSkill
- rnaseq-differential-expressionSkill
- rnaseq-functional-enrichmentSkill
- rnaseq-read-alignmentSkill
- rnaseq-read-countingSkill
- rnaseq-transcript-quantificationSkill
- rpsblast-assistantSkill
- scrnaseq-cellranger-countSkill
- scrnaseq-cell-type-annotationSkill
- scrnaseq-clusteringSkill
- scrnaseq-differential-expressionSkill
- scrnaseq-integrationSkill
- scrnaseq-quality-controlSkill
- scrnaseq-trajectory-analysisSkill
- search-enaSkill
- search-geoSkill
- search-gsaSkill
- search-ncbi-datasetsSkill
- search-sraSkill
- stat-analyze-distributionSkill
- stat-assess-data-qualitySkill
- stat-bayesian-estimationSkill
- stat-cluster-samplesSkill
- stat-compare-multiple-groupsSkill
- stat-compare-two-groupsSkill
- stat-fit-glmSkill
- stat-fit-linear-modelSkill
- stat-learn-bayesian-networkSkill
- stat-logistic-regressionSkill
- stat-nonlinear-embeddingSkill
- stat-pairwise-correlationSkill
- stat-pcaSkill
- stat-survival-analysisSkill
- structured-intelligence-skill-creatorSkill
- <skill-id>Skill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Run fastp with adapter auto-detection (or user-specified adapter sequences if provided).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill: ngs-read-preprocessing
Use When
- The user wants to trim adapters from raw sequencing reads.
- The user needs to filter low-quality reads or bases before downstream alignment.
- The user wants to generate clean FASTQ files suitable for alignment or assembly.
- The user needs a per-sample HTML QC report showing before/after statistics.
- The user wants to perform polyG or polyX tail trimming for NextSeq/NovaSeq platforms.
- The user needs to apply minimum read length filtering after trimming.
Inputs
- Required:
- Input FASTQ R1 (
-i FILE) — single-end read file or forward reads for paired-end.
- Input FASTQ R1 (
- Optional:
- Input FASTQ R2 (
-I FILE) — reverse reads for paired-end sequencing. --outdir DIR— Output directory (default:fastp_results).--threads N— Number of worker threads (default: 4).--min-qual N— Minimum qualified quality phred value for sliding window filtering (default: 15).--min-len N— Minimum read length after trimming (default: 36 bp).--polyg— Enable polyG tail trimming (recommended for NextSeq/NovaSeq two-color chemistry).- Adapter sequences — auto-detected by default; user may supply explicit sequences via additional fastp flags.
- Additional fastp flags passed through as extra arguments.
- Input FASTQ R2 (
Workflow
- Validate that input FASTQ files exist and are readable.
- Detect single-end vs. paired-end mode from the provided inputs (
-ionly vs.-iand-I). - Run fastp with adapter auto-detection (or user-specified adapter sequences if provided).
- Apply quality filtering using a sliding window approach (default: Q15 qualified quality threshold).
- Apply length filtering to discard reads shorter than the minimum length (default: 36 bp).
- Enable polyG tail trimming for NextSeq/NovaSeq platforms if
--polygis specified. - Generate an HTML report and JSON statistics file with detailed before/after metrics.
- Report summary: reads before/after filtering, bases before/after, Q20/Q30 rates, and adapter trimming rate.
Output Contract
- Cleaned FASTQ file(s) — Trimmed and filtered reads (
<sample>_trimmed.fastq.gz; R1 and R2 for paired-end). - fastp HTML report — Per-sample visual QC summary (
<sample>_fastp.html). - fastp JSON report — Machine-readable statistics (
<sample>_fastp.json). - Summary statistics — Reads in/out, bases in/out, Q20/Q30 rates before and after filtering, adapter detection/trimming rate.
Limits
- fastp must be installed and available on
$PATH. - fastp is single-threaded by default; use
-w/--threadsto enable multi-threading (up to 16 threads). - This skill does not perform read alignment; use
genome-read-alignmentorrnaseq-read-alignmentfor that purpose. - This skill does not aggregate QC across multiple samples; use
ngs-quality-controlfor multi-sample QC aggregation with MultiQC. - UMI processing is supported by fastp but is not enabled by default; pass
--umiand related flags as extra arguments if needed. - Interleaved FASTQ input is not supported by the wrapper script; use fastp directly for interleaved input.
- Common failure cases:
- Paired-end FASTQ files with mismatched read counts causing fastp to abort.
- Incorrect adapter sequences provided, leading to untrimmed reads.
- Disk full during output writing, producing truncated FASTQ files.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

