Agent skill

bio-clinical-databases-somatic-signatures

Extracts and assigns COSMIC v3.4 mutational signatures (84 SBS / 11 DBS / 18 ID / 24 CN / 16 SV) from somatic VCFs using SigProfilerSuite, MutationalPatterns, MuSiCal mvNMF, SigNet, or HRDetect. Use when characterizing DNA-damage etiology (BRCA1/2 HRD, MMR-D, POLE, APOBEC3A, UV, tobacco, aflatoxin, 5-FU/SBS17b, platinum, colibactin SBS88), routing PARP inhibitor decisions, or auditing de novo extraction vs refit choice for cohort size.

BioTender-maxgithub.com/BioTender-maxGitHub ↗
claude-codeships scriptsNOASSERTION
Install
npx skills add BioTender-max/awesome-bio-agent-skills --skill somatic-signatures --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 4
SKILL.md size: 27 KB
Bundled scripts: yes
Path: skills/bioskills/somatic-signatures/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 135
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Extracts and assigns COSMIC v3.4 mutational signatures (84 SBS / 11 DBS / 18 ID / 24 CN / 16 SV) from somatic VCFs and maps signatures to etiology, with options for de novo extraction or refit to COSMIC depending on cohort size. Supports BRCA1/2 HRD, MMR-D, POLE, APOBEC3A, UV, tobacco, aflatoxin, 5-FU/SBS17b, platinum, colibactin SBS88 etiology and informs PARP inhibitor decisions. Uses a mix of tools including SigProfilerSuite, MutationalPatterns, MuSiCal mvNMF, SigNet, or HRDetect. Provides guidance on when to use de novo vs refit based on mutation counts and cohort size, and includes a workflow that pins versions and performs stability checks for SigProfilerExtractor."

How it works

  • The skill outlines a three-step workflow under Standard Workflow: SigProfilerSuite: install reference genome, generate a 96-context matrix from VCFs, then perform either de novo extraction with stability gates (SigProfilerExtractor) or refit to COSMIC (SigProfilerAssignment) depending on cohort size. The refit path uses SigProfilerAssignment with signature_database alignment, NNLS penalties, and plotting outputs.
  • For R users, MutationalPatterns is used for strict refit or de novo extraction via extract_signatures and fit_to_signatures.
  • HRDetect is provided as a BRCA1/2 deficiency classifier using six features and a lasso-based approach.
  • The description details tooling compatibility, version references, and example code blocks for both Python and R environments.
  • It includes a decision-tree guide for choosing between de novo vs refit, thresholds based on mutation counts per sample and cohort size, and stability criteria for de novo extraction (nmf_replicates, stability thresholds, and cosine-based criteria).

When to use it

  • Use when characterizing DNA-damage etiology (e.g., BRCA1/2 HRD, MMR-D, POLE, APOBEC3A, UV, tobacco, aflatoxin, 5-FU/SBS17b, platinum, colibactin SBS88) to inform clinical decisions or audit de novo extraction vs refit in cohorts of various sizes.
  • Use HRDetect for BRCA1/2 deficiency screening and as a BRCA-deficiency classifier.
  • Use de novo extraction for cohorts expected to harbor novel signatures; use refit for established cancer types or small cohorts; use low-mutation-count strategies like SigNet when counts are very low.

What it can touch

  • The workflow references tool usage such as SigProfilerMatrixGenerator, SigProfilerExtractor, SigProfilerAssignment, MutationalPatterns, HRDetect, SigNet, MuSiCal mvNMF. It specifies parameters like nmf_replicates=100 and cosmic_version=3.4 for stability and alignment with COSMIC v3.4.

Caveats

  • It notes compatibility constraints and version notes for several tools and emphasizes stability gates for SigProfilerExtractor (nmf_replicates=100, minimum stability requirements).
  • It cites potential limitations such as heavy compute for de novo extraction and strict refit behavior for small cohorts or single-sample analyses.
  • It addresses FFPE artifact considerations and the need for explicit FFPE handling in certain scenarios.
  • It mentions the deprecation of deconstructSigs and recommends SigProfilerAssignment or MutationalPatterns for strict refits.
From the SKILL.md

## Version Compatibility Reference examples tested with: SigProfilerMatrixGenerator 1.2+ (Bergstrom 2019), SigProfilerExtractor 1.1.24+ (Islam 2022), SigProfilerAssignment 0.1+ (Diaz-Gay 2023), MutationalPatterns 3.12+ (Manders 2022), MuSiCal 0.7+ (Liu 2024), SigNet (Serrano 2023, bioRxiv), HRDetect (Davies 2017 / Degasperi 2022 implementations), pandas 2.2+, R 4.3+. COSMIC v3.4 (September 2024) is the current reference catalog: 84 SBS, 11 DBS, 18 ID, 24 CN, 16 SV signatures. Before using code patterns, verify installed versions match. If versions differ: - Python: `pip show <package>` then `help(module.function)` to check signatures - R: `packageVersion('<pkg>')` then `?function_name` If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying. COSMIC signature naming evolves: SBS40 was split to SBS40a/b/c in v3.4 (Senkin 2024); SBS17 split to SBS17a/b (5-FU); SBS10 split to SBS10a-d (POLE/POLD1). # Somatic Mutational Signatures; Etiology, Extraction, Clinical Use **'Extract mutational signatures from this tumor cohort and identify HRD/MMR/APOBEC processes'** -> Generate 96-context (o

What's inside
Steps it walks through
  1. Version Compatibility
  2. COSMIC v3.4 Catalog: Evolution and Composition
  3. Etiology Table (Postdoc-grade)
  4. Tool Taxonomy
  5. De Novo vs Refit: The Field's Most-Contested Choice
  6. Decision Tree by Scenario
  7. Standard Workflow: SigProfilerSuite
  8. MutationalPatterns Strict Refit (R Alternative)
  9. HRDetect for BRCA1/2 Deficiency
  10. Per-Operation Failure Modes
  11. Reconciliation: When Methods Disagree
  12. Quantitative Thresholds and Conventions
  13. Common Errors
  14. Anticipated Reviewer Pushback
Ships with 3 files
  • examples/mutsig_fitting.R
  • examples/sigprofiler_analysis.py
  • usage-guide.md
More from awesome-bio-agent-skills
All skills →
About this skill
What does the bio-clinical-databases-somatic-signatures skill do?

Extracts and assigns COSMIC v3.4 mutational signatures (84 SBS / 11 DBS / 18 ID / 24 CN / 16 SV) from somatic VCFs using SigProfilerSuite, MutationalPatterns, MuSiCal mvNMF, SigNet, or HRDetect. Use when characterizing DNA-damage etiology (BRCA1/2 HRD, MMR-D, POLE, APOBEC3A, UV, tobacco, aflatoxin, 5-FU/SBS17b, platinum, colibactin SBS88), routing PARP inhibitor decisions, or auditing de novo extraction vs refit choice for cohort size.

How do I install it?

Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill somatic-signatures --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going