Counts RNA-seq reads overlapping GTF gene features. Takes sorted STAR BAMs plus GTF; outputs a per-gene tab-delimited matrix across samples. Handles strandedness (0/1/2), paired-end, multi-sample batch counting in one command, and outputs assignment statistics. Use Salmon for alignment-free quantification; use featureCounts when STAR BAMs already exist.
SkillScore95Maintained
Automatic
◆Research pack
Last verified 8/24/2026
What it changes
Passed 21 of 22 test cases with the skill, and 20 of 22 without it.
Without skill91%
With skill95%
Checks it passed that the model alone missed
Includes the --countReadPairs flag
1 fixed20 passed either way1 still failing0 broke
Pass-rate lift
+5 pp
Tokens
+218%
Agent turns
0%
Response time
-5%
Model gemini-3.6-flashMeasured 8/24/2026v1 · latest is v221 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
This benchmark measured an earlier version of the skill.
See it in action
A test case the skill fixed. Same model, same prompt, with and without the skill.
Prompt
Write a terminal command to summarize read pair counts into gene counts for an unstranded paired-end RNA-seq experiment across three BAM files (sampleA.bam, sampleB.bam, sampleC.bam) using standard human GTF annotation (hg38.gtf). Output to `out/counts.txt` using 4 threads.
What was checked, without and with the skill
Checked
Without skill
With skill
Includes -s 0 to specify unstranded counting
Passed
Passed
Includes the -p flag
Passed
Passed
Includes the --countReadPairs flag
Missed
Passed
case-05 · gemini-3.6-flash · 8/24/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md371 linessingle file
featureCounts — RNA-seq Read Counting
Overview
featureCounts (part of the Subread package) assigns sequencing reads in BAM files to genomic features defined in a GTF/GFF annotation. It counts how many reads overlap each gene (or exon, intron, or custom feature), producing a gene × sample count matrix suitable for differential expression analysis with DESeq2 or edgeR. featureCounts processes multiple BAM files in a single command, reporting read assignment statistics (assigned, unassigned by category) alongside the count matrix. It is the standard counting step after STAR alignment in RNA-seq pipelines.
When to Use
Generating gene-level count matrices from STAR-aligned BAM files for DESeq2 or edgeR
Counting reads from multiple samples simultaneously in a single featureCounts command
Handling stranded RNA-seq libraries where sense/antisense assignment matters
Producing exon-level or custom-feature counts (e.g., for splicing analysis with DEXSeq)
Verifying strandedness of an RNA-seq library when protocol documentation is unavailable
Use Salmon instead when no BAM file exists and fast pseudoalignment is preferred
Use HTSeq-count as an alternative with slower but more flexible counting modes
Input: Sorted BAM files from STAR or HISAT2, plus a matching GTF annotation file
Check before installing: The tool may already be available in the current environment (e.g., inside a pixi / conda env). Run command -v featureCounts first and skip the install commands below if it returns a path. When running inside a pixi project, invoke the tool via pixi run featureCounts rather than bare featureCounts.