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