RNA-seq Analysis Pipeline Skill
Quick Start
- Scope: project-level RNA-seq workflow, not a single CLI executable
- Core stages: QC -> trimming -> alignment or pseudoalignment -> quantification -> DE -> plots
- Primary tools in this workspace:
FastQC, MultiQC, STAR, hisat2, featureCounts, Salmon, R/DESeq2
When To Use This Tool
- Build a complete bulk RNA-seq analysis workflow from FASTQ files to biological interpretation.
- Choose between alignment-based and alignment-free quantification paths.
- Standardize project structure, checkpoints, and expected deliverables for an RNA-seq study.
- Review an existing RNA-seq pipeline for missing QC, counting, or DE steps.
Common Patterns
# 1) Alignment-based workflow
fastqc raw/*.fastq.gz -o qc/raw/
STAR --runMode genomeGenerate --genomeDir genome_index --genomeFastaFiles genome.fa --sjdbGTFfile genes.gtf
STAR --genomeDir genome_index --readFilesIn sample_R1.fastq.gz sample_R2.fastq.gz --readFilesCommand zcat --outSAMtype BAM SortedByCoordinate
featureCounts -a genes.gtf -o counts.txt sample.bam
# 2) Lightweight quantification workflow
fastqc raw/*.fastq.gz -o qc/raw/
salmon index -t transcripts.fa -i transcriptome_index
salmon quant -i transcriptome_index -l A -1 sample_R1.fastq.gz -2 sample_R2.fastq.gz -o sample_quant
# 3) Differential expression handoff
library(DESeq2)
dds <- DESeqDataSetFromMatrix(countData = counts, colData = coldata, design = ~ condition)
dds <- DESeq(dds)
res <- results(dds)
Recommended Workflow
- Start with sample metadata, contrasts, reference assembly, and annotation versions fixed in writing.
- Run raw-read QC first and decide whether trimming is actually necessary.
- Choose one quantification branch deliberately: splice-aware alignment plus counting, or transcript-level pseudoalignment.
- Build a count matrix or abundance table only after confirming library strandedness and annotation compatibility.
- Run DE with proper biological replicates, then produce PCA, heatmap, MA, and volcano summaries.
- Finish with enrichment or pathway analysis only after validating the upstream statistical model.
Guardrails
- Never mix genome assembly and annotation releases.
- Strandedness mistakes will corrupt counts; verify it before cohort-scale quantification.
- Differential expression without biological replication is not a real DE workflow.
- Batch effects, low-count filtering, and contrast specification should be decided before interpreting significant genes.
- This meta-skill should delegate command-level details to the individual tool skills instead of duplicating every CLI option inline.
1---2name: rnaseq-pipeline3description: Use when building or reviewing an end-to-end RNA-seq workflow from raw reads through quantification, differential expression, and basic interpretation.4---5
6# RNA-seq Analysis Pipeline Skill
7
8## Quick Start
9
10- **Scope:** project-level RNA-seq workflow, not a single CLI executable
11- **Core stages:** QC -> trimming -> alignment or pseudoalignment -> quantification -> DE -> plots
12- **Primary tools in this workspace:** `FastQC`, `MultiQC`, `STAR`, `hisat2`, `featureCounts`, `Salmon`, `R/DESeq2`
13
14## When To Use This Tool
15
16- Build a complete bulk RNA-seq analysis workflow from FASTQ files to biological interpretation.
17- Choose between alignment-based and alignment-free quantification paths.
18- Standardize project structure, checkpoints, and expected deliverables for an RNA-seq study.
19- Review an existing RNA-seq pipeline for missing QC, counting, or DE steps.
20
21## Common Patterns
22
23```bash
24# 1) Alignment-based workflow
25fastqc raw/*.fastq.gz -o qc/raw/
26STAR --runMode genomeGenerate --genomeDir genome_index --genomeFastaFiles genome.fa --sjdbGTFfile genes.gtf
27STAR --genomeDir genome_index --readFilesIn sample_R1.fastq.gz sample_R2.fastq.gz --readFilesCommand zcat --outSAMtype BAM SortedByCoordinate
28featureCounts -a genes.gtf -o counts.txt sample.bam
29```
30
31```bash
32# 2) Lightweight quantification workflow
33fastqc raw/*.fastq.gz -o qc/raw/
34salmon index -t transcripts.fa -i transcriptome_index
35salmon quant -i transcriptome_index -l A -1 sample_R1.fastq.gz -2 sample_R2.fastq.gz -o sample_quant
36```
37
38```r
39# 3) Differential expression handoff
40library(DESeq2)
41dds <- DESeqDataSetFromMatrix(countData = counts, colData = coldata, design = ~ condition)
42dds <- DESeq(dds)
43res <- results(dds)
44```
45
46## Recommended Workflow
47
481. Start with sample metadata, contrasts, reference assembly, and annotation versions fixed in writing.
492. Run raw-read QC first and decide whether trimming is actually necessary.
503. Choose one quantification branch deliberately: splice-aware alignment plus counting, or transcript-level pseudoalignment.
514. Build a count matrix or abundance table only after confirming library strandedness and annotation compatibility.
525. Run DE with proper biological replicates, then produce PCA, heatmap, MA, and volcano summaries.
536. Finish with enrichment or pathway analysis only after validating the upstream statistical model.
54
55## Guardrails
56
57- Never mix genome assembly and annotation releases.
58- Strandedness mistakes will corrupt counts; verify it before cohort-scale quantification.
59- Differential expression without biological replication is not a real DE workflow.
60- Batch effects, low-count filtering, and contrast specification should be decided before interpreting significant genes.
61- This meta-skill should delegate command-level details to the individual tool skills instead of duplicating every CLI option inline.