Agent skill

Bio Clinical Databases Somatic Signatures

by GPTomics in GPTomics/bioSkills

Extracts and assigns COSMIC v3.4 mutational signatures (86 SBS / 11 DBS / 18 ID / 21 CN / 16 SV) from somatic VCFs using SigProfilerSuite, MutationalPatterns, MuSiCal mvNMF, SigNet, or HRDetect.

MITAuto-check passedResearch & Science

Install Bio Clinical Databases Somatic Signatures

skills CLI
$ npx skills add GPTomics/bioSkills --skill bio-clinical-databases-somatic-signatures -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install GPTomics/bioSkills bio-clinical-databases-somatic-signatures --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/GPTomics/bioSkills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/clinical-databases/somatic-signatures .claude/skills/bio-clinical-databases-somatic-signatures && rm -rf skills-src

Use ~/.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/

Facts

Skill name
bio-clinical-databases-somatic-signatures
GitHub stars
1.2k
Used in
2 other repos
Token cost
~6.8k tokens
SKILL.md length
2,710 words
Files
4
Skills in repo
559
Repo updated
First seen
Licence
MIT

At a glance

Extracts and assigns COSMIC v3.4 mutational signatures (86 SBS / 11 DBS / 18 ID / 21 CN / 16 SV) from somatic VCFs using SigProfilerSuite, MutationalPatterns, MuSiCal mvNMF, SigNet, or HRDetect.

  • Characterizing DNA-damage etiology (BRCA1/2 HRD
  • SKILL.md covers Version Compatibility, COSMIC v3.4 Catalog: Evolution…, Etiology Table (Postdoc-grade) and Tool Taxonomy, plus 12 more sections
  • Runs R and Python scripts from its folder; calls pip; reaches cancer.sanger.ac.uk
  • Colibactin SBS88)

What it does

Bio Clinical Databases Somatic Signatures is an agent skill from GPTomics/bioSkills. Extracts and assigns COSMIC v3.4 mutational signatures (86 SBS / 11 DBS / 18 ID / 21 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.

Its SKILL.md is about 6.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `examples/sigprofiler_analysis.py` and `usage-guide.md`).

It sits in Research & Science. It works with Python. The repository describes itself as: a set of SKILLS.md for doing bioinformatics with agents like claude code. The licence is MIT.

When your agent uses it

  • Characterizing DNA-damage etiology (BRCA1/2 HRD
  • Colibactin SBS88)
  • Routing PARP inhibitor decisions
  • Auditing de novo extraction vs refit choice for cohort size

Example prompts

  • “Use the bio-clinical-databases-somatic-signatures skill to extract and assigns COSMIC v3.4 mutational signatures (86 SBS / 11 DBS / 18 ID / 21 CN /…”
  • “/bio-clinical-databases-somatic-signatures”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit d91ed3d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Ships script files (R and Python), which the agent can run.

    Shell commands in SKILL.md call:

    • pip

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • cancer.sanger.ac.uk

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bio Clinical Databases Somatic Signatures loads about 6.8k tokens when it runs. Until then it costs about 120 tokens; SKILL.md has 2,710 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~120
When it runs · the whole SKILL.md, loaded when a task matches
~6.8k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from GPTomics/bioSkills at commit d91ed3d, republished under its MIT licence (© GPTomics). 2,710 words, ~6,823 tokens.

Download SKILL.mdSave it as .claude/skills/bio-clinical-databases-somatic-signatures/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
bio-clinical-databases-somatic-signatures
description
Extracts and assigns COSMIC v3.4 mutational signatures (86 SBS / 11 DBS / 18 ID / 21 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.
tool_type
mixed
primary_tool
SigProfilerAssignment

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+ (Jin 2024), SigNet (Serrano 2023, bioRxiv), HRDetect (Davies 2017 / Degasperi 2022 implementations), pandas 2.2+, R 4.3+. COSMIC v3.4 (2023, COSMIC v98): 86 SBS, 11 DBS, 18 ID, 21 CN, 16 SV signatures (v3.6 is the current catalog as of 2026).

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 (or DBS/ID/CN/SV) matrix from VCF; choose de novo extraction (NMF) vs refit-to-COSMIC by cohort size; map dominant signatures to etiology; flag clinical actionability.

  • Python (recommended): SigProfilerMatrixGenerator -> SigProfilerExtractor (de novo) or SigProfilerAssignment (refit)
  • R alternative: MutationalPatterns::fit_to_signatures() (strict refit) or extract_signatures() (NMF de novo)
  • Python (mvNMF for non-uniqueness): MuSiCal (Jin 2024 Nat Genet)
  • Python (deep learning low-mutation count): SigNet (Serrano 2023)
  • R (HRD-specific): HRDetect (Davies 2017 Nat Med); the 6-feature BRCA-deficiency classifier

COSMIC v3.4 Catalog: Evolution and Composition

ClassCountEncoding
SBS (Single Base Substitutions)8696 trinucleotide contexts (6 substitution types x 16 trinucleotides)
DBS (Doublet Base Substitutions)1178 strand-agnostic doublet classes (Bergstrom 2019)
ID (Insertion/Deletion)1883 categories (indel length x repeat context x microhomology)
CN (Copy Number)2148 channels (total CN x heterozygosity x segment length; Steele 2022 Nature)
SV (Structural Variants)1632 channels (cluster x length x type)

Recent splits to know:

  • SBS40 -> SBS40a / SBS40b / SBS40c (Senkin 2024 Nature): pan-cancer active (40a); RCC-specific (40b/c).
  • SBS17 -> SBS17a (T>C uncertain) / SBS17b (T>G in CTT, 5-FU) (Christensen 2019 Nat Commun; Pich 2019 Nat Genet).
  • SBS7 -> SBS7a / 7b / 7c / 7d (UV photoproduct chemistry; Alexandrov 2020).
  • SBS10 -> SBS10a (POLE P286R) / 10b (POLE V411L) / 10c / 10d (POLD1) (Hodel 2020 Mol Cell).

Etiology Table (Postdoc-grade)

SignatureEtiologyClinical implicationNotes
SBS1Spontaneous 5mC deamination at CpGAge-correlated; mitotic-rate biomarkerClock-like
SBS5UNKNOWN, clock-like; age-correlated--Reviewer-accepted: "unknown, clock-like"; NOT polymerase fidelity errors
SBS2 / SBS13APOBEC (APOBEC3A dominant per Petljak 2022)Often co-occur; kataegis; ICI response signalA3A vs A3B via YTCA vs RTCA tetranucleotide ratio
SBS3HRD (BRCA1/2 deficient flat profile)PARP inhibitor eligibilityHRDetect 98.7% sensitivity (Davies 2017)
ID6HRD microhomology-mediated deletionsPARP eligibilityPairs with SBS3
CN17 (HRD-CN1)HRD chromosomal instabilityPARP eligibility; also BRCA1 promoter hypermethylationSteele 2022
SBS6 / 14 / 15 / 20 / 21 / 26 / 44 + ID1 / 2MMR-DICI eligibilityLynch typically 6/15/26/44; sporadic MLH1-hyperMet typically 21/26
SBS14 + SBS20POLE+MMR or POLD1+MMR double defectUltra-hypermutator; ICI excellent response>500 mut/Mb
SBS10a / 10bPOLE-exo P286R / V411LHypermutator; ICI excellent response100-300 mut/Mb pure POLE
SBS10c / 10dPOLD1--Less common
SBS28POLE indirectOften co-extracted with SBS10--
SBS4 + DBS2Tobacco smoking; benzo[a]pyrene-G adductsLung cancerC>A bias
SBS7a/b/c/d + DBS1UV (CPD vs 6-4 photoproduct chemistry)MelanomaCC>TT dipyrimidine, CC>AA
SBS24AflatoxinHCC (geographic)C>A at CpC; Schulze 2015 Nat Genet
SBS22Aristolochic acidUTC, HCCT>A at CpTpG; Hoang 2013 Sci Transl Med
SBS17b5-FluorouracilTherapy-inducedT>G in CTT context
SBS31 / 35 / 86 / 87Platinum chemotherapyTherapy-induced; second cancersCisplatin / carboplatin / oxaliplatin
SBS11TemozolomideGlioma post-TMZC>T at unmethylated CpC/CpT
SBS88 + ID18Colibactin (pks+ E. coli)CRC etiology; NTHL1-syndrome backgroundsPleguezuelos-Manzano 2020 Nature
SBS30NTHL1 BER deficiencyLynch-like; cancer predispositionHigh cosine to FFPE artifact
SBS-FFPE-artifactFormalin-induced C>T (NOT SBS33 as commonly cited)Sequencing artifact~0.90 cosine to SBS30 (formalin-induced C>T characterization in mutational-signatures literature; specific paper attribution removed pending verification)

CRITICAL CORRECTION: The widely-cited "SBS33 = FFPE artifact" is wrong. Modern literature attributes FFPE artifact to a signature resembling SBS30 (NTHL1-BER-deficiency profile); after enzymatic uracil repair the artifact instead resembles SBS1.

Tool Taxonomy

ToolApproachClass coverageWhen to useFails when
SigProfilerSuite (Alexandrov lab; Bergstrom 2019 BMC Genomics; Islam 2022 Cell Genomics; Diaz-Gay 2023 Bioinformatics)Matrix gen -> NMF de novo / forward-backward refitSBS / DBS / ID / CN / SVField standard; CPIC-equivalent for signaturesHeavy compute for de novo (100 NMF replicates)
MutationalPatterns (Manders 2022 BMC Genomics)R-based; strict refit + NMF de novoSBS / DBS / ID; lesion segregationR workflows; reproducible refitLacks SV signatures
MuSiCal (Jin 2024 Nat Genet)mvNMF (minimum-volume NMF) addressing NMF non-uniquenessSBS / DBS / IDMid-size cohorts; novel signatures suspectedLess benchmarking at very large scale
SigNet (Serrano 2023, bioRxiv)ANN-based signature attributionSBSLow mutation countsNew tool; reproducibility data still maturing
YAPSA (Hubschmann 2021)Linear combination decompositionSBSComparison runsLess widely used
MutSignatures (Fantini 2020)Probabilistic refitsSBS----
deconstructSigs (Rosenthal 2016)NNLS (unregularized)SBSDEPRECATED; never useNNLS overfits onto reference set; superseded by SigProfilerAssignment
mSigActSignatures from RNA-seqSBSRNA-seq only contextsLimited resolution
Helmsman (Carlson 2018)Fast matrix constructionSBS / DBS / IDPreprocessing step onlyNot for extraction/refit
HRDetect (Davies 2017 Nat Med)Lasso logistic on 6 features (SBS3 / SBS8 / RS3 / RS5 / HRD-LOH / del-microhomology proportion)HRD-specificBRCA1/2 deficiency classifierBreast/ovarian-trained; cross-cancer needs revalidation
MutationTimer (Gerstung 2020 Nature)Mutation timing relative to CN statesSBSPCAWG-style evolutionRequires Battenberg/ASCAT CN; >=30x coverage

The deprecation: deconstructSigs is the most-cited signature tool in publications but is operationally deprecated. NNLS without regularization overfits onto the ~70-signature reference; reviewers flag manuscripts using it without SigProfilerAssignment sensitivity. Replace with SigProfilerAssignment or MutationalPatterns strict refit.

De Novo vs Refit: The Field's Most-Contested Choice

Degasperi 2022 Science (12,222 WGS, UK 100k Genomes) argued refitting underestimates novel signatures because variance is forced onto existing references. They identified 40 additional SBS and 18 DBS signatures by full de novo extraction.

Operational rule:

Mutation count per sampleCohort sizeApproach
> 200 (SBS96)N >= 50 (or 100 for DBS/ID/CN)De novo extraction (SigProfilerExtractor, MuSiCal); validate via split-sample CV + bootstrap stability
> 200N < 50Refit (SigProfilerAssignment)
50-200AnyRefit only; flag low confidence
< 50AnyDo not attempt single-sample signature analysis

SigProfilerExtractor stability gates:

  • nmf_replicates = 100 (default 100, do not reduce)
  • minimum stability >= 0.2 per signature
  • minimum average stability >= 0.8 across signatures
  • combined stability == 1.0 for selected rank

Manuscripts reporting extraction without these stability values are unreviewable.

Decision Tree by Scenario

ScenarioRecommended pathWhy
Single tumor WGS, > 200 mutationsSigProfilerAssignment refitSingle-sample de novo is unstable
Cohort >= 50 WGS, novel etiology suspectedSigProfilerExtractor de novo + cross-validateCapture potentially novel signatures
Cohort >= 50 WGS, established cancer typeSigProfilerAssignment refitField consensus; fast
Mid-size cohort with novel signaturesMuSiCal mvNMFHandles NMF non-uniqueness
Low mutation count (<100/sample)SigNet (Serrano 2023)ANN-based; optimized for low mutation counts
BRCA1/2 deficiency screenHRDetect (Davies 2017)6-feature lasso classifier; 98.7% sensitivity
Tumor evolution / mutation timingMutationTimer (Gerstung 2020)Requires Battenberg CN; PCAWG-validated
FFPE samplesSigProfilerAssignment with explicit FFPE-artifact handlingSBS30-like artifact; matched fresh-frozen controls ideal
WES (not WGS)SigProfilerMatrixGenerator with exome=TrueTrinucleotide-context correction for capture bias
RNA-seq onlymSigActLimited resolution; supplement with DNA-seq if available
HRD CN signaturesSigProfilerExtractor CN mode + CN17 (HRD-CN1)Steele 2022 framework
Cross-cancer signature comparisonSigProfilerSuite with strand bias onAristolochic-acid SBS22 shows strong transcribed-strand bias

Standard Workflow: SigProfilerSuite

Goal: Generate 96-context mutation matrix, extract de novo signatures with stability validation, and decompose to COSMIC v3.4 reference.

Approach: Three-step pipeline with explicit version pinning and stability gates.

python
# Step 1: Install reference genome (one-time)
from SigProfilerMatrixGenerator import install as genInstall
genInstall.install('GRCh38')

# Step 2: Generate matrix
from SigProfilerMatrixGenerator.scripts import SigProfilerMatrixGeneratorFunc as matGen
matrices = matGen.SigProfilerMatrixGeneratorFunc(
    project='cohort_2026',
    genome='GRCh38',
    vcfFiles='/path/to/vcf_directory',
    plot=True,
    exome=False,  # True if WES; corrects trinucleotide capture bias
    bed_file=None,  # Restrict to BED region if panel
    chrom_based=False,
    tsb_stat=True  # Transcribed-strand statistics
)
python
# Step 3a (cohort >= 50): de novo extraction with stability gates
from SigProfilerExtractor import sigpro as sig
sig.sigProfilerExtractor(
    input_type='matrix',
    input_data='cohort_2026/output/SBS/cohort_2026.SBS96.all',
    output='extraction_output',
    reference_genome='GRCh38',
    opportunity_genome='GRCh38',
    minimum_signatures=1,
    maximum_signatures=12,
    nmf_replicates=100,            # Required for stability
    cpu=-1,
    seeds='random',
    matrix_normalization='gmm',
    resample=True,
    batch_size=1,
    refit_denovo_signatures=True,
    cosmic_version=3.4              # Match to current COSMIC release
)
python
# Step 3b (single sample or cohort < 50): refit to COSMIC
from SigProfilerAssignment import Analyzer as Analyze
Analyze.cosmic_fit(
    samples='cohort_2026/output/SBS/cohort_2026.SBS96.all',
    output='assignment_output',
    input_type='matrix',
    genome_build='GRCh38',
    cosmic_version=3.4,
    signature_database='SBS_GRCh38_GRCh38',  # Verify against the SigProfilerAssignment release; the bundled
                                              # COSMIC signature-database identifiers change between versions.
    nnls_add_penalty=0.05,         # Forward-add gate
    nnls_remove_penalty=0.01,      # Backward-remove gate
    initial_remove_penalty=0.05,
    refit_denovo_signatures=False,
    make_plots=True,
    sample_reconstruction_plots=True
)

MutationalPatterns Strict Refit (R Alternative)

Goal: Same as SigProfilerAssignment but in R; suited for Bioconductor pipelines.

Approach: Cosine-based stopping reduces overfitting vs deconstructSigs.

r
library(MutationalPatterns)
library(BSgenome.Hsapiens.UCSC.hg38)

# Load VCFs as GRanges
vcf_files <- list.files('vcf_dir', pattern = '\\.vcf$', full.names = TRUE)
sample_names <- gsub('\\.vcf$', '', basename(vcf_files))
vcfs <- read_vcfs_as_granges(vcf_files, sample_names,
                              ref_genome = 'BSgenome.Hsapiens.UCSC.hg38')

# Generate 96-context matrix
mut_mat <- mut_matrix(vcf_list = vcfs, ref_genome = 'BSgenome.Hsapiens.UCSC.hg38')

# Fit to COSMIC v3.4 with strict refit (cosine-stopping; avoids deconstructSigs overfit)
signatures <- get_known_signatures(muttype = 'snv', source = 'COSMIC_v3.4',
                                    sig_type = 'reference', genome = 'GRCh38')
strict_refit <- fit_to_signatures_strict(mut_mat, signatures, max_delta = 0.004)

# Plot relative + absolute contributions
plot_contribution(strict_refit$fit_res$contribution, signatures, mode = 'relative')

HRDetect for BRCA1/2 Deficiency

Goal: Classify tumors as HRD vs HR-proficient using the 6-feature Davies 2017 lasso.

Approach: Compute SBS3, SBS8, RS3 (rearrangement signature 3), RS5, HRD-LOH score, and the proportion of deletions with microhomology; apply lasso classifier.

r
# Davies 2017 HRDetect framework
# Features: SBS3, SBS8, RS3, RS5, HRD-LOH, proportion of deletions with microhomology
# Output: probability of HRD; threshold 0.7 = HRD-positive
library(signature.tools.lib)

hrdetect <- HRDetect_pipeline(
    SNV_vcf_files = snv_vcfs,
    Indels_vcf_files = indel_vcfs,
    SV_bedpe_files = sv_bedpes,
    CNV_tab_files = cnv_tables,
    genome.v = 'hg38',
    nparallel = 8
)

# hrdetect$hrdetect_output has BRCA_prob per sample
# >= 0.7 = HRD-positive; consider PARP inhibitor

Per-Operation Failure Modes

1. Single-sample de novo extraction

  • Trigger: Run SigProfilerExtractor on a cohort of 1.
  • Mechanism: NMF requires multiple samples to find stable rank; single-sample 96-context spectrum has unstable signature decomposition.
  • Symptom: Tool runs but signatures are noisy and inconsistent across replicates.
  • Fix: Use refit (SigProfilerAssignment) for cohorts < 50; never de novo on single samples.

2. Sub-100-mutation sample analyzed individually

  • Trigger: Calculate signatures for a tumor with <100 mutations.
  • Mechanism: 96-context SBS spectrum needs 200-500 mutations for stable estimation; sub-100 produces signal-to-noise dominated by stochastic context distribution.
  • Symptom: Random or implausible signature contributions.
  • Fix: Aggregate samples in a meta-tumor for cohort analysis; for single-sample at low count consider SigNet which is optimized for low counts.

3. FFPE artifact misclassified as SBS30 / SBS33

  • Trigger: Pipeline reports SBS33 (or SBS30) as biologically meaningful.
  • Mechanism: FFPE-induced C>T deamination produces a profile resembling SBS30 (~0.90 cosine); after enzymatic uracil repair resembles SBS1. Pre-2022 literature incorrectly cited SBS33.
  • Symptom: False NTHL1-BER-deficiency or "unknown SBS33" reports in cohorts using FFPE samples without matched controls.
  • Fix: Run matched fresh-frozen controls in cohort; flag FFPE samples for separate analysis; use enzymatic-uracil pretreatment; expect SBS30-like artifact, not SBS33.

4. WES + signature analysis without trinucleotide correction

  • Trigger: Run SigProfilerExtractor on WES VCFs with exome=False.
  • Mechanism: WES capture has biased trinucleotide composition vs whole genome.
  • Symptom: Apparent signature differences from WGS-derived signatures are artifactual.
  • Fix: Set exome=True; this triggers trinucleotide-context correction.

5. Refit chosen for cohort with novel etiology

  • Trigger: Tropical-region cohort with putative novel mutagen exposure; refit to COSMIC.
  • Mechanism: Refit constrains variance onto existing catalog; novel signatures appear as residual or are decomposed onto closest-cosine known signatures.
  • Symptom: Apparent absence of novel etiology despite biological hypothesis.
  • Fix: For cohorts >= 50 run de novo extraction with cross-validation; Senkin 2024 kidney cancer cohort exemplifies the gain.

6. APOBEC SBS2 vs SBS13 conflation; A3A vs A3B

  • Trigger: Report "APOBEC activity" without subtype.
  • Mechanism: Petljak 2022 Nature established APOBEC3A as dominant active deaminase; the SBS2/SBS13 ratio reflects REV1-dependent translesion synthesis.
  • Symptom: Lose mechanistic insight; potential mis-attribution.
  • Fix: Distinguish A3A (YTCA 5' tetranucleotide preference) vs A3B (RTCA); cite Petljak 2022.

7. SBS5 attributed to "polymerase fidelity errors"

  • Trigger: Manuscript claims SBS5 = replication errors.
  • Mechanism: SBS5 etiology is contested; clock-like, age-correlated, modulated by ERCC2/TC-NER but not established as polymerase errors.
  • Symptom: Reviewers reject.
  • Fix: Report as "unknown, clock-like" until field consensus.

8. Cross-version comparison without re-extraction

  • Trigger: Compare SBS40 contributions from v3.2 (single signature) vs v3.4 (split into 40a/b/c).
  • Mechanism: Signature splits/merges occur between versions; cross-version exposures are not directly comparable.
  • Symptom: Apparent "loss" or "gain" of activity due to renaming.
  • Fix: Re-run with current COSMIC version; document version in methods.

9. Strand bias ignored

  • Trigger: SBS22 (aristolochic acid) reported without transcribed-strand bias.
  • Mechanism: Aristolochic-acid mutagenesis strongly biased toward transcribed strand; SigProfiler handles via tsb_stat=True, MutationalPatterns supports, deconstructSigs ignores.
  • Symptom: Mis-attribution; loss of mechanistic evidence.
  • Fix: Use SigProfiler or MutationalPatterns; enable strand-bias output.
Show full SKILL.md (956 more words)Show less

Reconciliation: When Methods Disagree

PatternLikely causeAction
SigProfiler de novo vs refit different signaturesDe novo finds novel + refit forces onto COSMICIf cohort >= 50, prefer de novo; document
MutationalPatterns vs SigProfilerAssignment different exposuresNNLS vs forward-backward selection differencesCompare cosine similarity to mut_mat; pick better reconstruction
HRDetect calls HR-deficient + BRCA wildtypeBRCA1 promoter hypermethylation; PALB2 / FBXW7 / CDK12 alterationsConfirm with HRD-LOH score; assay BRCA1 methylation
Cosine to SBS3 high but ID6 absentSingle-feature HRD signal insufficientUse HRDetect 6-feature classifier, not SBS3 alone
APOBEC signature present + low TMBCohort has APOBEC but not hypermutatorBoth can coexist; YTCA/RTCA discriminates A3A vs A3B
FFPE samples produce SBS30 / SBS33-like signalAlmost always artifactRun matched FF controls; use enzymatic uracil pretreatment
Cohort signature contributions implausibleSub-100-mutation samples includedStratify by mutation count; report >=200 separately

Quantitative Thresholds and Conventions

ThresholdConventionSource
SBS96 stable extraction>=200 mutations per sampleAlexandrov 2020
De novo extraction cohortN >= 50 (SBS); N >= 100 (DBS/ID/CN)Field consensus
nmf_replicates100 (default; do not reduce)SigProfilerExtractor
Stability gateminimum stability >= 0.2; average >= 0.8SigProfilerExtractor defaults
Cosine similarity for "same signature"> 0.85 (some use 0.90)Convention
SBS-FFPE-artifact cosine to SBS30~0.90formalin-induced C>T characterization (mutational-signatures literature; specific primary citation pending verification)
HRDetect thresholdBRCA_prob >= 0.7 = HRD-positiveDavies 2017
POLE-exo + MMR mutation count>500 mut/Mb (ultra-hypermutator)Alexandrov 2020
Pure POLE-exo mutation count100-300 mut/MbAlexandrov 2020
MMR-D typical mutation count30-50 mut/MbSalem 2018 Mol Cancer Res
COSMIC version3.4 (2023, COSMIC v98); v3.6 currentCOSMIC database

Common Errors

SymptomCauseSolution
Tool reports SBS33 in FFPE cohortMis-attribution of FFPE artifactConfirm by examining trinucleotide pattern; FFPE artifact resembles SBS30 in modern catalog
Single tumor signature attribution unstableSub-200-mutation sample analyzed aloneAggregate; use SigNet for low-count
Refit ignores novel etiologyForced onto COSMIC referenceRun de novo on cohort if N >= 50
HRDetect false negativeMissing one of 6 features (ID6, RS3, RS5, HRD-LOH)Confirm all features computed; assay BRCA1 methylation
Strand bias not detectedTool/setting ignores transcribed-strandUse SigProfilerSuite with tsb_stat=True or MutationalPatterns
WES vs WGS signatures differCapture-bias trinucleotide compositionSet exome=True in SigProfilerMatrixGenerator
Platinum-treated tumor: SBS31 vs SBS35 confusionBoth attributed to platinum; SBS35 closer to direct Drost lab signatureReport both; cosine to direct
Aristolochic-acid signature in non-exposure contextBias from highly-expressed transcribed-strand artifactsCheck geographic + clinical history

Anticipated Reviewer Pushback

PushbackStandard response
"Why not deconstructSigs?"Operationally deprecated; NNLS overfits. Use SigProfilerAssignment or MutationalPatterns strict refit.
"Single tumor signatures meaningless?"Below 200 mutations: yes. We aggregate cohorts and run refit for low-mutation samples.
"The de novo NMF rank choice?"nmf_replicates=100 with stability gates; minimum >=0.2, average >=0.8, combined =1.0; SigProfilerExtractor defaults.
"FFPE samples bias signatures"Modern attribution: FFPE artifact resembles SBS30 (not SBS33); we run matched FF controls or use enzymatic uracil pretreatment.
"SBS5 etiology; 'unknown' is unsatisfying"Tomasetti-Vogelstein clock model; Druck 2026 FHIT + TC-NER; field has not converged; we report "unknown, clock-like".
"Why no APOBEC subtype distinction?"Reported via YTCA vs RTCA tetranucleotide ratio per Petljak 2022; not all tools surface this; we used SigProfilerTopography.
"Cohort cross-comparison with old paper"Re-extracted with COSMIC v3.4; signature splits (SBS40 -> 40a/b/c, SBS17 -> 17a/b) make pre-2024 exposures non-comparable.
"HRDetect cross-cancer validation"Original Davies 2017 trained on breast cancer; we revalidated in our cohort with cross-cancer HRD-LOH score.

References

  • Alexandrov LB et al. 2020. The repertoire of mutational signatures in human cancer. Nature 578:94. (PCAWG)
  • Tate JG et al. 2019. COSMIC: the Catalogue Of Somatic Mutations In Cancer. Nucleic Acids Res 47:D941. (COSMIC v86)
  • Senkin S et al. 2024. Geographic variation of mutagenic exposures in kidney cancer genomes. Nature 629:910. (SBS40a/b/c split)
  • Steele CD et al. 2022. Signatures of copy number alterations in human cancer. Nature 606:984. (COSMIC CN signatures)
  • Petljak M et al. 2022. Mechanisms of APOBEC3 mutagenesis in human cancer cells. Nature 607:799. (A3A dominance)
  • Bergstrom EN et al. 2019. SigProfilerMatrixGenerator: a tool for visualizing and exploring patterns of small mutational events. BMC Genomics 20:685.
  • Islam SMA et al. 2022. Uncovering novel mutational signatures by de novo extraction with SigProfilerExtractor. Cell Genomics 2:100179.
  • Diaz-Gay M et al. 2023. Assigning mutational signatures to individual samples and individual somatic mutations with SigProfilerAssignment. Bioinformatics 39:btad756.
  • Manders F et al. 2022. MutationalPatterns: the one-stop shop for the analysis of mutational processes. BMC Genomics 23:134.
  • Jin H et al. 2024. Accurate and sensitive mutational signature analysis with MuSiCal. Nat Genet 56:541.
  • Davies H et al. 2017. HRDetect is a predictor of BRCA1 and BRCA2 deficiency based on mutational signatures. Nat Med 23:517.
  • Degasperi A et al. 2022. Substitution mutational signatures in whole-genome-sequenced cancers in the UK population. Science 376:abl9283.
  • Christensen S et al. 2019. 5-Fluorouracil treatment induces characteristic T>G mutations in human cancer. Nat Commun 10:4571. (SBS17b)
  • Pich O et al. 2019. The mutational footprints of cancer therapies. Nat Genet 51:1732.
  • Hayward NK et al. 2017. Whole-genome landscapes of major melanoma subtypes. Nature 545:175. (UV signatures)
  • Schulze K et al. 2015. Exome sequencing of hepatocellular carcinomas. Nat Genet 47:505. (Aflatoxin SBS24)
  • Hoang ML et al. 2013. Mutational signature of aristolochic acid exposure as revealed by whole-exome sequencing. Sci Transl Med 5:197ra102.
  • Pleguezuelos-Manzano C et al. 2020. Mutational signature in colorectal cancer caused by genotoxic pks+ E. coli. Nature 580:269. (Colibactin SBS88)
  • Gerstung M et al. 2020. The evolutionary history of 2,658 cancers. Nature 578:122. (MutationTimer)
  • Hodel KP et al. 2020. POLE mutation spectra are shaped by the mutant allele identity, its abundance, and mismatch repair status. Mol Cell 78:1166.
  • (FFPE-induced C>T mutational artifact: the earlier "Guyard 2022 Nat Commun" attribution could not be verified -- consult current FFPE-artifact literature for a confirmed primary citation.)
  • COSMIC Signatures: https://cancer.sanger.ac.uk/signatures/
  • clinical-databases/tumor-mutational-burden - TMB and ICI biomarker
  • clinical-databases/msi-detection - MSI as MMR-D biomarker (paired with SBS6/15/26/44)
  • variant-calling/variant-calling - Somatic VCF input
  • variant-calling/variant-calling - Mutect2 / Strelka2 somatic upstream
  • data-visualization/heatmaps-clustering - Signature contribution visualization

© GPTomics, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files in clinical-databases/somatic-signatures of GPTomics/bioSkills.

  • SKILL.md
  • examples/mutsig_fitting.R
  • examples/sigprofiler_analysis.py
  • usage-guide.md

Open the folder on GitHubat commit d91ed3d

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 2 other GitHub owners. This page covers the copy in GPTomics/bioSkills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Bio Clinical Databases Somatic Signatures 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.

Bio Clinical Databases Somatic Signatures compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bio Clinical Databases Somatic Signatures this skillGPTomics/bioSkills1.2k2 repos~6.8kAutomated safety check: PassMIT
GitHub Deep Researchbytedance/deer-flow84k4 repos~1.3kAutomated safety check: PassMIT
Last30daysmvanhorn/last30days-skill64k—~7.9kAutomated safety check: NotesMIT
NetworkxzLanqing/codex-claude-academic-skills4.7k15 repos~3.2kAutomated safety check: PassBSD-3-Clause
Nature-Style Scientific FiguresYuan1z0825/nature-skills47k—~3.1kAutomated safety check: PassApache-2.0
Citation ManagementK-Dense-AI/claude-scientific-writer2.4k2 repos~3.9kAutomated safety check: NotesMIT

Similar skills

  • GitHub Deep Research

    bytedance/deer-flow

    Researches a GitHub repository over four rounds using the GitHub API and web search, then writes a structured markdown report with timeline, metrics and Mermaid diagrams.

    84k GitHub starsUsed in 4 repos~1.3k tokens
    Research & ScienceAuto-check passed
  • Last30days

    mvanhorn/last30days-skill

    Research what people actually say about any topic in the last 30 days.

    64k GitHub stars~7.9k tokensUpdated yesterday
    Research & ScienceAuto-check: notes
  • Networkx

    zLanqing/codex-claude-academic-skills

    Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python.

    4.7k GitHub starsUsed in 15 repos~3.2k tokens
    Research & ScienceAuto-check passed
  • Nature-Style Scientific Figures

    Yuan1z0825/nature-skills

    Creates, revises, audits and exports manuscript-ready scientific figures in Python or R, and routes AI-generated graphical abstracts to a separate workflow.

    47k GitHub stars~3.1k tokensUpdated today
    Research & ScienceAuto-check passed
  • Citation Management

    K-Dense-AI/claude-scientific-writer

    Finds papers in OpenAlex, PubMed and Google Scholar, turns DOIs, PMIDs and arXiv IDs into clean BibTeX, and validates citations for a manuscript or thesis.

    2.4k GitHub starsUsed in 2 repos~3.9k tokens
    Research & ScienceAuto-check: notes
  • Preprint Search on bioRxiv

    LigphiDonk/Oh-my--paper

    Searches bioRxiv life sciences preprints by keyword, author, date range or category with a Python script, returning JSON metadata and optional PDF downloads.

    739 GitHub starsUsed in 12 repos~3.7k tokens
    Research & ScienceAuto-check passed

More from GPTomics/bioSkills

All 559 skills in this repo
  • Bio Alignment Io

    GPTomics/bioSkills

    Read, write, and convert multiple sequence alignment files using Biopython Bio.AlignIO.

    1.2k GitHub starsUsed in 3 repos~4.9k tokens
    Auto-check passed
  • bioSkills Installer

    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.

    1.2k GitHub starsUsed in 1 repo~789 tokens
    Auto-check passed
  • Bio Write Sequences

    GPTomics/bioSkills

    Write biological sequences to files (FASTA, FASTQ, GenBank, EMBL) using Biopython Bio.SeqIO.

    1.2k GitHub starsUsed in 3 repos~2.1k tokens
    Auto-check passed
  • Amplicon Primer Clipping

    GPTomics/bioSkills

    Soft- or hard-clips PCR primer footprints from aligned amplicon BAMs so primer bases stop masquerading as confirmed reference sequence.

    1.2k GitHub starsUsed in 2 repos~2.2k tokens
    Auto-check passed
  • Filters BAM alignments by FLAG bits, mapping quality and regions with samtools view or pysam, with recipes for common keep and drop cases.

    1.2k GitHub starsUsed in 2 repos~3.6k tokens
    Auto-check passed
  • Bio Alignment Indexing

    GPTomics/bioSkills

    Create and use BAI/CSI indices for BAM/CRAM files using samtools and pysam.

    1.2k GitHub starsUsed in 2 repos~2.4k tokens
    Auto-check passed

Works with

Questions about Bio Clinical Databases Somatic Signatures

What does Bio Clinical Databases Somatic Signatures do?

Extracts and assigns COSMIC v3.4 mutational signatures (86 SBS / 11 DBS / 18 ID / 21 CN / 16 SV) from somatic VCFs using SigProfilerSuite, MutationalPatterns, MuSiCal mvNMF, SigNet, or HRDetect. Bio Clinical Databases Somatic Signatures is an agent skill from GPTomics/bioSkills.4 mutational signatures (86 SBS / 11 DBS / 18 ID / 21 CN / 16 SV) from somatic VCFs using SigProfilerSuite, MutationalPatterns, MuSiCal mvNMF, SigNet, or HRDetect.

When should I use Bio Clinical Databases Somatic Signatures?

Bio Clinical Databases Somatic Signatures fits situations like: characterizing DNA-damage etiology (BRCA1/2 HRD; colibactin SBS88); routing PARP inhibitor decisions; auditing de novo extraction vs refit choice for cohort size.

How do I install Bio Clinical Databases Somatic Signatures in Claude Code?

Run `npx skills add GPTomics/bioSkills --skill bio-clinical-databases-somatic-signatures -a claude-code`. Or copy the skill folder (clinical-databases/somatic-signatures in GPTomics/bioSkills) into .claude/skills/bio-clinical-databases-somatic-signatures in your project. Claude Code loads it when a task matches its description.

How do I install Bio Clinical Databases Somatic Signatures in Codex?

Run `npx skills add GPTomics/bioSkills --skill bio-clinical-databases-somatic-signatures -a codex`. Or copy the skill folder (clinical-databases/somatic-signatures in GPTomics/bioSkills) into .agents/skills/bio-clinical-databases-somatic-signatures in your project. Codex loads it when a task matches its description.

Can I use Bio Clinical Databases Somatic Signatures in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add GPTomics/bioSkills --skill bio-clinical-databases-somatic-signatures -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-clinical-databases-somatic-signatures, .gemini/skills/bio-clinical-databases-somatic-signatures, .github/skills/bio-clinical-databases-somatic-signatures and .opencode/skills/bio-clinical-databases-somatic-signatures in your project.

What does Bio Clinical Databases Somatic Signatures need to run?

Going by SKILL.md and its folder, Bio Clinical Databases Somatic Signatures needs R and Python for the scripts in its folder and the command-line tools its instructions call (pip). Our summary lists: Python 3.

Does Bio Clinical Databases Somatic Signatures access the network?

SKILL.md names 1 domain. In commands or code: cancer.sanger.ac.uk; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Bio Clinical Databases Somatic Signatures safe to install?

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.

What licence does Bio Clinical Databases Somatic Signatures use?

Bio Clinical Databases Somatic Signatures is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Bio Clinical Databases Somatic Signatures use?

About 6.8k tokens (SKILL.md is roughly 27k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Bio Clinical Databases Somatic Signatures?

Skills that share tags, products or a category with Bio Clinical Databases Somatic Signatures: GitHub Deep Research (bytedance/deer-flow, 84k stars), Last30days (mvanhorn/last30days-skill, 64k stars), Networkx (zLanqing/codex-claude-academic-skills, 4.7k stars) and Nature-Style Scientific Figures (Yuan1z0825/nature-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bio Clinical Databases Somatic Signatures?

GPTomics (a GitHub organization) maintains it in GPTomics/bioSkills, which has 1,218 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.