bulk-rnaseq
What it does
This tool organizes genetic sequencing data (RNA-seq) to compare genes across different samples. It ensures the data is reliable, repeatable, and that the results are statistically sound.
When to use it
- βWhen you have raw sequencing data (FASTQ files) and want to know which genes are active.
- βWhen setting up or running the `nf-core/rnaseq` program.
- βTo prepare results from tools like STAR or Salmon for later statistical analysis.
Skill link
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/bulk-rnaseq/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI want to analyze my raw RNA-seq data and find the genes that change between treatments.β
5 new skills a week. 1 minute to read.
How it works
The tool processes the raw data, aligns it to a reference genome, and counts how many RNA 'pieces' come from each gene. It also ensures the entire process is repeatable and high-quality.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Bulk RNA-seq
Overview
This skill prepares bulk RNA-seq reads and quantification output for a reproducible gene-level comparison. It owns sample validation, reads-to-counts recipes, and the count/metadata handoff; downstream statistical fitting and enrichment remain in their specialist skills.
"Defensible" means three things, applied throughout:
- Reproducible β pinned pipeline/tool versions, containers where possible, recorded parameters, fixed random seeds.
- Quality-gated β QC is inspected and acted on before, during, and after quantification, not skipped.
- Statistically sound β adequate replication, a design that matches the biology, counts handled correctly, and FDR-controlled testing.
The pipeline is: FastQC/trim β align/quant (STAR/Salmon) β counts β DE (pydeseq2) β enrichment (pathway-enrichment) β figures.
When to Use This Skill
Use this skill when the user wants to:
- Go from FASTQ files (or a sequencing run) to differentially expressed genes and pathways.
- Run or configure
nf-core/rnaseq, or align/quantify with STAR, Salmon, or featureCounts. - Turn Salmon/STAR/featureCounts output into a counts matrix ready for DESeq2/PyDESeq2.
- Design or sanity-check a bulk RNA-seq experiment (replicates, batch, strandedness) before committing compute.
- Scope an end-to-end RNA-seq analysis and decide which tools and skills to chain.
This is bulk RNA-seq (samples = biological specimens). For single-cell/nuclei data use scanpy; for the DE statistics alone use pydeseq2; for enrichment alone use pathway-enrichment.
The Pipeline at a Glance
flowchart TD
fastq["Raw FASTQ + samplesheet"] --> qc["FastQC + MultiQC"]
qc --> trim["Trim: fastp / Trim Galore"]
trim --> align["Align + quant: STAR and/or Salmon"]
align --> counts["Gene-level counts matrix"]
counts --> de["Differential expression"]
de --> enrich["Pathway / GSEA enrichment"]
de --> fig["Figures"]
enrich --> fig
nfcore["nf-core/rnaseq via nextflow skill"] -.->|"path A"| align
manual["Standalone recipes (this skill)"] -.->|"path B"| align
bridge["build_counts_matrix.py (this skill)"] -.-> counts
pydeseq2skill["pydeseq2 skill"] -.-> de
pwskill["pathway-enrichment skill"] -.-> enrich
vizskill["scientific-visualization skill"] -.-> fig
Two Upstream Paths β Pick One
The reads β counts stage can be run two ways. Both produce gene-level counts, but STAR/featureCounts and Salmon/tximport do not generally give identical or interchangeable values: assignment rules, multimapping, and effective-length corrections differ. Choose one quantification route for the entire comparison.
Use Path A β nf-core/rnaseq whenβ¦ |
Use Path B β standalone tools whenβ¦ |
|---|---|
| You want the field-standard, audited, citable pipeline with one command | You have a few samples and want to learn/inspect each step |
| Many samples, or you'll scale to HPC/cloud | No Nextflow/containers available, or a constrained environment |
| Reproducibility and a full MultiQC report matter most | You need a non-standard step the pipeline doesn't expose |
β Drive it through the nextflow skill |
β Follow references/upstream-manual.md |
When unsure, prefer Path A: nf-core/rnaseq already wires together FastQC β trimming β STAR/Salmon β quantification β tximport β MultiQC with sensible, reviewed defaults, which is the most defensible option. Path B exists for transparency and constrained setups.
Both paths converge on a gene-level counts matrix. Preserve whether counts are raw or length-scaled, the transcript-to-gene mapping release, and any offsets. Length-scaled counts must not receive a second transcript-length correction.
Setup
# This skill's glue (bridge + handoffs) β Python
uv pip install "pytximport==0.13.0" pandas numpy
# Downstream skills install their own deps:
# pydeseq2 skill -> uv pip install pydeseq2
# pathway-enrichment skill -> uv pip install gseapy gprofiler-official
# Path A (nf-core): only Nextflow + a container engine are needed β see the `nextflow` skill.
# Path B (standalone tools): install via bioconda. Pin versions for reproducibility.
conda create -n rnaseq -c conda-forge -c bioconda --strict-channel-priority \
fastqc fastp trim-galore "star=2.7.11b" "salmon=2.8.0" subread multiqc
β¦
FAQ
What does 'bulk RNA-seq' mean?
It means the analysis is done on samples containing many cell types together, like a whole tissue, rather than individual cells.
Why is reproducibility important?
It ensures that others (or yourself in the future) can exactly repeat the same analysis and get the same results, using the same tools and settings.
What's the difference between 'Path A' and 'Path B'?
Path A uses the `nf-core/rnaseq` program, which is an industry standard and more automated. Path B uses separate tools, allowing more control and inspection of each step.
Details
Original description by the author
Prepares bulk RNA-seq FASTQ, Salmon, STAR or featureCounts output for gene-level differential expression. Covers nf-core/rnaseq and standalone quantification, biological replication, strandedness, reference provenance, validated count assembly and a PyDESeq2 handoff. Use for FASTQ-to-counts analysis, nf-core/rnaseq configuration, STAR/Salmon quantification, or building a counts matrix for DESeq2.
Popularity
- GitHub stars
- 51k
- Ranking position
- #3434
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
13c-metabolic-flux
51kEstimates metabolic fluxes using carbon-13 isotope tracing data. It is useful for analyzing cellular metabolism and biochemical pathways.
adaptyv
51kDesigns protein characterization experiments using the Adaptyv API. It helps estimate costs, submit sequences, and monitor lab results.
aeon
51kPerforms machine learning tasks on time series data. It is useful for classifying, forecasting, detecting anomalies, and finding patterns in sequential data.
alphagenome
51kLooks up precomputed genomic effects for genetic variants. It provides scores and explanations to understand the impact of variants on the genome.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.