bulkrna-geneid-mapping
БесплатноБез исполняемых скриптовНе проверенLoad when converting gene identifiers between Ensembl, Entrez, and HGNC symbol in a bulk RNA-seq count matrix. Skip if the input is already in the desired…
от mdbabumiamssm★ 36 звёзд на GitHubОб этом скилле
bulkrna-geneid-mapping
When to use
Run between counting and downstream analysis when the gene identifiers
in your count matrix don't match the namespace of your downstream tool
(e.g. STARsolo gives Ensembl IDs but GSEA wants HGNC symbols).
Currently supports Ensembl ↔ Entrez ↔ HGNC symbol for human and mouse
via built-in tables, with optional mygene API enrichment. UniProt is
not supported — feed via --mapping-file if needed.
Inputs & Outputs
| Input | Format | Required |
|---|---|---|
| Count matrix | .csv (gene id col + sample count cols) |
yes (or --demo) |
| Custom mapping | --mapping-file TSV |
optional, overrides built-ins |
| Output | Path | Notes |
|---|---|---|
| Mapped matrix | tables/mapped_counts.csv |
same shape, gene column rewritten |
| Mapping table | tables/mapping_table.csv |
original_id → target_id audit |
| Unmapped IDs | tables/unmapped_genes.csv |
original IDs that couldn't be resolved |
| Report | report.md + result.json |
summary keys: n_original_genes, n_mapped, n_unmapped, pct_mapped, n_duplicates_resolved, duplicate_strategy, n_final_genes, from_type, to_type, species |
Flow
- Load count matrix.
- Strip Ensembl version suffixes (
bulkrna_geneid_mapping.py:78:ENSG00000141510.12 → ENSG00000141510). - Look up each ID in the built-in mapping table; fall back to the mygene API if available (
:88warns and skips API path ifmygenenot importable). - Resolve duplicate-target collisions per
--on-duplicate(sum/first/drop). - Write
tables/mapped_counts.csv,tables/mapping_table.csv,tables/unmapped_genes.csv.
Gotchas
- mygene API is opt-in via package install, not a CLI flag.
bulkrna_geneid_mapping.py:88falls back silently whenmygeneis not importable, leaving you with built-in-table coverage only. The summary dict does not record whether the API was used; the only signal is the warning log line and thepct_mappedvalue (built-in tables cover ~20 well-known cancer-relevant genes — anything substantially higher implies the API ran). --from/--toonly acceptensembl,entrez,symbol(bulkrna_geneid_mapping.py:271-274). UniProt and other namespaces are not in the choices list and will fail at argparse. If you need UniProt, supply a custom--mapping-fileTSV.- Built-in tables cover human + mouse only (
--specieschoices at:275). Other organisms fail with empty mappings ifmygeneisn't installed; either installmygeneor supply--mapping-file. - Many-to-one collapses follow
--on-duplicate(defaultsum). Default sums read counts across genes mapping to the same target symbol — meaningful for paralog families but wrong if you wanted per-isoform tracking. Choosefirstto take the first hit, ordropto keep only unique mappings. The number resolved is inresult.json["n_duplicates_resolved"]. - Ensembl version stripping is unconditional (
:78). If your downstream tool requires the version suffix (rare), this skill silently drops it.
Key CLI
python omicsclaw.py run bulkrna-geneid-mapping --demo
python omicsclaw.py run bulkrna-geneid-mapping \
--input counts.csv --output results/ \
--from ensembl --to symbol --species human
python omicsclaw.py run bulkrna-geneid-mapping \
--input counts.csv --output results/ \
--from ensembl --to symbol --on-duplicate first
See also
references/parameters.md— every CLI flag and tuning hintreferences/methodology.md— built-in tables, mygene fallback, version-suffix strippingreferences/output_contract.md— exact output directory layout- Adjacent skills:
bulkrna-qc(run before to inspect raw IDs),bulkrna-de(downstream — DE expects whatever ID system the rest of your pipeline uses),bulkrna-enrichment(downstream — enrichment requires HGNC symbols or Entrez IDs in most cases)
Установить bulkrna-geneid-mapping в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл bulkrna-geneid-mapping?
Load when converting gene identifiers between Ensembl, Entrez, and HGNC symbol in a bulk RNA-seq count matrix. Skip if the input is already in the desired identifier system, for organisms outside human/mouse, or for non-bulk-counts inputs.
Как установить скилл bulkrna-geneid-mapping?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bulkrna-geneid-mapping запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic