[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EC29QPSR988ZM1RR73MEW9":3,"skill-same:01M7EC29QPSR988ZM1RR73MEW9":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M7EC29QPSR988ZM1RR73MEW9","bio-clinical-databases-somatic-signatures",null,"Extracts and assigns COSMIC v3.4 mutational signatures (86 SBS \u002F 11 DBS \u002F 18 ID \u002F 21 CN \u002F 16 SV) from somatic VCFs using SigProfilerSuite, MutationalPatterns, MuSiCal mvNMF, SigNet, or HRDetect. Use when characterizing DNA-damage etiology (BRCA1\u002F2 HRD, MMR-D, POLE, APOBEC3A, UV, tobacco, aflatoxin, 5-FU\u002FSBS17b, platinum, colibactin SBS88), routing PARP inhibitor decisions, or auditing de novo extraction vs refit choice for cohort size.","Mr-Nobody-Anonymous\u002FAll-skills","Mr-Nobody-Anonymous","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F184253119?v=4","01M7AEXFJHKTYQW5R0ZCQQTWFV","anonymous","01M7C00M3GQR4QKP9GZA42GFAK",0,"MIT","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-clinical-databases-somatic-signatures\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-clinical-databases-somatic-signatures\ndescription: Extracts and assigns COSMIC v3.4 mutational signatures (86 SBS \u002F 11 DBS \u002F 18 ID \u002F 21 CN \u002F 16 SV) from somatic VCFs using SigProfilerSuite, MutationalPatterns, MuSiCal mvNMF, SigNet, or HRDetect. Use when characterizing DNA-damage etiology (BRCA1\u002F2 HRD, MMR-D, POLE, APOBEC3A, UV, tobacco, aflatoxin, 5-FU\u002FSBS17b, platinum, colibactin SBS88), routing PARP inhibitor decisions, or auditing de novo extraction vs refit choice for cohort size.\ntool_type: mixed\nprimary_tool: SigProfilerAssignment\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"clinical-databases\u002Fsomatic-signatures\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference 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 \u002F 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).\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- R: `packageVersion('\u003Cpkg>')` then `?function_name`\n\nIf 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\u002Fb\u002Fc in v3.4 (Senkin 2024); SBS17 split to SBS17a\u002Fb (5-FU); SBS10 split to SBS10a-d (POLE\u002FPOLD1).\n\n# Somatic Mutational Signatures; Etiology, Extraction, Clinical Use\n\n**'Extract mutational signatures from this tumor cohort and identify HRD\u002FMMR\u002FAPOBEC processes'** -> Generate 96-context (or DBS\u002FID\u002FCN\u002FSV) matrix from VCF; choose de novo extraction (NMF) vs refit-to-COSMIC by cohort size; map dominant signatures to etiology; flag clinical actionability.\n\n- Python (recommended): SigProfilerMatrixGenerator -> SigProfilerExtractor (de novo) or SigProfilerAssignment (refit)\n- R alternative: `MutationalPatterns::fit_to_signatures()` (strict refit) or `extract_signatures()` (NMF de novo)\n- Python (mvNMF for non-uniqueness): MuSiCal (Jin 2024 *Nat Genet*)\n- Python (deep learning low-mutation count): SigNet (Serrano 2023)\n- R (HRD-specific): HRDetect (Davies 2017 *Nat Med*); the 6-feature BRCA-deficiency classifier\n\n## COSMIC v3.4 Catalog: Evolution and Composition\n\n| Class | Count | Encoding |\n|-------|-------|----------|\n| **SBS** (Single Base Substitutions) | 86 | 96 trinucleotide contexts (6 substitution types x 16 trinucleotides) |\n| **DBS** (Doublet Base Substitutions) | 11 | 78 strand-agnostic doublet classes (Bergstrom 2019) |\n| **ID** (Insertion\u002FDeletion) | 18 | 83 categories (indel length x repeat context x microhomology) |\n| **CN** (Copy Number) | 21 | 48 channels (total CN x heterozygosity x segment length; Steele 2022 *Nature*) |\n| **SV** (Structural Variants) | 16 | 32 channels (cluster x length x type) |\n\n**Recent splits to know:**\n- **SBS40 -> SBS40a \u002F SBS40b \u002F SBS40c** (Senkin 2024 *Nature*): pan-cancer active (40a); RCC-specific (40b\u002Fc).\n- **SBS17 -> SBS17a (T>C uncertain) \u002F SBS17b (T>G in CTT, 5-FU)** (Christensen 2019 *Nat Commun*; Pich 2019 *Nat Genet*).\n- **SBS7 -> SBS7a \u002F 7b \u002F 7c \u002F 7d** (UV photoproduct chemistry; Alexandrov 2020).\n- **SBS10 -> SBS10a (POLE P286R) \u002F 10b (POLE V411L) \u002F 10c \u002F 10d (POLD1)** (Hodel 2020 *Mol Cell*).\n\n## Etiology Table (Postdoc-grade)\n\n| Signature | Etiology | Clinical implication | Notes |\n|-----------|----------|---------------------|-------|\n| **SBS1** | Spontaneous 5mC deamination at CpG | Age-correlated; mitotic-rate biomarker | Clock-like |\n| **SBS5** | UNKNOWN, clock-like; age-correlated | -- | Reviewer-accepted: \"unknown, clock-like\"; NOT polymerase fidelity errors |\n| **SBS2 \u002F SBS13** | APOBEC (APOBEC3A dominant per Petljak 2022) | Often co-occur; kataegis; ICI response signal | A3A vs A3B via YTCA vs RTCA tetranucleotide ratio |\n| **SBS3** | HRD (BRCA1\u002F2 deficient flat profile) | **PARP inhibitor eligibility** | HRDetect 98.7% sensitivity (Davies 2017) |\n| **ID6** | HRD microhomology-mediated deletions | PARP eligibility | Pairs with SBS3 |\n| **CN17 (HRD-CN1)** | HRD chromosomal instability | PARP eligibility; also BRCA1 promoter hypermethylation | Steele 2022 |\n| **SBS6 \u002F 14 \u002F 15 \u002F 20 \u002F 21 \u002F 26 \u002F 44 + ID1 \u002F 2** | MMR-D | ICI eligibility | Lynch typically 6\u002F15\u002F26\u002F44; sporadic MLH1-hyperMet typically 21\u002F26 |\n| **SBS14 + SBS20** | POLE+MMR or POLD1+MMR double defect | Ultra-hypermutator; ICI excellent response | >500 mut\u002FMb |\n| **SBS10a \u002F 10b** | POLE-exo P286R \u002F V411L | Hypermutator; ICI excellent response | 100-300 mut\u002FMb pure POLE |\n| **SBS10c \u002F 10d** | POLD1 | -- | Less common |\n| **SBS28** | POLE indirect | Often co-extracted with SBS10 | -- |\n| **SBS4 + DBS2** | Tobacco smoking; benzo[a]pyrene-G adducts | Lung cancer | C>A bias |\n| **SBS7a\u002Fb\u002Fc\u002Fd + DBS1** | UV (CPD vs 6-4 photoproduct chemistry) | Melanoma | CC>TT dipyrimidine, CC>AA |\n| **SBS24** | Aflatoxin | HCC (geographic) | C>A at CpC; Schulze 2015 *Nat Genet* |\n| **SBS22** | Aristolochic acid | UTC, HCC | T>A at CpTpG; Hoang 2013 *Sci Transl Med* |\n| **SBS17b** | 5-Fluorouracil | Therapy-induced | T>G in CTT context |\n| **SBS31 \u002F 35 \u002F 86 \u002F 87** | Platinum chemotherapy | Therapy-induced; second cancers | Cisplatin \u002F carboplatin \u002F oxaliplatin |\n| **SBS11** | Temozolomide | Glioma post-TMZ | C>T at unmethylated CpC\u002FCpT |\n| **SBS88 + ID18** | Colibactin (pks+ E. coli) | CRC etiology; NTHL1-syndrome backgrounds | Pleguezuelos-Manzano 2020 *Nature* |\n| **SBS30** | NTHL1 BER deficiency | Lynch-like; cancer predisposition | High cosine to FFPE artifact |\n| **SBS-FFPE-artifact** | Formalin-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) |\n\n**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.\n\n## Tool Taxonomy\n\n| Tool | Approach | Class coverage | When to use | Fails when |\n|------|----------|----------------|-------------|-----------|\n| **SigProfilerSuite** (Alexandrov lab; Bergstrom 2019 *BMC Genomics*; Islam 2022 *Cell Genomics*; Diaz-Gay 2023 *Bioinformatics*) | Matrix gen -> NMF de novo \u002F forward-backward refit | SBS \u002F DBS \u002F ID \u002F CN \u002F SV | Field standard; CPIC-equivalent for signatures | Heavy compute for de novo (100 NMF replicates) |\n| **MutationalPatterns** (Manders 2022 *BMC Genomics*) | R-based; strict refit + NMF de novo | SBS \u002F DBS \u002F ID; lesion segregation | R workflows; reproducible refit | Lacks SV signatures |\n| **MuSiCal** (Jin 2024 *Nat Genet*) | mvNMF (minimum-volume NMF) addressing NMF non-uniqueness | SBS \u002F DBS \u002F ID | Mid-size cohorts; novel signatures suspected | Less benchmarking at very large scale |\n| **SigNet** (Serrano 2023, bioRxiv) | ANN-based signature attribution | SBS | Low mutation counts | New tool; reproducibility data still maturing |\n| **YAPSA** (Hubschmann 2021) | Linear combination decomposition | SBS | Comparison runs | Less widely used |\n| **MutSignatures** (Fantini 2020) | Probabilistic refits | SBS | -- | -- |\n| **deconstructSigs** (Rosenthal 2016) | NNLS (unregularized) | SBS | **DEPRECATED; never use** | NNLS overfits onto reference set; superseded by SigProfilerAssignment |\n| **mSigAct** | Signatures from RNA-seq | SBS | RNA-seq only contexts | Limited resolution |\n| **Helmsman** (Carlson 2018) | Fast matrix construction | SBS \u002F DBS \u002F ID | Preprocessing step only | Not for extraction\u002Frefit |\n| **HRDetect** (Davies 2017 *Nat Med*) | Lasso logistic on 6 features (SBS3 \u002F SBS8 \u002F RS3 \u002F RS5 \u002F HRD-LOH \u002F del-microhomology proportion) | HRD-specific | BRCA1\u002F2 deficiency classifier | Breast\u002Fovarian-trained; cross-cancer needs revalidation |\n| **MutationTimer** (Gerstung 2020 *Nature*) | Mutation timing relative to CN states | SBS | PCAWG-style evolution | Requires Battenberg\u002FASCAT CN; >=30x coverage |\n\n**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.\n\n## De Novo vs Refit: The Field's Most-Contested Choice\n\n**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.\n\n**Operational rule:**\n\n| Mutation count per sample | Cohort size | Approach |\n|---------------------------|-------------|----------|\n| > 200 (SBS96) | N >= 50 (or 100 for DBS\u002FID\u002FCN) | **De novo extraction** (SigProfilerExtractor, MuSiCal); validate via split-sample CV + bootstrap stability |\n| > 200 | N \u003C 50 | Refit (SigProfilerAssignment) |\n| 50-200 | Any | Refit only; flag low confidence |\n| \u003C 50 | Any | **Do not attempt single-sample signature analysis** |\n\n**SigProfilerExtractor stability gates:**\n- `nmf_replicates = 100` (default 100, do not reduce)\n- minimum stability >= 0.2 per signature\n- minimum average stability >= 0.8 across signatures\n- combined stability == 1.0 for selected rank\n\nManuscripts reporting extraction without these stability values are unreviewable.\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended path | Why |\n|----------|------------------|-----|\n| Single tumor WGS, > 200 mutations | SigProfilerAssignment refit | Single-sample de novo is unstable |\n| Cohort >= 50 WGS, novel etiology suspected | SigProfilerExtractor de novo + cross-validate | Capture potentially novel signatures |\n| Cohort >= 50 WGS, established cancer type | SigProfilerAssignment refit | Field consensus; fast |\n| Mid-size cohort with novel signatures | MuSiCal mvNMF | Handles NMF non-uniqueness |\n| Low mutation count (\u003C100\u002Fsample) | SigNet (Serrano 2023) | ANN-based; optimized for low mutation counts |\n| BRCA1\u002F2 deficiency screen | HRDetect (Davies 2017) | 6-feature lasso classifier; 98.7% sensitivity |\n| Tumor evolution \u002F mutation timing | MutationTimer (Gerstung 2020) | Requires Battenberg CN; PCAWG-validated |\n| FFPE samples | SigProfilerAssignment with explicit FFPE-artifact handling | SBS30-like artifact; matched fresh-frozen controls ideal |\n| WES (not WGS) | SigProfilerMatrixGenerator with `exome=True` | Trinucleotide-context correction for capture bias |\n| RNA-seq only | mSigAct | Limited resolution; supplement with DNA-seq if available |\n| HRD CN signatures | SigProfilerExtractor CN mode + CN17 (HRD-CN1) | Steele 2022 framework |\n| Cross-cancer signature comparison | SigProfilerSuite with strand bias on | Aristolochic-acid SBS22 shows strong transcribed-strand bias |\n\n## Standard Workflow: SigProfilerSuite\n\n**Goal:** Generate 96-context mutation matrix, extract de novo signatures with stability validation, and decompose to COSMIC v3.4 reference.\n\n**Approach:** Three-step pipeline with explicit version pinning and stability gates.\n\n```python\n# Step 1: Install reference genome (one-time)\nfrom SigProfilerMatrixGenerator import install as genInstall\ngenInstall.install('GRCh38')\n\n# Step 2: Generate matrix\nfrom SigProfilerMatrixGenerator.scripts import SigProfilerMatrixGeneratorFunc as matGen\nmatrices = matGen.SigProfilerMatrixGeneratorFunc(\n    project='cohort_2026',\n    genome='GRCh38',\n    vcfFiles='\u002Fpath\u002Fto\u002Fvcf_directory',\n    plot=True,\n    exome=False,  # True if WES; corrects trinucleotide capture bias\n    bed_file=None,  # Restrict to BED region if panel\n    chrom_based=False,\n    tsb_stat=True  # Transcribed-strand statistics\n)\n```\n\n```python\n# Step 3a (cohort >= 50): de novo extraction with stability gates\nfrom SigProfilerExtractor import sigpro as sig\nsig.sigProfilerExtractor(\n    input_type='matrix',\n    input_data='cohort_2026\u002Foutput\u002FSBS\u002Fcohort_2026.SBS96.all',\n    output='extraction_output',\n    reference_genome='GRCh38',\n    opportunity_genome='GRCh38',\n    minimum_signatures=1,\n    maximum_signatures=12,\n    nmf_replicates=100,            # Required for stability\n    cpu=-1,\n    seeds='random',\n    matrix_normalization='gmm',\n    resample=True,\n    batch_size=1,\n    refit_denovo_signatures=True,\n    cosmic_version=3.4              # Match to current COSMIC release\n)\n```\n\n```python\n# Step 3b (single sample or cohort \u003C 50): refit to COSMIC\nfrom SigProfilerAssignment import Analyzer as Analyze\nAnalyze.cosmic_fit(\n    samples='cohort_2026\u002Foutput\u002FSBS\u002Fcohort_2026.SBS96.all',\n    output='assignment_output',\n    input_type='matrix',\n    genome_build='GRCh38',\n    cosmic_version=3.4,\n    signature_database='SBS_GRCh38_GRCh38',  # Verify against the SigProfilerAssignment release; the bundled\n                                              # COSMIC signature-database identifiers change between versions.\n    nnls_add_penalty=0.05,         # Forward-add gate\n    nnls_remove_penalty=0.01,      # Backward-remove gate\n    initial_remove_penalty=0.05,\n    refit_denovo_signatures=False,\n    make_plots=True,\n    sample_reconstruction_plots=True\n)\n```\n\n## MutationalPatterns Strict Refit (R Alternative)\n\n**Goal:** Same as SigProfilerAssignment but in R; suited for Bioconductor pipelines.\n\n**Approach:** Cosine-based stopping reduces overfitting vs deconstructSigs.\n\n```r\nlibrary(MutationalPatterns)\nlibrary(BSgenome.Hsapiens.UCSC.hg38)\n\n# Load VCFs as GRanges\nvcf_files \u003C- list.files('vcf_dir', pattern = '\\\\.vcf$', full.names = TRUE)\nsample_names \u003C- gsub('\\\\.vcf$', '', basename(vcf_files))\nvcfs \u003C- read_vcfs_as_granges(vcf_files, sample_names,\n                              ref_genome = 'BSgenome.Hsapiens.UCSC.hg38')\n\n# Generate 96-context matrix\nmut_mat \u003C- mut_matrix(vcf_list = vcfs, ref_genome = 'BSgenome.Hsapiens.UCSC.hg38')\n\n# Fit to COSMIC v3.4 with strict refit (cosine-stopping; avoids deconstructSigs overfit)\nsignatures \u003C- get_known_signatures(muttype = 'snv', source = 'COSMIC_v3.4',\n                                    sig_type = 'reference', genome = 'GRCh38')\nstrict_refit \u003C- fit_to_signatures_strict(mut_mat, signatures, max_delta = 0.004)\n\n# Plot relative + absolute contributions\nplot_contribution(strict_refit$fit_res$contribution, signatures, mode = 'relative')\n```\n\n## HRDetect for BRCA1\u002F2 Deficiency\n\n**Goal:** Classify tumors as HRD vs HR-proficient using the 6-feature Davies 2017 lasso.\n\n**Approach:** Compute SBS3, SBS8, RS3 (rearrangement signature 3), RS5, HRD-LOH score, and the proportion of deletions with microhomology; apply lasso classifier.\n\n```r\n# Davies 2017 HRDetect framework\n# Features: SBS3, SBS8, RS3, RS5, HRD-LOH, proportion of deletions with microhomology\n# Output: probability of HRD; threshold 0.7 = HRD-positive\nlibrary(signature.tools.lib)\n\nhrdetect \u003C- HRDetect_pipeline(\n    SNV_vcf_files = snv_vcfs,\n    Indels_vcf_files = indel_vcfs,\n    SV_bedpe_files = sv_bedpes,\n    CNV_tab_files = cnv_tables,\n    genome.v = 'hg38',\n    nparallel = 8\n)\n\n# hrdetect$hrdetect_output has BRCA_prob per sample\n# >= 0.7 = HRD-positive; consider PARP inhibitor\n```\n\n## Per-Operation Failure Modes\n\n**1. Single-sample de novo extraction**\n- Trigger: Run SigProfilerExtractor on a cohort of 1.\n- Mechanism: NMF requires multiple samples to find stable rank; single-sample 96-context spectrum has unstable signature decomposition.\n- Symptom: Tool runs but signatures are noisy and inconsistent across replicates.\n- Fix: Use refit (SigProfilerAssignment) for cohorts \u003C 50; never de novo on single samples.\n\n**2. Sub-100-mutation sample analyzed individually**\n- Trigger: Calculate signatures for a tumor with \u003C100 mutations.\n- Mechanism: 96-context SBS spectrum needs 200-500 mutations for stable estimation; sub-100 produces signal-to-noise dominated by stochastic context distribution.\n- Symptom: Random or implausible signature contributions.\n- Fix: Aggregate samples in a meta-tumor for cohort analysis; for single-sample at low count consider SigNet which is optimized for low counts.\n\n**3. FFPE artifact misclassified as SBS30 \u002F SBS33**\n- Trigger: Pipeline reports SBS33 (or SBS30) as biologically meaningful.\n- 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.\n- Symptom: False NTHL1-BER-deficiency or \"unknown SBS33\" reports in cohorts using FFPE samples without matched controls.\n- Fix: Run matched fresh-frozen controls in cohort; flag FFPE samples for separate analysis; use enzymatic-uracil pretreatment; expect SBS30-like artifact, not SBS33.\n\n**4. WES + signature analysis without trinucleotide correction**\n- Trigger: Run SigProfilerExtractor on WES VCFs with `exome=False`.\n- Mechanism: WES capture has biased trinucleotide composition vs whole genome.\n- Symptom: Apparent signature differences from WGS-derived signatures are artifactual.\n- Fix: Set `exome=True`; this triggers trinucleotide-context correction.\n\n**5. Refit chosen for cohort with novel etiology**\n- Trigger: Tropical-region cohort with putative novel mutagen exposure; refit to COSMIC.\n- Mechanism: Refit constrains variance onto existing catalog; novel signatures appear as residual or are decomposed onto closest-cosine known signatures.\n- Symptom: Apparent absence of novel etiology despite biological hypothesis.\n- Fix: For cohorts >= 50 run de novo extraction with cross-validation; Senkin 2024 kidney cancer cohort exemplifies the gain.\n\n**6. APOBEC SBS2 vs SBS13 conflation; A3A vs A3B**\n- Trigger: Report \"APOBEC activity\" without subtype.\n- Mechanism: Petljak 2022 *Nature* established APOBEC3A as dominant active deaminase; the SBS2\u002FSBS13 ratio reflects REV1-dependent translesion synthesis.\n- Symptom: Lose mechanistic insight; potential mis-attribution.\n- Fix: Distinguish A3A (YTCA 5' tetranucleotide preference) vs A3B (RTCA); cite Petljak 2022.\n\n**7. SBS5 attributed to \"polymerase fidelity errors\"**\n- Trigger: Manuscript claims SBS5 = replication errors.\n- Mechanism: SBS5 etiology is contested; clock-like, age-correlated, modulated by ERCC2\u002FTC-NER but not established as polymerase errors.\n- Symptom: Reviewers reject.\n- Fix: Report as \"unknown, clock-like\" until field consensus.\n\n**8. Cross-version comparison without re-extraction**\n- Trigger: Compare SBS40 contributions from v3.2 (single signature) vs v3.4 (split into 40a\u002Fb\u002Fc).\n- Mechanism: Signature splits\u002Fmerges occur between versions; cross-version exposures are not directly comparable.\n- Symptom: Apparent \"loss\" or \"gain\" of activity due to renaming.\n- Fix: Re-run with current COSMIC version; document version in methods.\n\n**9. Strand bias ignored**\n- Trigger: SBS22 (aristolochic acid) reported without transcribed-strand bias.\n- Mechanism: Aristolochic-acid mutagenesis strongly biased toward transcribed strand; SigProfiler handles via `tsb_stat=True`, MutationalPatterns supports, deconstructSigs ignores.\n- Symptom: Mis-attribution; loss of mechanistic evidence.\n- Fix: Use SigProfiler or MutationalPatterns; enable strand-bias output.\n\n## Reconciliation: When Methods Disagree\n\n| Pattern | Likely cause | Action |\n|---------|-------------|--------|\n| SigProfiler de novo vs refit different signatures | De novo finds novel + refit forces onto COSMIC | If cohort >= 50, prefer de novo; document |\n| MutationalPatterns vs SigProfilerAssignment different exposures | NNLS vs forward-backward selection differences | Compare cosine similarity to mut_mat; pick better reconstruction |\n| HRDetect calls HR-deficient + BRCA wildtype | BRCA1 promoter hypermethylation; PALB2 \u002F FBXW7 \u002F CDK12 alterations | Confirm with HRD-LOH score; assay BRCA1 methylation |\n| Cosine to SBS3 high but ID6 absent | Single-feature HRD signal insufficient | Use HRDetect 6-feature classifier, not SBS3 alone |\n| APOBEC signature present + low TMB | Cohort has APOBEC but not hypermutator | Both can coexist; YTCA\u002FRTCA discriminates A3A vs A3B |\n| FFPE samples produce SBS30 \u002F SBS33-like signal | Almost always artifact | Run matched FF controls; use enzymatic uracil pretreatment |\n| Cohort signature contributions implausible | Sub-100-mutation samples included | Stratify by mutation count; report >=200 separately |\n\n## Quantitative Thresholds and Conventions\n\n| Threshold | Convention | Source |\n|-----------|-----------|--------|\n| SBS96 stable extraction | >=200 mutations per sample | Alexandrov 2020 |\n| De novo extraction cohort | N >= 50 (SBS); N >= 100 (DBS\u002FID\u002FCN) | Field consensus |\n| nmf_replicates | 100 (default; do not reduce) | SigProfilerExtractor |\n| Stability gate | minimum stability >= 0.2; average >= 0.8 | SigProfilerExtractor defaults |\n| Cosine similarity for \"same signature\" | > 0.85 (some use 0.90) | Convention |\n| SBS-FFPE-artifact cosine to SBS30 | ~0.90 | formalin-induced C>T characterization (mutational-signatures literature; specific primary citation pending verification) |\n| HRDetect threshold | BRCA_prob >= 0.7 = HRD-positive | Davies 2017 |\n| POLE-exo + MMR mutation count | >500 mut\u002FMb (ultra-hypermutator) | Alexandrov 2020 |\n| Pure POLE-exo mutation count | 100-300 mut\u002FMb | Alexandrov 2020 |\n| MMR-D typical mutation count | 30-50 mut\u002FMb | Salem 2018 *Mol Cancer Res* |\n| COSMIC version | 3.4 (2023, COSMIC v98); v3.6 current | COSMIC database |\n\n## Common Errors\n\n| Symptom | Cause | Solution |\n|---------|-------|----------|\n| Tool reports SBS33 in FFPE cohort | Mis-attribution of FFPE artifact | Confirm by examining trinucleotide pattern; FFPE artifact resembles SBS30 in modern catalog |\n| Single tumor signature attribution unstable | Sub-200-mutation sample analyzed alone | Aggregate; use SigNet for low-count |\n| Refit ignores novel etiology | Forced onto COSMIC reference | Run de novo on cohort if N >= 50 |\n| HRDetect false negative | Missing one of 6 features (ID6, RS3, RS5, HRD-LOH) | Confirm all features computed; assay BRCA1 methylation |\n| Strand bias not detected | Tool\u002Fsetting ignores transcribed-strand | Use SigProfilerSuite with `tsb_stat=True` or MutationalPatterns |\n| WES vs WGS signatures differ | Capture-bias trinucleotide composition | Set `exome=True` in SigProfilerMatrixGenerator |\n| Platinum-treated tumor: SBS31 vs SBS35 confusion | Both attributed to platinum; SBS35 closer to direct Drost lab signature | Report both; cosine to direct |\n| Aristolochic-acid signature in non-exposure context | Bias from highly-expressed transcribed-strand artifacts | Check geographic + clinical history |\n\n## Anticipated Reviewer Pushback\n\n| Pushback | Standard response |\n|----------|-------------------|\n| \"Why not deconstructSigs?\" | Operationally deprecated; NNLS overfits. Use SigProfilerAssignment or MutationalPatterns strict refit. |\n| \"Single tumor signatures meaningless?\" | Below 200 mutations: yes. We aggregate cohorts and run refit for low-mutation samples. |\n| \"The de novo NMF rank choice?\" | nmf_replicates=100 with stability gates; minimum >=0.2, average >=0.8, combined =1.0; SigProfilerExtractor defaults. |\n| \"FFPE samples bias signatures\" | Modern attribution: FFPE artifact resembles SBS30 (not SBS33); we run matched FF controls or use enzymatic uracil pretreatment. |\n| \"SBS5 etiology; 'unknown' is unsatisfying\" | Tomasetti-Vogelstein clock model; Druck 2026 FHIT + TC-NER; field has not converged; we report \"unknown, clock-like\". |\n| \"Why no APOBEC subtype distinction?\" | Reported via YTCA vs RTCA tetranucleotide ratio per Petljak 2022; not all tools surface this; we used SigProfilerTopography. |\n| \"Cohort cross-comparison with old paper\" | Re-extracted with COSMIC v3.4; signature splits (SBS40 -> 40a\u002Fb\u002Fc, SBS17 -> 17a\u002Fb) make pre-2024 exposures non-comparable. |\n| \"HRDetect cross-cancer validation\" | Original Davies 2017 trained on breast cancer; we revalidated in our cohort with cross-cancer HRD-LOH score. |\n\n## References\n\n- Alexandrov LB et al. 2020. The repertoire of mutational signatures in human cancer. *Nature* 578:94. (PCAWG)\n- Tate JG et al. 2019. COSMIC: the Catalogue Of Somatic Mutations In Cancer. *Nucleic Acids Res* 47:D941. (COSMIC v86)\n- Senkin S et al. 2024. Geographic variation of mutagenic exposures in kidney cancer genomes. *Nature* 629:910. (SBS40a\u002Fb\u002Fc split)\n- Steele CD et al. 2022. Signatures of copy number alterations in human cancer. *Nature* 606:984. (COSMIC CN signatures)\n- Petljak M et al. 2022. Mechanisms of APOBEC3 mutagenesis in human cancer cells. *Nature* 607:799. (A3A dominance)\n- Bergstrom EN et al. 2019. SigProfilerMatrixGenerator: a tool for visualizing and exploring patterns of small mutational events. *BMC Genomics* 20:685.\n- Islam SMA et al. 2022. Uncovering novel mutational signatures by de novo extraction with SigProfilerExtractor. *Cell Genomics* 2:100179.\n- Diaz-Gay M et al. 2023. Assigning mutational signatures to individual samples and individual somatic mutations with SigProfilerAssignment. *Bioinformatics* 39:btad756.\n- Manders F et al. 2022. MutationalPatterns: the one-stop shop for the analysis of mutational processes. *BMC Genomics* 23:134.\n- Jin H et al. 2024. Accurate and sensitive mutational signature analysis with MuSiCal. *Nat Genet* 56:541.\n- Davies H et al. 2017. HRDetect is a predictor of BRCA1 and BRCA2 deficiency based on mutational signatures. *Nat Med* 23:517.\n- Degasperi A et al. 2022. Substitution mutational signatures in whole-genome-sequenced cancers in the UK population. *Science* 376:abl9283.\n- Christensen S et al. 2019. 5-Fluorouracil treatment induces characteristic T>G mutations in human cancer. *Nat Commun* 10:4571. (SBS17b)\n- Pich O et al. 2019. The mutational footprints of cancer therapies. *Nat Genet* 51:1732.\n- Hayward NK et al. 2017. Whole-genome landscapes of major melanoma subtypes. *Nature* 545:175. (UV signatures)\n- Schulze K et al. 2015. Exome sequencing of hepatocellular carcinomas. *Nat Genet* 47:505. (Aflatoxin SBS24)\n- Hoang ML et al. 2013. Mutational signature of aristolochic acid exposure as revealed by whole-exome sequencing. *Sci Transl Med* 5:197ra102.\n- Pleguezuelos-Manzano C et al. 2020. Mutational signature in colorectal cancer caused by genotoxic pks+ E. coli. *Nature* 580:269. (Colibactin SBS88)\n- Gerstung M et al. 2020. The evolutionary history of 2,658 cancers. *Nature* 578:122. (MutationTimer)\n- 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.\n- (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.)\n- COSMIC Signatures: `https:\u002F\u002Fcancer.sanger.ac.uk\u002Fsignatures\u002F`\n\n## Related Skills\n\n- clinical-databases\u002Ftumor-mutational-burden - TMB and ICI biomarker\n- clinical-databases\u002Fmsi-detection - MSI as MMR-D biomarker (paired with SBS6\u002F15\u002F26\u002F44)\n- variant-calling\u002Fvariant-calling - Somatic VCF input\n- variant-calling\u002Fvariant-calling - Mutect2 \u002F Strelka2 somatic upstream\n- data-visualization\u002Fheatmaps-clustering - Signature contribution visualization\n","## Version Compatibility\n\nReference 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 \u002F 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).\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- Python: `pip show \u003Cpackage>` then `help(module.function)` to check signatures\n- R: `packageVersion('\u003Cpkg>')` then `?function_name`\n\nIf 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\u002Fb\u002Fc in v3.4 (Senkin 2024); SBS17 split to SBS17a\u002Fb (5-FU); SBS10 split to SBS10a-d (POLE\u002FPOLD1).\n\n# Somatic Mutational Signatures; Etiology, Extraction, Clinical Use\n\n**'Extract mutational signatures from this tumor cohort and identify HRD\u002FMMR\u002FAPOBEC processes'** -> Generate 96-context (or DBS\u002FID\u002FCN\u002FSV) matrix from VCF; choose de novo extraction (NMF) vs refit-to-COSMIC by cohort size; map dominant signatures to etiology; flag clinical actionability.\n\n- Python (recommended): SigProfilerMatrixGenerator -> SigProfilerExtractor (de novo) or SigProfilerAssignment (refit)\n- R alternative: `MutationalPatterns::fit_to_signatures()` (strict refit) or `extract_signatures()` (NMF de novo)\n- Python (mvNMF for non-uniqueness): MuSiCal (Jin 2024 *Nat Genet*)\n- Python (deep learning low-mutation count): SigNet (Serrano 2023)\n- R (HRD-specific): HRDetect (Davies 2017 *Nat Med*); the 6-feature BRCA-deficiency classifier\n\n## COSMIC v3.4 Catalog: Evolution and Composition\n\n| Class | Count | Encoding |\n|-------|-------|----------|\n| **SBS** (Single Base Substitutions) | 86 | 96 trinucleotide contexts (6 substitution types x 16 trinucleotides) |\n| **DBS** (Doublet Base Substitutions) | 11 | 78 strand-agnostic doublet classes (Bergstrom 2019) |\n| **ID** (Insertion\u002FDeletion) | 18 | 83 categories (indel length x repeat context x microhomology) |\n| **CN** (Copy Number) | 21 | 48 channels (total CN x heterozygosity x segment length; Steele 2022 *Nature*) |\n| **SV** (Structural Variants) | 16 | 32 channels (cluster x length x type) |\n\n**Recent splits to know:**\n- **SBS40 -> SBS40a \u002F SBS40b \u002F SBS40c** (Senkin 2024 *Nature*): pan-cancer active (40a); RCC-specific (40b\u002Fc).\n- **SBS17 -> SBS17a (T>C uncertain) \u002F SBS17b (T>G in CTT, 5-FU)** (Christensen 2019 *Nat Commun*; Pich 2019 *Nat Genet*).\n- **SBS7 -> SBS7a \u002F 7b \u002F 7c \u002F 7d** (UV photoproduct chemistry; Alexandrov 2020).\n- **SBS10 -> SBS10a (POLE P286R) \u002F 10b (POLE V411L) \u002F 10c \u002F 10d (POLD1)** (Hodel 2020 *Mol Cell*).\n\n## Etiology Table (Postdoc-grade)\n\n| Signature | Etiology | Clinical implication | Notes |\n|-----------|----------|---------------------|-------|\n| **SBS1** | Spontaneous 5mC deamination at CpG | Age-correlated; mitotic-rate biomarker | Clock-like |\n| **SBS5** | UNKNOWN, clock-like; age-correlated | -- | Reviewer-accepted: \"unknown, clock-like\"; NOT polymerase fidelity errors |\n| **SBS2 \u002F SBS13** | APOBEC (APOBEC3A dominant per Petljak 2022) | Often co-occur; kataegis; ICI response signal | A3A vs A3B via YTCA vs RTCA tetranucleotide ratio |\n| **SBS3** | HRD (BRCA1\u002F2 deficient flat profile) | **PARP inhibitor eligibility** | HRDetect 98.7% sensitivity (Davies 2017) |\n| **ID6** | HRD microhomology-mediated deletions | PARP eligibility | Pairs with SBS3 |\n| **CN17 (HRD-CN1)** | HRD chromosomal instability | PARP eligibility; also BRCA1 promoter hypermethylation | Steele 2022 |\n| **SBS6 \u002F 14 \u002F 15 \u002F 20 \u002F 21 \u002F 26 \u002F 44 + ID1 \u002F 2** | MMR-D | ICI eligibility | Lynch typically 6\u002F15\u002F26\u002F44; sporadic MLH1-hyperMet typically 21\u002F26 |\n| **SBS14 + SBS20** | POLE+MMR or POLD1+MMR double defect | Ultra-hypermutator; ICI excellent response | >500 mut\u002FMb |\n| **SBS10a \u002F 10b** | POLE-exo P286R \u002F V411L | Hypermutator; ICI excellent response | 100-300 mut\u002FMb pure POLE |\n| **SBS10c \u002F 10d** | POLD1 | -- | Less common |\n| **SBS28** | POLE indirect | Often co-extracted with SBS10 | -- |\n| **SBS4 + DBS2** | Tobacco smoking; benzo[a]pyrene-G adducts | Lung cancer | C>A bias |\n| **SBS7a\u002Fb\u002Fc\u002Fd + DBS1** | UV (CPD vs 6-4 photoproduct chemistry) | Melanoma | CC>TT dipyrimidine, CC>AA |\n| **SBS24** | Aflatoxin | HCC (geographic) | C>A at CpC; Schulze 2015 *Nat Genet* |\n| **SBS22** | Aristolochic acid | UTC, HCC | T>A at CpTpG; Hoang 2013 *Sci Transl Med* |\n| **SBS17b** | 5-Fluorouracil | Therapy-induced | T>G in CTT context |\n| **SBS31 \u002F 35 \u002F 86 \u002F 87** | Platinum chemotherapy | Therapy-induced; second cancers | Cisplatin \u002F carboplatin \u002F oxaliplatin |\n| **SBS11** | Temozolomide | Glioma post-TMZ | C>T at unmethylated CpC\u002FCpT |\n| **SBS88 + ID18** | Colibactin (pks+ E. coli) | CRC etiology; NTHL1-syndrome backgrounds | Pleguezuelos-Manzano 2020 *Nature* |\n| **SBS30** | NTHL1 BER deficiency | Lynch-like; cancer predisposition | High cosine to FFPE artifact |\n| **SBS-FFPE-artifact** | Formalin-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) |\n\n**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.\n\n## Tool Taxonomy\n\n| Tool | Approach | Class coverage | When to use | Fails when |\n|------|----------|----------------|-------------|-----------|\n| **SigProfilerSuite** (Alexandrov lab; Bergstrom 2019 *BMC Genomics*; Islam 2022 *Cell Genomics*; Diaz-Gay 2023 *Bioinformatics*) | Matrix gen -> NMF de novo \u002F forward-backward refit | SBS \u002F DBS \u002F ID \u002F CN \u002F SV | Field standard; CPIC-equivalent for signatures | Heavy compute for de novo (100 NMF replicates) |\n| **MutationalPatterns** (Manders 2022 *BMC Genomics*) | R-based; strict refit + NMF de novo | SBS \u002F DBS \u002F ID; lesion segregation | R workflows; reproducible refit | Lacks SV signatures |\n| **MuSiCal** (Jin 2024 *Nat Genet*) | mvNMF (minimum-volume NMF) addressing NMF non-uniqueness | SBS \u002F DBS \u002F ID | Mid-size cohorts; novel signatures suspected | Less benchmarking at very large scale |\n| **SigNet** (Serrano 2023, bioRxiv) | ANN-based signature attribution | SBS | Low mutation counts | New tool; reproducibility data still maturing |\n| **YAPSA** (Hubschmann 2021) | Linear combination decomposition | SBS | Comparison runs | Less widely used |\n| **MutSignatures** (Fantini 2020) | Probabilistic refits | SBS | -- | -- |\n| **deconstructSigs** (Rosenthal 2016) | NNLS (unregularized) | SBS | **DEPRECATED; never use** | NNLS overfits onto reference set; superseded by SigProfilerAssignment |\n| **mSigAct** | Signatures from RNA-seq | SBS | RNA-seq only contexts | Limited resolution |\n| **Helmsman** (Carlson 2018) | Fast matrix construction | SBS \u002F DBS \u002F ID | Preprocessing step only | Not for extraction\u002Frefit |\n| **HRDetect** (Davies 2017 *Nat Med*) | Lasso logistic on 6 features (SBS3 \u002F SBS8 \u002F RS3 \u002F RS5 \u002F HRD-LOH \u002F del-microhomology proportion) | HRD-specific | BRCA1\u002F2 deficiency classifier | Breast\u002Fovarian-trained; cross-cancer needs revalidation |\n| **MutationTimer** (Gerstung 2020 *Nature*) | Mutation timing relative to CN states | SBS | PCAWG-style evolution | Requires Battenberg\u002FASCAT CN; >=30x coverage |\n\n**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.\n\n## De Novo vs Refit: The Field's Most-Contested Choice\n\n**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.\n\n**Operational rule:**\n\n| Mutation count per sample | Cohort size | Approach |\n|---------------------------|-------------|----------|\n| > 200 (SBS96) | N >= 50 (or 100 for DBS\u002FID\u002FCN) | **De novo extraction** (SigProfilerExtractor, MuSiCal); validate via split-sample CV + bootstrap stability |\n| > 200 | N \u003C 50 | Refit (SigProfilerAssignment) |\n| 50-200 | Any | Refit only; flag low confidence |\n| \u003C 50 | Any | **Do not attempt single-sample signature analysis** |\n\n**SigProfilerExtractor stability gates:**\n- `nmf_replicates = 100` (default 100, do not reduce)\n- minimum stability >= 0.2 per signature\n- minimum average stability >= 0.8 across signatures\n- combined stability == 1.0 for selected rank\n\nManuscripts reporting extraction without these stability values are unreviewable.\n\n## Decision Tree by Scenario\n\n| Scenario | Recommended path | Why |\n|----------|------------------|-----|\n| Single tumor WGS, > 200 mutations | SigProfilerAssignment refit | Single-sample de novo is unstable |\n| Cohort >= 50 WGS, novel etiology suspected | SigProfilerExtractor de novo + cross-validate | Capture potentially novel signatures |\n| Cohort >= 50 WGS, established cancer type | SigProfilerAssignment refit | Field consensus; fast |\n| Mid-size cohort with novel signatures | MuSiCal mvNMF | Handles NMF non-uniqueness |\n| Low mutation count (\u003C100\u002Fsample) | SigNet (Serrano 2023) | ANN-based; optimized for low mutation counts |\n| BRCA1\u002F2 deficiency screen | HRDetect (Davies 2017) | 6-feature lasso classifier; 98.7% sensitivity |\n| Tumor evolution \u002F mutation timing | MutationTimer (Gerstung 2020) | Requires Battenberg CN; PCAWG-validated |\n| FFPE samples | SigProfilerAssignment with explicit FFPE-artifact handling | SBS30-like artifact; matched fresh-frozen controls ideal |\n| WES (not WGS) | SigProfilerMatrixGenerator with `exome=True` | Trinucleotide-context correction for capture bias |\n| RNA-seq only | mSigAct | Limited resolution; supplement with DNA-seq if available |\n| HRD CN signatures | SigProfilerExtractor CN mode + CN17 (HRD-CN1) | Steele 2022 framework |\n| Cross-cancer signature comparison | SigProfilerSuite with strand bias on | Aristolochic-acid SBS22 shows strong transcribed-strand bias |\n\n## Standard Workflow: SigProfilerSuite\n\n**Goal:** Generate 96-context mutation matrix, extract de novo signatures with stability validation, and decompose to COSMIC v3.4 reference.\n\n**Approach:** Three-step pipeline with explicit version pinning and stability gates.\n\n```python\n# Step 1: Install reference genome (one-time)\nfrom SigProfilerMatrixGenerator import install as genInstall\ngenInstall.install('GRCh38')\n\n# Step 2: Generate matrix\nfrom SigProfilerMatrixGenerator.scripts import SigProfilerMatrixGeneratorFunc as matGen\nmatrices = matGen.SigProfilerMatrixGeneratorFunc(\n    project='cohort_2026',\n    genome='GRCh38',\n    vcfFiles='\u002Fpath\u002Fto\u002Fvcf_directory',\n    plot=True,\n    exome=False,  # True if WES; corrects trinucleotide capture bias\n    bed_file=None,  # Restrict to BED region if panel\n    chrom_based=False,\n    tsb_stat=True  # Transcribed-strand statistics\n)\n```\n\n```python\n# Step 3a (cohort >= 50): de novo extraction with stability gates\nfrom SigProfilerExtractor import sigpro as sig\nsig.sigProfilerExtractor(\n    input_type='matrix',\n    input_data='cohort_2026\u002Foutput\u002FSBS\u002Fcohort_2026.SBS96.all',\n    output='extraction_output',\n    reference_genome='GRCh38',\n    opportunity_genome='GRCh38',\n    minimum_signatures=1,\n    maximum_signatures=12,\n    nmf_replicates=100,            # Required for stability\n    cpu=-1,\n    seeds='random',\n    matrix_normalization='gmm',\n    resample=True,\n    batch_size=1,\n    refit_denovo_signatures=True,\n    cosmic_version=3.4              # Match to current COSMIC release\n)\n```\n\n```python\n# Step 3b (single sample or cohort \u003C 50): refit to COSMIC\nfrom SigProfilerAssignment import Analyzer as Analyze\nAnalyze.cosmic_fit(\n    samples='cohort_2026\u002Foutput\u002FSBS\u002Fcohort_2026.SBS96.all',\n    output='assignment_output',\n    input_type='matrix',\n    genome_build='GRCh38',\n    cosmic_version=3.4,\n    signature_database='SBS_GRCh38_GRCh38',  # Verify against the SigProfilerAssignment release; the bundled\n                                              # COSMIC signature-database identifiers change between versions.\n    nnls_add_penalty=0.05,         # Forward-add gate\n    nnls_remove_penalty=0.01,      # Backward-remove gate\n    initial_remove_penalty=0.05,\n    refit_denovo_signatures=False,\n    make_plots=True,\n    sample_reconstruction_plots=True\n)\n```\n\n## MutationalPatterns Strict Refit (R Alternative)\n\n**Goal:** Same as SigProfilerAssignment but in R; suited for Bioconductor pipelines.\n\n**Approach:** Cosine-based stopping reduces overfitting vs deconstructSigs.\n\n```r\nlibrary(MutationalPatterns)\nlibrary(BSgenome.Hsapiens.UCSC.hg38)\n\n# Load VCFs as GRanges\nvcf_files \u003C- list.files('vcf_dir', pattern = '\\\\.vcf$', full.names = TRUE)\nsample_names \u003C- gsub('\\\\.vcf$', '', basename(vcf_files))\nvcfs \u003C- read_vcfs_as_granges(vcf_files, sample_names,\n                              ref_genome = 'BSgenome.Hsapiens.UCSC.hg38')\n\n# Generate 96-context matrix\nmut_mat \u003C- mut_matrix(vcf_list = vcfs, ref_genome = 'BSgenome.Hsapiens.UCSC.hg38')\n\n# Fit to COSMIC v3.4 with strict refit (cosine-stopping; avoids deconstructSigs overfit)\nsignatures \u003C- get_known_signatures(muttype = 'snv', source = 'COSMIC_v3.4',\n                                    sig_type = 'reference', genome = 'GRCh38')\nstrict_refit \u003C- fit_to_signatures_strict(mut_mat, signatures, max_delta = 0.004)\n\n# Plot relative + absolute contributions\nplot_contribution(strict_refit$fit_res$contribution, signatures, mode = 'relative')\n```\n\n## HRDetect for BRCA1\u002F2 Deficiency\n\n**Goal:** Classify tumors as HRD vs HR-proficient using the 6-feature Davies 2017 lasso.\n\n**Approach:** Compute SBS3, SBS8, RS3 (rearrangement signature 3), RS5, HRD-LOH score, and the proportion of deletions with microhomology; apply lasso classifier.\n\n```r\n# Davies 2017 HRDetect framework\n# Features: SBS3, SBS8, RS3, RS5, HRD-LOH, proportion of deletions with microhomology\n# Output: probability of HRD; threshold 0.7 = HRD-positive\nlibrary(signature.tools.lib)\n\nhrdetect \u003C- HRDetect_pipeline(\n    SNV_vcf_files = snv_vcfs,\n    Indels_vcf_files = indel_vcfs,\n    SV_bedpe_files = sv_bedpes,\n    CNV_tab_files = cnv_tables,\n    genome.v = 'hg38',\n    nparallel = 8\n)\n\n# hrdetect$hrdetect_output has BRCA_prob per sample\n# >= 0.7 = HRD-positive; consider PARP inhibitor\n```\n\n## Per-Operation Failure Modes\n\n**1. Single-sample de novo extraction**\n- Trigger: Run SigProfilerExtractor on a cohort of 1.\n- Mechanism: NMF requires multiple samples to find stable rank; single-sample 96-context spectrum has unstable signature decomposition.\n- Symptom: Tool runs but signatures are noisy and inconsistent across replicates.\n- Fix: Use refit (SigProfilerAssignment) for cohorts \u003C 50; never de novo on single samples.\n\n**2. Sub-100-mutation sample analyzed individually**\n- Trigger: Calculate signatures for a tumor with \u003C100 mutations.\n- Mechanism: 96-context SBS spectrum needs 200-500 mutations for stable estimation; sub-100 produces signal-to-noise dominated by stochastic context distribution.\n- Symptom: Random or implausible signature contributions.\n- Fix: Aggregate samples in a meta-tumor for cohort analysis; for single-sample at low count consider SigNet which is optimized for low counts.\n\n**3. FFPE artifact misclassified as SBS30 \u002F SBS33**\n- Trigger: Pipeline reports SBS33 (or SBS30) as biologically meaningful.\n- 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.\n- Symptom: False NTHL1-BER-deficiency or \"unknown SBS33\" reports in cohorts using FFPE samples without matched controls.\n- Fix: Run matched fresh-frozen controls in cohort; flag FFPE samples for separate analysis; use enzymatic-uracil pretreatment; expect SBS30-like artifact, not SBS33.\n\n**4. WES + signature analysis without trinucleotide correction**\n- Trigger: Run SigProfilerExtractor on WES VCFs with `exome=False`.\n- Mechanism: WES capture has biased trinucleotide composition vs whole genome.\n- Symptom: Apparent signature differences from WGS-derived signatures are artifactual.\n- Fix: Set `exome=True`; this triggers trinucleotide-context correction.\n\n**5. Refit chosen for cohort with novel etiology**\n- Trigger: Tropical-region cohort with putative novel mutagen exposure; refit to COSMIC.\n- Mechanism: Refit constrains variance onto existing catalog; novel signatures appear as residual or are decomposed onto closest-cosine known signatures.\n- Symptom: Apparent absence of novel etiology despite biological hypothesis.\n- Fix: For cohorts >= 50 run de novo extraction with cross-validation; Senkin 2024 kidney cancer cohort exemplifies the gain.\n\n**6. APOBEC SBS2 vs SBS13 conflation; A3A vs A3B**\n- Trigger: Report \"APOBEC activity\" without subtype.\n- Mechanism: Petljak 2022 *Nature* established APOBEC3A as dominant active deaminase; the SBS2\u002FSBS13 ratio reflects REV1-dependent translesion synthesis.\n- Symptom: Lose mechanistic insight; potential mis-attribution.\n- Fix: Distinguish A3A (YTCA 5' tetranucleotide preference) vs A3B (RTCA); cite Petljak 2022.\n\n**7. SBS5 attributed to \"polymerase fidelity errors\"**\n- Trigger: Manuscript claims SBS5 = replication errors.\n- Mechanism: SBS5 etiology is contested; clock-like, age-correlated, modulated by ERCC2\u002FTC-NER but not established as polymerase errors.\n- Symptom: Reviewers reject.\n- Fix: Report as \"unknown, clock-like\" until field consensus.\n\n**8. Cross-version comparison without re-extraction**\n- Trigger: Compare SBS40 contributions from v3.2 (single signature) vs v3.4 (split into 40a\u002Fb\u002Fc).\n- Mechanism: Signature splits\u002Fmerges occur between versions; cross-version exposures are not directly comparable.\n- Symptom: Apparent \"loss\" or \"gain\" of activity due to renaming.\n- Fix: Re-run with current COSMIC version; document version in methods.\n\n**9. Strand bias ignored**\n- Trigger: SBS22 (aristolochic acid) reported without transcribed-strand bias.\n- Mechanism: Aristolochic-acid mutagenesis strongly biased toward transcribed strand; SigProfiler handles via `tsb_stat=True`, MutationalPatterns supports, deconstructSigs ignores.\n- Symptom: Mis-attribution; loss of mechanistic evidence.\n- Fix: Use SigProfiler or MutationalPatterns; enable strand-bias output.\n\n## Reconciliation: When Methods Disagree\n\n| Pattern | Likely cause | Action |\n|---------|-------------|--------|\n| SigProfiler de novo vs refit different signatures | De novo finds novel + refit forces onto COSMIC | If cohort >= 50, prefer de novo; document |\n| MutationalPatterns vs SigProfilerAssignment different exposures | NNLS vs forward-backward selection differences | Compare cosine similarity to mut_mat; pick better reconstruction |\n| HRDetect calls HR-deficient + BRCA wildtype | BRCA1 promoter hypermethylation; PALB2 \u002F FBXW7 \u002F CDK12 alterations | Confirm with HRD-LOH score; assay BRCA1 methylation |\n| Cosine to SBS3 high but ID6 absent | Single-feature HRD signal insufficient | Use HRDetect 6-feature classifier, not SBS3 alone |\n| APOBEC signature present + low TMB | Cohort has APOBEC but not hypermutator | Both can coexist; YTCA\u002FRTCA discriminates A3A vs A3B |\n| FFPE samples produce SBS30 \u002F SBS33-like signal | Almost always artifact | Run matched FF controls; use enzymatic uracil pretreatment |\n| Cohort signature contributions implausible | Sub-100-mutation samples included | Stratify by mutation count; report >=200 separately |\n\n## Quantitative Thresholds and Conventions\n\n| Threshold | Convention | Source |\n|-----------|-----------|--------|\n| SBS96 stable extraction | >=200 mutations per sample | Alexandrov 2020 |\n| De novo extraction cohort | N >= 50 (SBS); N >= 100 (DBS\u002FID\u002FCN) | Field consensus |\n| nmf_replicates | 100 (default; do not reduce) | SigProfilerExtractor |\n| Stability gate | minimum stability >= 0.2; average >= 0.8 | SigProfilerExtractor defaults |\n| Cosine similarity for \"same signature\" | > 0.85 (some use 0.90) | Convention |\n| SBS-FFPE-artifact cosine to SBS30 | ~0.90 | formalin-induced C>T characterization (mutational-signatures literature; specific primary citation pending verification) |\n| HRDetect threshold | BRCA_prob >= 0.7 = HRD-positive | Davies 2017 |\n| POLE-exo + MMR mutation count | >500 mut\u002FMb (ultra-hypermutator) | Alexandrov 2020 |\n| Pure POLE-exo mutation count | 100-300 mut\u002FMb | Alexandrov 2020 |\n| MMR-D typical mutation count | 30-50 mut\u002FMb | Salem 2018 *Mol Cancer Res* |\n| COSMIC version | 3.4 (2023, COSMIC v98); v3.6 current | COSMIC database |\n\n## Common Errors\n\n| Symptom | Cause | Solution |\n|---------|-------|----------|\n| Tool reports SBS33 in FFPE cohort | Mis-attribution of FFPE artifact | Confirm by examining trinucleotide pattern; FFPE artifact resembles SBS30 in modern catalog |\n| Single tumor signature attribution unstable | Sub-200-mutation sample analyzed alone | Aggregate; use SigNet for low-count |\n| Refit ignores novel etiology | Forced onto COSMIC reference | Run de novo on cohort if N >= 50 |\n| HRDetect false negative | Missing one of 6 features (ID6, RS3, RS5, HRD-LOH) | Confirm all features computed; assay BRCA1 methylation |\n| Strand bias not detected | Tool\u002Fsetting ignores transcribed-strand | Use SigProfilerSuite with `tsb_stat=True` or MutationalPatterns |\n| WES vs WGS signatures differ | Capture-bias trinucleotide composition | Set `exome=True` in SigProfilerMatrixGenerator |\n| Platinum-treated tumor: SBS31 vs SBS35 confusion | Both attributed to platinum; SBS35 closer to direct Drost lab signature | Report both; cosine to direct |\n| Aristolochic-acid signature in non-exposure context | Bias from highly-expressed transcribed-strand artifacts | Check geographic + clinical history |\n\n## Anticipated Reviewer Pushback\n\n| Pushback | Standard response |\n|----------|-------------------|\n| \"Why not deconstructSigs?\" | Operationally deprecated; NNLS overfits. Use SigProfilerAssignment or MutationalPatterns strict refit. |\n| \"Single tumor signatures meaningless?\" | Below 200 mutations: yes. We aggregate cohorts and run refit for low-mutation samples. |\n| \"The de novo NMF rank choice?\" | nmf_replicates=100 with stability gates; minimum >=0.2, average >=0.8, combined =1.0; SigProfilerExtractor defaults. |\n| \"FFPE samples bias signatures\" | Modern attribution: FFPE artifact resembles SBS30 (not SBS33); we run matched FF controls or use enzymatic uracil pretreatment. |\n| \"SBS5 etiology; 'unknown' is unsatisfying\" | Tomasetti-Vogelstein clock model; Druck 2026 FHIT + TC-NER; field has not converged; we report \"unknown, clock-like\". |\n| \"Why no APOBEC subtype distinction?\" | Reported via YTCA vs RTCA tetranucleotide ratio per Petljak 2022; not all tools surface this; we used SigProfilerTopography. |\n| \"Cohort cross-comparison with old paper\" | Re-extracted with COSMIC v3.4; signature splits (SBS40 -> 40a\u002Fb\u002Fc, SBS17 -> 17a\u002Fb) make pre-2024 exposures non-comparable. |\n| \"HRDetect cross-cancer validation\" | Original Davies 2017 trained on breast cancer; we revalidated in our cohort with cross-cancer HRD-LOH score. |\n\n## References\n\n- Alexandrov LB et al. 2020. The repertoire of mutational signatures in human cancer. *Nature* 578:94. (PCAWG)\n- Tate JG et al. 2019. COSMIC: the Catalogue Of Somatic Mutations In Cancer. *Nucleic Acids Res* 47:D941. (COSMIC v86)\n- Senkin S et al. 2024. Geographic variation of mutagenic exposures in kidney cancer genomes. *Nature* 629:910. (SBS40a\u002Fb\u002Fc split)\n- Steele CD et al. 2022. Signatures of copy number alterations in human cancer. *Nature* 606:984. (COSMIC CN signatures)\n- Petljak M et al. 2022. Mechanisms of APOBEC3 mutagenesis in human cancer cells. *Nature* 607:799. (A3A dominance)\n- Bergstrom EN et al. 2019. SigProfilerMatrixGenerator: a tool for visualizing and exploring patterns of small mutational events. *BMC Genomics* 20:685.\n- Islam SMA et al. 2022. Uncovering novel mutational signatures by de novo extraction with SigProfilerExtractor. *Cell Genomics* 2:100179.\n- Diaz-Gay M et al. 2023. Assigning mutational signatures to individual samples and individual somatic mutations with SigProfilerAssignment. *Bioinformatics* 39:btad756.\n- Manders F et al. 2022. MutationalPatterns: the one-stop shop for the analysis of mutational processes. *BMC Genomics* 23:134.\n- Jin H et al. 2024. Accurate and sensitive mutational signature analysis with MuSiCal. *Nat Genet* 56:541.\n- Davies H et al. 2017. HRDetect is a predictor of BRCA1 and BRCA2 deficiency based on mutational signatures. *Nat Med* 23:517.\n- Degasperi A et al. 2022. Substitution mutational signatures in whole-genome-sequenced cancers in the UK population. *Science* 376:abl9283.\n- Christensen S et al. 2019. 5-Fluorouracil treatment induces characteristic T>G mutations in human cancer. *Nat Commun* 10:4571. (SBS17b)\n- Pich O et al. 2019. The mutational footprints of cancer therapies. *Nat Genet* 51:1732.\n- Hayward NK et al. 2017. Whole-genome landscapes of major melanoma subtypes. *Nature* 545:175. (UV signatures)\n- Schulze K et al. 2015. Exome sequencing of hepatocellular carcinomas. *Nat Genet* 47:505. (Aflatoxin SBS24)\n- Hoang ML et al. 2013. Mutational signature of aristolochic acid exposure as revealed by whole-exome sequencing. *Sci Transl Med* 5:197ra102.\n- Pleguezuelos-Manzano C et al. 2020. Mutational signature in colorectal cancer caused by genotoxic pks+ E. coli. *Nature* 580:269. (Colibactin SBS88)\n- Gerstung M et al. 2020. The evolutionary history of 2,658 cancers. *Nature* 578:122. (MutationTimer)\n- 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.\n- (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.)\n- COSMIC Signatures: `https:\u002F\u002Fcancer.sanger.ac.uk\u002Fsignatures\u002F`\n\n## Related Skills\n\n- clinical-databases\u002Ftumor-mutational-burden - TMB and ICI biomarker\n- clinical-databases\u002Fmsi-detection - MSI as MMR-D biomarker (paired with SBS6\u002F15\u002F26\u002F44)\n- variant-calling\u002Fvariant-calling - Somatic VCF input\n- variant-calling\u002Fvariant-calling - Mutect2 \u002F Strelka2 somatic upstream\n- data-visualization\u002Fheatmaps-clustering - Signature contribution visualization\n",{"name":5,"source":24,"license":15,"tool_type":25,"description":7,"imported_at":26,"source_path":27,"primary_tool":28,"source_repository":29},"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills","mixed","2026-09-20","clinical-databases\u002Fsomatic-signatures\u002FSKILL.md","SigProfilerAssignment","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-clinical-databases-somatic-signatures","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous","2026-11-09 11:45:36",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-clinical-databases-somatic-signatures",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-clinical-databases-somatic-signatures",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-clinical-databases-somatic-signatures","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-clinical-databases-somatic-signatures\u002FSKILL.md",true,[50,56,62],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Fmutsig_fitting.R","OTHER","其他",4208,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-clinical-databases-somatic-signatures\u002Fexamples\u002Fmutsig_fitting.R",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"examples\u002Fsigprofiler_analysis.py","SCRIPT","脚本",9648,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-clinical-databases-somatic-signatures\u002Fexamples\u002Fsigprofiler_analysis.py",{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"usage-guide.md","REFERENCE","参考文档",6592,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-clinical-databases-somatic-signatures\u002Fusage-guide.md",[69,77,84,91,98,105],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":76},"01M7FFFZPC2025JQQHPHDX154J","dei-assessment","Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-assessment\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":76},"01M7FFFWN8H4WA7A6Y398QKB6J","dei-action-plan","Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fdei-action-plan\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":76},"01M7FFFSHTM0QZRVZ2NRJTJ0PY","culture-fit-assessment","Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fculture-fit-assessment\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":76},"01M7FFFMA12RKEQA38KHJSXXPS","cowork-to-code-bridge","Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcowork-to-code-bridge\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":76},"01M7FFFH1F6M8YRGW5V487GH1K","counter-offer-response","Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcounter-offer-response\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":76},"01M7FFFDGEHV8Y7J9N40HZXW52","continuous-feedback-system","Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.","https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fhr-people\u002Fcontinuous-feedback-system\u002FSKILL.md",[],[]]