Featurecounts Rna Counting
jaechang-hits/SciAgent-Skills
Counts RNA-seq reads overlapping GTF gene features. An agent skill from jaechang-hits/SciAgent-Skills.
Count reads per gene from aligned BAM files using Subread featureCounts.
$ npx skills add GPTomics/bioSkills --skill bio-rna-quantification-featurecounts-counting -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install GPTomics/bioSkills bio-rna-quantification-featurecounts-counting --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/rna-quantification/featurecounts-counting .claude/skills/bio-rna-quantification-featurecounts-counting && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "bio-rna-quantification-featurecounts-counting" agent skill from https://github.com/GPTomics/bioSkills/tree/main/rna-quantification/featurecounts-counting into .claude/skills/bio-rna-quantification-featurecounts-counting/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bio-rna-quantification-featurecounts-counting", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/GPTomics/bioSkills/tree/main/rna-quantification/featurecounts-countingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add GPTomics/bioSkills --skill bio-rna-quantification-featurecounts-counting -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install GPTomics/bioSkills bio-rna-quantification-featurecounts-counting --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/rna-quantification/featurecounts-counting .agents/skills/bio-rna-quantification-featurecounts-counting && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "bio-rna-quantification-featurecounts-counting" agent skill from https://github.com/GPTomics/bioSkills/tree/main/rna-quantification/featurecounts-counting into .agents/skills/bio-rna-quantification-featurecounts-counting/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bio-rna-quantification-featurecounts-counting", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add GPTomics/bioSkills --skill bio-rna-quantification-featurecounts-counting -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install GPTomics/bioSkills bio-rna-quantification-featurecounts-counting --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/rna-quantification/featurecounts-counting .cursor/skills/bio-rna-quantification-featurecounts-counting && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "bio-rna-quantification-featurecounts-counting" agent skill from https://github.com/GPTomics/bioSkills/tree/main/rna-quantification/featurecounts-counting into .cursor/skills/bio-rna-quantification-featurecounts-counting/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bio-rna-quantification-featurecounts-counting", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/GPTomics/bioSkills.git --path rna-quantification/featurecounts-counting--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add GPTomics/bioSkills --skill bio-rna-quantification-featurecounts-counting -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install GPTomics/bioSkills bio-rna-quantification-featurecounts-counting --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/rna-quantification/featurecounts-counting .gemini/skills/bio-rna-quantification-featurecounts-counting && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "bio-rna-quantification-featurecounts-counting" agent skill from https://github.com/GPTomics/bioSkills/tree/main/rna-quantification/featurecounts-counting into .gemini/skills/bio-rna-quantification-featurecounts-counting/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bio-rna-quantification-featurecounts-counting", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install GPTomics/bioSkills bio-rna-quantification-featurecounts-countingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add GPTomics/bioSkills --skill bio-rna-quantification-featurecounts-counting -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .github/skills && cp -r skills-src/rna-quantification/featurecounts-counting .github/skills/bio-rna-quantification-featurecounts-counting && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "bio-rna-quantification-featurecounts-counting" agent skill from https://github.com/GPTomics/bioSkills/tree/main/rna-quantification/featurecounts-counting into .github/skills/bio-rna-quantification-featurecounts-counting/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bio-rna-quantification-featurecounts-counting", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add GPTomics/bioSkills --skill bio-rna-quantification-featurecounts-counting -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install GPTomics/bioSkills bio-rna-quantification-featurecounts-counting --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/rna-quantification/featurecounts-counting .opencode/skills/bio-rna-quantification-featurecounts-counting && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "bio-rna-quantification-featurecounts-counting" agent skill from https://github.com/GPTomics/bioSkills/tree/main/rna-quantification/featurecounts-counting into .opencode/skills/bio-rna-quantification-featurecounts-counting/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "bio-rna-quantification-featurecounts-counting", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
bio-rna-quantification-featurecounts-countingCount reads per gene from aligned BAM files using Subread featureCounts.
Bio Rna Quantification Featurecounts Counting is an agent skill from GPTomics/bioSkills. Count reads per gene from aligned BAM files using Subread featureCounts. Use when turning STAR/HISAT2 BAMs into a gene-level count matrix for DESeq2/edgeR, deciding library strandedness, handling paired-end fragment counting, choosing how to treat multi-mapping and multi-overlapping reads, or diagnosing a low assignment rate from the summary file.
Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `examples/count_genes.sh`, `examples/process_counts.py` and `usage-guide.md`).
The repository describes itself as: a set of SKILLS.md for doing bioinformatics with agents like claude code. The licence is MIT.
Read from SKILL.md and the folder at commit d91ed3d. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (Shell and Python), which the agent can run.
Shell commands in SKILL.md call:
pipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Bio Rna Quantification Featurecounts Counting loads about 2.3k tokens when it runs. Until then it costs about 99 tokens; SKILL.md has 820 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from GPTomics/bioSkills at commit d91ed3d, republished under its MIT licence (© GPTomics). 820 words, ~2,282 tokens.
.claude/skills/bio-rna-quantification-featurecounts-counting/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.Reference examples tested with: Subread 2.0+, STAR 2.7.11+, HISAT2 2.2.1+, DESeq2 1.42+, edgeR 4.0+, pandas 2.2+
Before using code patterns, verify installed versions match. If versions differ:
<tool> --version then <tool> --help to confirm flagspip show <package> then help(module.function) to check signaturespackageVersion('<pkg>') then ?function_name to verify parametersIf code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
"Count reads per gene from my BAM files" -> Assign each aligned read to at most one gene by overlap with a GTF, discarding ambiguous reads, to produce an integer gene-by-sample matrix for differential expression.
featureCounts -a genes.gtf -o counts.txt sample1.bam sample2.bamfeatureCounts is bookkeeping, not inference: it tallies reads to genes and discards anything ambiguous. That is correct for gene-level DE, where almost every read's gene of origin is unambiguous even when its isoform is not. The two settings that silently corrupt the matrix if wrong are strandedness (-s) and, for paired-end data, fragment counting (--countReadPairs).
# Multiple samples in one run -> a single aligned matrix (recommended)
featureCounts -a annotation.gtf -o counts.txt sample1.bam sample2.bam sample3.bam
# Defaults: -t exon -g gene_id (count reads over exons, aggregate by gene)-s) is the load-bearing setting-s | Meaning | Read 1 |
|---|---|---|
| 0 | Unstranded | strand ignored |
| 1 | Forward stranded | read 1 is sense |
| 2 | Reverse stranded | read 1 is antisense; read 2 is sense |
The dominant chemistry, dUTP / Illumina TruSeq Stranded / NEBNext Directional, is reverse, -s 2. Setting the wrong strand does not error; it silently destroys the matrix. For a truly stranded library, the correct -s assigns ~80-90% of reads while the opposite setting collapses to ~5-20% (counting only antisense background). Do not trust the kit name; determine it empirically:
# Method A: RSeQC reports the strand pattern fractions
infer_experiment.py -r genes.bed -i sample.bam
# Method B: run all three and pick the one that maximizes Assigned in the .summary
for s in 0 1 2; do featureCounts -s $s -a annotation.gtf -o counts_s$s.txt sample.bam; doneIf -s 1 and -s 2 give wildly different Assigned fractions, the data are stranded (use the higher); if both are roughly equal and about half of -s 0, the data are unstranded. STAR --quantMode GeneCounts provides a free cross-check (see below).
# Subread >= 2.0.2: -p only declares paired input; --countReadPairs is REQUIRED to count fragments
featureCounts -p --countReadPairs -a annotation.gtf -o counts.txt *.bam
# Stricter: require both ends mapped, exclude chimeric/discordant pairs
featureCounts -p --countReadPairs -B -C -a annotation.gtf -o counts.txt *.bamOmitting --countReadPairs on paired-end data counts each mate separately, roughly doubling counts and breaking the count model. -B requires both ends aligned; -C excludes pairs mapping across chromosomes or in the wrong orientation.
# Default (recommended for gene-level DE): discard both -> uniquely, unambiguously assigned reads only
featureCounts -a annotation.gtf -o counts.txt *.bam
# Count multimappers fractionally (1/N) or fully (1 each) -- NOT recommended for DE
featureCounts -M --fraction -a annotation.gtf -o counts.txt *.bam
featureCounts -M -a annotation.gtf -o counts.txt *.bam
# Count reads overlapping >1 gene in all of them
featureCounts -O -a annotation.gtf -o counts.txt *.bamDiscarding multimappers is the right default for gene-level DE. -M --fraction looks principled but biases exactly the genes where resolution matters: a read truly from gene A that also maps to paralog A' is split 0.5/0.5, diluting both. This is the regime where alignment-free EM quantifiers (rna-quantification/alignment-free-quant) outperform featureCounts, because they reassign by full likelihood rather than a flat split.
featureCounts -Q 10 -a annotation.gtf -o counts.txt *.bam # min MAPQ (aligner-specific scale)
featureCounts --primary -a annotation.gtf -o counts.txt *.bam # primary alignments only
featureCounts -t CDS -g gene_id -a annotation.gtf -o counts.txt *.bam # count CDS instead of exon-Q thresholds mapping quality, but MAPQ conventions are aligner-specific (STAR assigns 255 to unique reads, low values to multimappers), so confirm the scheme before choosing a cutoff. Do NOT add --ignoreDup for standard RNA-seq: high duplication is expected from highly expressed genes, and position-based deduplication discards real signal. Deduplicate only with UMIs. For exon-level usage testing (DEXSeq), use a flattened annotation rather than gene-level counting (alternative-splicing/isoform-switching).
counts.txt: Geneid Chr Start End Strand Length sample1.bam sample2.bam ...
counts.txt.summary: Status sample1.bam sample2.bam
Assigned 1523456 1678234
Unassigned_NoFeatures 234567 245678Reading the .summary is the primary QC step. A good poly-A library assigns ~70-90% of mapped reads (rRNA-depletion libraries run lower).
| Dominant unassigned category | Likely cause | Action |
|---|---|---|
| Unassigned_NoFeatures high | GTF/genome mismatch (chr naming 1 vs chr1, wrong release), DNA contamination | Match GTF release and chromosome naming to the BAM |
| Unassigned_MultiMapping high | rRNA carryover or repetitive content | Check rRNA depletion; inspect with FastQ Screen |
| Unassigned_Ambiguity high | Overlapping/nested gene models or wrong feature level | Expected in gene-dense regions; reconsider -O/feature type |
| Assigned low, others spread thin | Wrong strandedness | Re-test -s (see Decision 1) |
If aligned with STAR --quantMode GeneCounts, ReadsPerGene.out.tab gives a free independent count: column 2 = unstranded (≈ -s 0), column 3 = forward (≈ -s 1), column 4 = reverse (≈ -s 2). The larger of columns 3 vs 4 reveals the strand directly, and the per-gene counts should track featureCounts at the matching -s.
cut -f1,7- counts.txt | tail -n +2 > count_matrix.txt # drop the 6 annotation columnsimport pandas as pd
counts = pd.read_csv('counts.txt', sep='\t', comment='#')
mat = counts.set_index('Geneid').iloc[:, 5:]
mat.columns = [c.replace('.bam', '') for c in mat.columns]
mat.to_csv('count_matrix.csv')| Symptom | Cause | Fix |
|---|---|---|
| Assigned ~half of expected, no error | Wrong -s, or paired-end without --countReadPairs (double-counting) | Determine strand empirically; add --countReadPairs for paired-end |
| Near-zero counts for known genes | gene_id attribute or feature type mismatch with the GTF | Confirm -t/-g match the annotation; check the GTF attribute names |
| Counts much higher than read count | Paired-end mates counted separately | Add -p --countReadPairs |
| Inflated correlated paralog counts | -M/-O fractional counting enabled | Drop -M/-O for DE; use alignment-free EM for paralog-heavy genes |
Low Assigned across all -s values | GTF does not match the aligned genome | Use the GTF release and contig names matching the alignment reference |
© GPTomics, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files in rna-quantification/featurecounts-counting of GPTomics/bioSkills.
Open the folder on GitHubat commit d91ed3d
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in GPTomics/bioSkills, which our catalogue first saw on October 7, 2026.
Bio Rna Quantification Featurecounts Counting next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Bio Rna Quantification Featurecounts Counting this skillGPTomics/bioSkills | 1.2k | 1 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Featurecounts Rna Countingjaechang-hits/SciAgent-Skills | 371 | 1 repos | ~3.7k | Automated safety check: Notes | GPL-3.0 | |
| Salmon Rna Quantificationjaechang-hits/SciAgent-Skills | 371 | 1 repos | ~4k | Automated safety check: Pass | GPL-3.0 | |
| Ccs Alignthedotmack/claude-mem | 99k | — | ~6.1k | Automated safety check: Pass | Apache-2.0 | |
| Star Rna Seq Alignerjaechang-hits/SciAgent-Skills | 371 | 1 repos | ~4.1k | Automated safety check: Pass | MIT | |
| Gene Databasedavila7/claude-code-templates | 32k | 10 repos | ~1.6k | Automated safety check: Pass | MIT |
jaechang-hits/SciAgent-Skills
Counts RNA-seq reads overlapping GTF gene features. An agent skill from jaechang-hits/SciAgent-Skills.
jaechang-hits/SciAgent-Skills
Ultra-fast RNA-seq transcript/gene quantification via quasi-mapping (no BAM).
thedotmack/claude-mem
Run the CCS Align seat's hourly breathing cycle — prove the local claude-mem worker is healthy, pull needle observations through search → timeline → getobservations, land them in a seat-owned middle…
jaechang-hits/SciAgent-Skills
Splice-aware RNA-seq aligner producing sorted BAM and splice junction tables.
davila7/claude-code-templates
Query NCBI Gene via E-utilities/Datasets API. An agent skill from davila7/claude-code-templates.
thedaviddias/Front-End-Checklist
A skill your agent uses when applies to key landing pages, blog posts, product pages, and any page targeting competitive queries.
GPTomics/bioSkills
Read, write, and convert multiple sequence alignment files using Biopython Bio.AlignIO.
GPTomics/bioSkills
Installs the bioSkills collection of 425 bioinformatics skills in one step, or only chosen categories, so sequencing, RNA-seq, single-cell and variant tasks get specialized help.
GPTomics/bioSkills
Write biological sequences to files (FASTA, FASTQ, GenBank, EMBL) using Biopython Bio.SeqIO.
GPTomics/bioSkills
Soft- or hard-clips PCR primer footprints from aligned amplicon BAMs so primer bases stop masquerading as confirmed reference sequence.
GPTomics/bioSkills
Filters BAM alignments by FLAG bits, mapping quality and regions with samtools view or pysam, with recipes for common keep and drop cases.
GPTomics/bioSkills
Create and use BAI/CSI indices for BAM/CRAM files using samtools and pysam.
Count reads per gene from aligned BAM files using Subread featureCounts. Bio Rna Quantification Featurecounts Counting is an agent skill from GPTomics/bioSkills. Count reads per gene from aligned BAM files using Subread featureCounts.
Bio Rna Quantification Featurecounts Counting fits situations like: turning STAR/HISAT2 BAMs into a gene-level count matrix for DESeq2/edgeR; deciding library strandedness; handling paired-end fragment counting; choosing how to treat multi-mapping and multi-overlapping reads.
Run `npx skills add GPTomics/bioSkills --skill bio-rna-quantification-featurecounts-counting -a claude-code`. Or copy the skill folder (rna-quantification/featurecounts-counting in GPTomics/bioSkills) into .claude/skills/bio-rna-quantification-featurecounts-counting in your project. Claude Code loads it when a task matches its description.
Run `npx skills add GPTomics/bioSkills --skill bio-rna-quantification-featurecounts-counting -a codex`. Or copy the skill folder (rna-quantification/featurecounts-counting in GPTomics/bioSkills) into .agents/skills/bio-rna-quantification-featurecounts-counting in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add GPTomics/bioSkills --skill bio-rna-quantification-featurecounts-counting -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bio-rna-quantification-featurecounts-counting, .gemini/skills/bio-rna-quantification-featurecounts-counting, .github/skills/bio-rna-quantification-featurecounts-counting and .opencode/skills/bio-rna-quantification-featurecounts-counting in your project.
Going by SKILL.md and its folder, Bio Rna Quantification Featurecounts Counting needs a shell and Python for the scripts in its folder and the command-line tools its instructions call (pip). Our summary lists: Python 3; A Bash shell.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Bio Rna Quantification Featurecounts Counting is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.3k tokens (SKILL.md is roughly 9.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Bio Rna Quantification Featurecounts Counting: Featurecounts Rna Counting (jaechang-hits/SciAgent-Skills, 371 stars), Salmon Rna Quantification (jaechang-hits/SciAgent-Skills, 371 stars), Ccs Align (thedotmack/claude-mem, 99k stars) and Star Rna Seq Aligner (jaechang-hits/SciAgent-Skills, 371 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
GPTomics (a GitHub organization) maintains it in GPTomics/bioSkills, which has 1,217 GitHub stars. The repository holds 559 skills in this directory. The repository was last updated on August 15, 2026.
Source: GPTomics/bioSkills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.