[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ECQSC5K1DNQ1AEE29K5T3C":3,"skill-same:01M7ECQSC5K1DNQ1AEE29K5T3C":62},{"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},"01M7ECQSC5K1DNQ1AEE29K5T3C","bio-data-visualization-lollipop-protein-maps",null,"Plot per-gene mutation distributions on a protein-domain map (lollipop \u002F needle plots) showing mutation position, recurrence count, and variant classification with maftools, g3-lollipop, trackViewer, and ProteinPaint. Use when visualizing recurrent mutation hotspots on a single gene's protein, marking domain boundaries from UniProt\u002FPfam, comparing missense vs truncating distributions, or contrasting two cohorts on the same lollipop.","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-data-visualization-lollipop-protein-maps\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: bio-data-visualization-lollipop-protein-maps\ndescription: Plot per-gene mutation distributions on a protein-domain map (lollipop \u002F needle plots) showing mutation position, recurrence count, and variant classification with maftools, g3-lollipop, trackViewer, and ProteinPaint. Use when visualizing recurrent mutation hotspots on a single gene's protein, marking domain boundaries from UniProt\u002FPfam, comparing missense vs truncating distributions, or contrasting two cohorts on the same lollipop.\ntool_type: mixed\nprimary_tool: maftools\nsource: \"https:\u002F\u002Fgithub.com\u002FGPTomics\u002FbioSkills\"\nsource_repository: \"GPTomics\u002FbioSkills\"\nsource_path: \"data-visualization\u002Flollipop-protein-maps\u002FSKILL.md\"\nlicense: \"MIT\"\nimported_at: \"2026-09-20\"\n---\n\n## Version Compatibility\n\nReference examples tested with: maftools 2.18+, trackViewer 1.38+, g3-lollipop (JavaScript via R `g3viz` 1.2+), Bio.PDB 1.83+ (for domain coordinates). ProteinPaint is a hosted service.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- R: `packageVersion('\u003Cpkg>')` then `?function_name`\n- Python: `pip show \u003Cpackage>` then `help(module.function)`\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.\n\n# Lollipop \u002F Needle Protein Maps\n\n**\"Plot mutations on a gene's protein\"** -> Render a horizontal protein backbone with colored domain rectangles (from UniProt\u002FPfam\u002FInterPro), then stack vertical lines (\"stems\") at mutated amino-acid positions, capped with circles (\"lollipops\") whose size reflects mutation count and whose color encodes variant class. The biological story is hotspot identification — a tall stack of recurrences at a single residue (e.g., KRAS G12, PIK3CA E545\u002FH1047) is the visual signature of a driver mutation.\n\n- R: `maftools::lollipopPlot`, `trackViewer::lolliplot`, `g3viz::g3Lollipop`\n- Python: `pyLollipop` (limited maintenance); ProteinPaint via API\n- Web: cBioPortal, ProteinPaint, MutationMapper\n\n## The Single Most Important Modern Insight -- Hotspot Recurrence Drives the Plot\n\nA lollipop plot exists to identify hotspots — residues with disproportionate recurrence. The MutSig hotspot test (Lawrence 2014 *Nature* 505:495) and statisticalhotspot methods (Chang 2016 *Nat Biotechnol* 34:155) formalize this: a residue's mutation count should exceed the gene-wide background rate × residue count. Visualizing this on a domain map IS the diagnostic.\n\nKey practical consequences:\n- **Stack height ≠ frequency**: a tall lollipop at residue 600 means recurrence, not population frequency. Annotate the count.\n- **Domain colors should encode functional class** (kinase, SH2, binding), not random hue.\n- **Mark known activating\u002Finactivating residues** (G12 for KRAS, R175 for TP53) with bold labels.\n\n## Decision Tree by Question\n\n| Question | Approach |\n|----------|----------|\n| Where are the hotspots? | Lollipop with size = count; label top 5 recurrent residues |\n| Missense vs truncating distribution? | Color stems by class; tumor suppressors show truncating spread; oncogenes show missense hotspots |\n| Compare two cohorts | Stacked lollipops (one cohort up, one down) on shared domain map |\n| 3D-cluster hotspot detection? | Use HotMAPS \u002F 3D Hotspots — beyond linear lollipop |\n| Druggable position? | Add ClinVar \u002F OncoKB level annotation at the residue |\n\n## maftools::lollipopPlot\n\n**Goal:** Render per-gene mutation distribution on Pfam domain map with count-sized lollipops and class-colored stems.\n\n**Approach:** Pass MAF and gene to `lollipopPlot`; maftools queries Pfam for domain coordinates automatically; outputs ggplot2 object.\n\n```r\nlibrary(maftools)\nmaf \u003C- read.maf(maf = 'cohort.maf')\n\n# Default lollipop\nlollipopPlot(maf = maf, gene = 'TP53',\n             AACol = 'HGVSp_Short',\n             labelPos = c(175, 248, 273),                   # mark canonical hotspots\n             labPosSize = 1.0,\n             showMutationRate = TRUE,\n             domainLabelSize = 1,\n             printCount = TRUE,\n             colors = c(Missense_Mutation = '#D55E00',\n                        Nonsense_Mutation = '#000000',\n                        Frame_Shift_Del   = '#0072B2',\n                        Frame_Shift_Ins   = '#56B4E9',\n                        Splice_Site       = '#CC79A7',\n                        In_Frame_Del      = '#009E73'))\n```\n\n```r\n# Compare two cohorts -- one up, one down\nlollipopPlot2(m1 = cohort_a, m2 = cohort_b,\n              gene = 'TP53',\n              m1_name = 'Cohort A',\n              m2_name = 'Cohort B',\n              AACol1 = 'HGVSp_Short', AACol2 = 'HGVSp_Short',\n              colors = my_palette)\n```\n\n## trackViewer::lolliplot -- Fine Control over Track Layout\n\n```r\nlibrary(trackViewer)\nlibrary(GenomicRanges)\n\n# Build SNP (lollipop) and feature (domain) GRanges\nsnps \u003C- GRanges('chr17', IRanges(c(175, 248, 273), width = 1, names = c('R175H', 'R248Q', 'R273H')),\n                color = c('#D55E00', '#D55E00', '#D55E00'),\n                score = c(45, 38, 29))                       # mutation count\nfeatures \u003C- GRanges('chr17',\n                    IRanges(c(102, 323, 363), width = c(190, 30, 30),\n                            names = c('DNA-binding', 'Tetramerization', 'Regulatory')),\n                    fill = c('#0072B2', '#009E73', '#CC79A7'),\n                    height = 0.04)\n\nlolliplot(snps, features, ylab = 'Mutation count',\n          xaxis = TRUE, yaxis = TRUE)\n```\n\ntrackViewer is more flexible than maftools for non-standard layouts (custom domain sources, multi-protein stacking, integration with genome coordinates).\n\n## g3viz \u002F g3-lollipop -- Interactive HTML\n\n```r\nlibrary(g3viz)\nmutation_data \u003C- hgvspChange2protein(maf, gene = 'TP53')\ng3Lollipop(mutation_data,\n           gene.symbol = 'TP53',\n           protein.change.col = 'AA_Change',\n           plot.options = g3Lollipop.theme(theme.name = 'nature'),\n           output.filename = 'TP53_lollipop.html')\n```\n\ng3-lollipop produces an interactive HTML — hover tooltips, click-to-filter, exportable. Suitable for supplementary HTML supplement; not for journal figure submission directly.\n\n## Domain Annotation Sources\n\n| Source | Format | Stability | Caveat |\n|--------|--------|-----------|--------|\n| Pfam (via maftools) | Pfam-A domain coordinates | Updated occasionally | maftools caches local; may lag Pfam release |\n| UniProt | Domain + Region features (varied types) | Daily updates | API-driven; rate limits |\n| InterPro | Integrated multi-database | More inclusive than Pfam | Different sub-classifications |\n| Custom | Hand-curated for specific paper | Reproducible | Cite source |\n\nFor canonical isoform: maftools uses the canonical UniProt isoform by default. For specific isoform: pass `refSeqID` or `proteinID` explicitly. Mutations annotated against a different isoform will be off-by-residue.\n\n## Per-Method Failure Modes\n\n### Mutations not labeled with AA position\n\n**Trigger:** MAF column `HGVSp_Short` missing or malformed.\n\n**Mechanism:** maftools expects `HGVSp_Short` (e.g., 'p.R175H'); falls back to other columns inconsistently.\n\n**Symptom:** \"No mutations to plot\" or wrong positions.\n\n**Fix:** Verify `HGVSp_Short` column exists; reformat from HGVSp if needed. Use `AACol` argument to specify which column.\n\n### Isoform mismatch\n\n**Trigger:** Mutations called against ENST00000269305 but plotted against canonical ENST00000288602 (TP53).\n\n**Mechanism:** Residue numbering differs across isoforms.\n\n**Symptom:** Known R175H plotted at R177H or in a different domain.\n\n**Fix:** Annotate the isoform in the figure caption; pass `proteinID` to `lollipopPlot` to force a specific isoform.\n\n### Domain map outdated\n\n**Trigger:** maftools' cached Pfam annotation is older than the protein's current Pfam release.\n\n**Mechanism:** Domain coordinates can shift across Pfam versions.\n\n**Symptom:** Domain boundaries off by a few residues; published-figure mismatch.\n\n**Fix:** Pull domain coordinates from UniProt directly (current); pass via `trackViewer::lolliplot` features.\n\n### Recurrence at low-coverage region overinterpreted\n\n**Trigger:** \"Hotspot\" identified at a residue with high coverage variance — looks recurrent but is a sequencing artifact.\n\n**Mechanism:** Capture-bait coverage variability; some residues sequenced more deeply.\n\n**Symptom:** \"Hotspot\" in untargeted region; not validated in WGS.\n\n**Fix:** Verify recurrence in independent cohort (TCGA Pan-Cancer + ICGC); use MutSig hotspot test (Lawrence 2014) for formal hotspot calling.\n\n### Counts encoded only as size; no actual numbers shown\n\n**Trigger:** Default `printCount = FALSE`.\n\n**Mechanism:** Size-encoded counts beyond ~10 saturate visually.\n\n**Symptom:** Reader cannot tell whether the top lollipop is 30 vs 300 mutations.\n\n**Fix:** `printCount = TRUE` annotates each lollipop with its count.\n\n### Domain colors random; no functional grouping\n\n**Trigger:** Default rainbow domain colors.\n\n**Mechanism:** Domains colored by accident, not by function class.\n\n**Symptom:** Reader cannot quickly identify which domain is the kinase.\n\n**Fix:** Manually map domain colors by functional class (kinase = blue, binding = green, regulatory = purple).\n\n## Reconciliation: When Hotspots Disagree\n\n| Pattern | Cause | Action |\n|---------|-------|--------|\n| Hotspot in cohort A absent in B | Cohort A enriched for a subtype OR small N | Stratify by subtype; cite both N |\n| 3D hotspot test calls residues not on lollipop | Linear adjacency misses 3D proximity | Use HotMAPS \u002F 3D Hotspots for spatial clusters |\n| Recurrent residue lacks OncoKB evidence | Novel hotspot OR sequencing artifact | Confirm via independent cohort + WGS |\n| Frame-shift indels not aligned to expected codon | Different annotation tool (VEP vs SnpEff) | Standardize annotation; verify HGVSp |\n\n**Operational rule:** annotate the isoform; show absolute counts on lollipops; verify hotspots against TCGA Pan-Cancer + ICGC before novel-hotspot claims.\n\n## Quantitative Thresholds\n\n| Threshold | Value | Source |\n|-----------|-------|--------|\n| Hotspot recurrence cutoff | depends on gene length + cohort size | Lawrence 2014 — formal MutSig test |\n| Display all mutations vs filter | Recurrent (count ≥ 2) for clarity; show all in supplement | Visualization practical |\n| Domain source default | Pfam (maftools default); UniProt for current | Tool-specific |\n| Cohort N for credible hotspot | ≥200 for a single gene; pan-cancer for novel | Standard practice |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| No mutations on plot | HGVSp_Short column missing | Verify \u002F reformat from HGVSp |\n| Mutations at wrong position | Isoform mismatch | Specify proteinID; document isoform |\n| Domain boundaries slightly off | maftools Pfam cache outdated | Pull from UniProt; use trackViewer |\n| Hotspot size saturates | Counts >10 indistinguishable by size | `printCount = TRUE` to annotate numbers |\n| Random domain colors | Default rainbow | Manual mapping by functional class |\n| Novel hotspot from one cohort | Insufficient N | Verify in TCGA + ICGC |\n\n## References\n\n- Chang MT, Asthana S, Gao SP, et al. 2016. Identifying recurrent mutations in cancer reveals widespread lineage diversity and mutational specificity. *Nat Biotechnol* 34(2):155-163.\n- Gao J, Aksoy BA, Dogrusoz U, et al. 2013. Integrative analysis of complex cancer genomics and clinical profiles using the cBioPortal. *Sci Signal* 6(269):pl1.\n- Lawrence MS, Stojanov P, Mermel CH, et al. 2014. Discovery and saturation analysis of cancer genes across 21 tumour types. *Nature* 505:495-501.\n- Mayakonda A, Lin DC, Assenov Y, Plass C, Koeffler HP. 2018. Maftools: efficient and comprehensive analysis of somatic variants in cancer. *Genome Res* 28(11):1747-1756.\n- Ou J, Zhu LJ. 2019. trackViewer: a Bioconductor package for interactive and integrative visualization of multi-omics data. *Nat Methods* 16:453-454.\n- Zhou X, Edmonson MN, Wilkinson MR, et al. 2016. Exploring genomic alteration in pediatric cancer using ProteinPaint. *Nat Genet* 48(1):4-6.\n\n## Related Skills\n\n- data-visualization\u002Foncoprint-mutation-matrices - Cohort-wide mutation matrix\n- variant-calling\u002Fvariant-annotation - Annotate HGVSp upstream\n- clinical-databases\u002Fvariant-prioritization - Filter variants before lollipop\n- data-visualization\u002Fcolor-palettes - CVD-safe class palettes\n- structural-biology\u002Fstructure-navigation - 3D protein structure for hotspot interpretation\n","## Version Compatibility\n\nReference examples tested with: maftools 2.18+, trackViewer 1.38+, g3-lollipop (JavaScript via R `g3viz` 1.2+), Bio.PDB 1.83+ (for domain coordinates). ProteinPaint is a hosted service.\n\nBefore using code patterns, verify installed versions match. If versions differ:\n- R: `packageVersion('\u003Cpkg>')` then `?function_name`\n- Python: `pip show \u003Cpackage>` then `help(module.function)`\n\nIf code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.\n\n# Lollipop \u002F Needle Protein Maps\n\n**\"Plot mutations on a gene's protein\"** -> Render a horizontal protein backbone with colored domain rectangles (from UniProt\u002FPfam\u002FInterPro), then stack vertical lines (\"stems\") at mutated amino-acid positions, capped with circles (\"lollipops\") whose size reflects mutation count and whose color encodes variant class. The biological story is hotspot identification — a tall stack of recurrences at a single residue (e.g., KRAS G12, PIK3CA E545\u002FH1047) is the visual signature of a driver mutation.\n\n- R: `maftools::lollipopPlot`, `trackViewer::lolliplot`, `g3viz::g3Lollipop`\n- Python: `pyLollipop` (limited maintenance); ProteinPaint via API\n- Web: cBioPortal, ProteinPaint, MutationMapper\n\n## The Single Most Important Modern Insight -- Hotspot Recurrence Drives the Plot\n\nA lollipop plot exists to identify hotspots — residues with disproportionate recurrence. The MutSig hotspot test (Lawrence 2014 *Nature* 505:495) and statisticalhotspot methods (Chang 2016 *Nat Biotechnol* 34:155) formalize this: a residue's mutation count should exceed the gene-wide background rate × residue count. Visualizing this on a domain map IS the diagnostic.\n\nKey practical consequences:\n- **Stack height ≠ frequency**: a tall lollipop at residue 600 means recurrence, not population frequency. Annotate the count.\n- **Domain colors should encode functional class** (kinase, SH2, binding), not random hue.\n- **Mark known activating\u002Finactivating residues** (G12 for KRAS, R175 for TP53) with bold labels.\n\n## Decision Tree by Question\n\n| Question | Approach |\n|----------|----------|\n| Where are the hotspots? | Lollipop with size = count; label top 5 recurrent residues |\n| Missense vs truncating distribution? | Color stems by class; tumor suppressors show truncating spread; oncogenes show missense hotspots |\n| Compare two cohorts | Stacked lollipops (one cohort up, one down) on shared domain map |\n| 3D-cluster hotspot detection? | Use HotMAPS \u002F 3D Hotspots — beyond linear lollipop |\n| Druggable position? | Add ClinVar \u002F OncoKB level annotation at the residue |\n\n## maftools::lollipopPlot\n\n**Goal:** Render per-gene mutation distribution on Pfam domain map with count-sized lollipops and class-colored stems.\n\n**Approach:** Pass MAF and gene to `lollipopPlot`; maftools queries Pfam for domain coordinates automatically; outputs ggplot2 object.\n\n```r\nlibrary(maftools)\nmaf \u003C- read.maf(maf = 'cohort.maf')\n\n# Default lollipop\nlollipopPlot(maf = maf, gene = 'TP53',\n             AACol = 'HGVSp_Short',\n             labelPos = c(175, 248, 273),                   # mark canonical hotspots\n             labPosSize = 1.0,\n             showMutationRate = TRUE,\n             domainLabelSize = 1,\n             printCount = TRUE,\n             colors = c(Missense_Mutation = '#D55E00',\n                        Nonsense_Mutation = '#000000',\n                        Frame_Shift_Del   = '#0072B2',\n                        Frame_Shift_Ins   = '#56B4E9',\n                        Splice_Site       = '#CC79A7',\n                        In_Frame_Del      = '#009E73'))\n```\n\n```r\n# Compare two cohorts -- one up, one down\nlollipopPlot2(m1 = cohort_a, m2 = cohort_b,\n              gene = 'TP53',\n              m1_name = 'Cohort A',\n              m2_name = 'Cohort B',\n              AACol1 = 'HGVSp_Short', AACol2 = 'HGVSp_Short',\n              colors = my_palette)\n```\n\n## trackViewer::lolliplot -- Fine Control over Track Layout\n\n```r\nlibrary(trackViewer)\nlibrary(GenomicRanges)\n\n# Build SNP (lollipop) and feature (domain) GRanges\nsnps \u003C- GRanges('chr17', IRanges(c(175, 248, 273), width = 1, names = c('R175H', 'R248Q', 'R273H')),\n                color = c('#D55E00', '#D55E00', '#D55E00'),\n                score = c(45, 38, 29))                       # mutation count\nfeatures \u003C- GRanges('chr17',\n                    IRanges(c(102, 323, 363), width = c(190, 30, 30),\n                            names = c('DNA-binding', 'Tetramerization', 'Regulatory')),\n                    fill = c('#0072B2', '#009E73', '#CC79A7'),\n                    height = 0.04)\n\nlolliplot(snps, features, ylab = 'Mutation count',\n          xaxis = TRUE, yaxis = TRUE)\n```\n\ntrackViewer is more flexible than maftools for non-standard layouts (custom domain sources, multi-protein stacking, integration with genome coordinates).\n\n## g3viz \u002F g3-lollipop -- Interactive HTML\n\n```r\nlibrary(g3viz)\nmutation_data \u003C- hgvspChange2protein(maf, gene = 'TP53')\ng3Lollipop(mutation_data,\n           gene.symbol = 'TP53',\n           protein.change.col = 'AA_Change',\n           plot.options = g3Lollipop.theme(theme.name = 'nature'),\n           output.filename = 'TP53_lollipop.html')\n```\n\ng3-lollipop produces an interactive HTML — hover tooltips, click-to-filter, exportable. Suitable for supplementary HTML supplement; not for journal figure submission directly.\n\n## Domain Annotation Sources\n\n| Source | Format | Stability | Caveat |\n|--------|--------|-----------|--------|\n| Pfam (via maftools) | Pfam-A domain coordinates | Updated occasionally | maftools caches local; may lag Pfam release |\n| UniProt | Domain + Region features (varied types) | Daily updates | API-driven; rate limits |\n| InterPro | Integrated multi-database | More inclusive than Pfam | Different sub-classifications |\n| Custom | Hand-curated for specific paper | Reproducible | Cite source |\n\nFor canonical isoform: maftools uses the canonical UniProt isoform by default. For specific isoform: pass `refSeqID` or `proteinID` explicitly. Mutations annotated against a different isoform will be off-by-residue.\n\n## Per-Method Failure Modes\n\n### Mutations not labeled with AA position\n\n**Trigger:** MAF column `HGVSp_Short` missing or malformed.\n\n**Mechanism:** maftools expects `HGVSp_Short` (e.g., 'p.R175H'); falls back to other columns inconsistently.\n\n**Symptom:** \"No mutations to plot\" or wrong positions.\n\n**Fix:** Verify `HGVSp_Short` column exists; reformat from HGVSp if needed. Use `AACol` argument to specify which column.\n\n### Isoform mismatch\n\n**Trigger:** Mutations called against ENST00000269305 but plotted against canonical ENST00000288602 (TP53).\n\n**Mechanism:** Residue numbering differs across isoforms.\n\n**Symptom:** Known R175H plotted at R177H or in a different domain.\n\n**Fix:** Annotate the isoform in the figure caption; pass `proteinID` to `lollipopPlot` to force a specific isoform.\n\n### Domain map outdated\n\n**Trigger:** maftools' cached Pfam annotation is older than the protein's current Pfam release.\n\n**Mechanism:** Domain coordinates can shift across Pfam versions.\n\n**Symptom:** Domain boundaries off by a few residues; published-figure mismatch.\n\n**Fix:** Pull domain coordinates from UniProt directly (current); pass via `trackViewer::lolliplot` features.\n\n### Recurrence at low-coverage region overinterpreted\n\n**Trigger:** \"Hotspot\" identified at a residue with high coverage variance — looks recurrent but is a sequencing artifact.\n\n**Mechanism:** Capture-bait coverage variability; some residues sequenced more deeply.\n\n**Symptom:** \"Hotspot\" in untargeted region; not validated in WGS.\n\n**Fix:** Verify recurrence in independent cohort (TCGA Pan-Cancer + ICGC); use MutSig hotspot test (Lawrence 2014) for formal hotspot calling.\n\n### Counts encoded only as size; no actual numbers shown\n\n**Trigger:** Default `printCount = FALSE`.\n\n**Mechanism:** Size-encoded counts beyond ~10 saturate visually.\n\n**Symptom:** Reader cannot tell whether the top lollipop is 30 vs 300 mutations.\n\n**Fix:** `printCount = TRUE` annotates each lollipop with its count.\n\n### Domain colors random; no functional grouping\n\n**Trigger:** Default rainbow domain colors.\n\n**Mechanism:** Domains colored by accident, not by function class.\n\n**Symptom:** Reader cannot quickly identify which domain is the kinase.\n\n**Fix:** Manually map domain colors by functional class (kinase = blue, binding = green, regulatory = purple).\n\n## Reconciliation: When Hotspots Disagree\n\n| Pattern | Cause | Action |\n|---------|-------|--------|\n| Hotspot in cohort A absent in B | Cohort A enriched for a subtype OR small N | Stratify by subtype; cite both N |\n| 3D hotspot test calls residues not on lollipop | Linear adjacency misses 3D proximity | Use HotMAPS \u002F 3D Hotspots for spatial clusters |\n| Recurrent residue lacks OncoKB evidence | Novel hotspot OR sequencing artifact | Confirm via independent cohort + WGS |\n| Frame-shift indels not aligned to expected codon | Different annotation tool (VEP vs SnpEff) | Standardize annotation; verify HGVSp |\n\n**Operational rule:** annotate the isoform; show absolute counts on lollipops; verify hotspots against TCGA Pan-Cancer + ICGC before novel-hotspot claims.\n\n## Quantitative Thresholds\n\n| Threshold | Value | Source |\n|-----------|-------|--------|\n| Hotspot recurrence cutoff | depends on gene length + cohort size | Lawrence 2014 — formal MutSig test |\n| Display all mutations vs filter | Recurrent (count ≥ 2) for clarity; show all in supplement | Visualization practical |\n| Domain source default | Pfam (maftools default); UniProt for current | Tool-specific |\n| Cohort N for credible hotspot | ≥200 for a single gene; pan-cancer for novel | Standard practice |\n\n## Common Errors\n\n| Error \u002F symptom | Cause | Solution |\n|-----------------|-------|----------|\n| No mutations on plot | HGVSp_Short column missing | Verify \u002F reformat from HGVSp |\n| Mutations at wrong position | Isoform mismatch | Specify proteinID; document isoform |\n| Domain boundaries slightly off | maftools Pfam cache outdated | Pull from UniProt; use trackViewer |\n| Hotspot size saturates | Counts >10 indistinguishable by size | `printCount = TRUE` to annotate numbers |\n| Random domain colors | Default rainbow | Manual mapping by functional class |\n| Novel hotspot from one cohort | Insufficient N | Verify in TCGA + ICGC |\n\n## References\n\n- Chang MT, Asthana S, Gao SP, et al. 2016. Identifying recurrent mutations in cancer reveals widespread lineage diversity and mutational specificity. *Nat Biotechnol* 34(2):155-163.\n- Gao J, Aksoy BA, Dogrusoz U, et al. 2013. Integrative analysis of complex cancer genomics and clinical profiles using the cBioPortal. *Sci Signal* 6(269):pl1.\n- Lawrence MS, Stojanov P, Mermel CH, et al. 2014. Discovery and saturation analysis of cancer genes across 21 tumour types. *Nature* 505:495-501.\n- Mayakonda A, Lin DC, Assenov Y, Plass C, Koeffler HP. 2018. Maftools: efficient and comprehensive analysis of somatic variants in cancer. *Genome Res* 28(11):1747-1756.\n- Ou J, Zhu LJ. 2019. trackViewer: a Bioconductor package for interactive and integrative visualization of multi-omics data. *Nat Methods* 16:453-454.\n- Zhou X, Edmonson MN, Wilkinson MR, et al. 2016. Exploring genomic alteration in pediatric cancer using ProteinPaint. *Nat Genet* 48(1):4-6.\n\n## Related Skills\n\n- data-visualization\u002Foncoprint-mutation-matrices - Cohort-wide mutation matrix\n- variant-calling\u002Fvariant-annotation - Annotate HGVSp upstream\n- clinical-databases\u002Fvariant-prioritization - Filter variants before lollipop\n- data-visualization\u002Fcolor-palettes - CVD-safe class palettes\n- structural-biology\u002Fstructure-navigation - 3D protein structure for hotspot interpretation\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","data-visualization\u002Flollipop-protein-maps\u002FSKILL.md","maftools","GPTomics\u002FbioSkills","main","2d1750717747097b602acf30bd09a7cbd4b4c6ea","awesome_skills\u002Fbiology\u002Fbio-data-visualization-lollipop-protein-maps","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-data-visualization-lollipop-protein-maps",{"tool":42,"command":43},"bunx","bunx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-data-visualization-lollipop-protein-maps",{"tool":45,"command":46},"pnpm","pnpm dlx skills add Mr-Nobody-Anonymous\u002FAll-skills --skill bio-data-visualization-lollipop-protein-maps","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-data-visualization-lollipop-protein-maps\u002FSKILL.md",true,[50,56],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"examples\u002Flollipop_phd.R","OTHER","其他",3805,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-data-visualization-lollipop-protein-maps\u002Fexamples\u002Flollipop_phd.R",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"usage-guide.md","REFERENCE","参考文档",4295,"https:\u002F\u002Fgithub.com\u002FMr-Nobody-Anonymous\u002FAll-skills\u002Fblob\u002Fmain\u002Fawesome_skills\u002Fbiology\u002Fbio-data-visualization-lollipop-protein-maps\u002Fusage-guide.md",[63,71,78,85,92,99],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":70},"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":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":70},"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":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":70},"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":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":70},"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":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":70},"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":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":70},"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",[],[]]