Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat(genome): add 33 new curated SNP markers across 12 new health categories
Adam Eivy40c7bca85053
diff --git a/.changelog/v0.12.x.md b/.changelog/v0.12.x.mdindex 61a3b1aef4..300f0b1a5d 100644--- a/.changelog/v0.12.x.md+++ b/.changelog/v0.12.x.md@@ -698,6 +698,12 @@ This release adds branch management and automated release workflow capabilities- `client/src/components/digital-twin/tabs/GenomeTab.jsx` — Integrated EpigeneticTracker component between curated markers and ClinVar sections- `client/src/services/api.js` — Added 7 epigenetic API functions+### Digital Twin — Expanded Curated Genome Marker Database+- **33 new SNP markers** added across 12 new categories and 6 expanded existing categories, bringing the curated database from ~46 to ~79 well-established, GWAS-replicated markers+- **12 new health categories**: Blood Sugar & Diabetes, Gut Health & Digestion, Autoimmune Risk, Thyroid & Hormones, Eye Health, Mental Health, Bone Health, Pharmacogenomics, Cancer Predisposition, Hair Loss, Hearing, Pain Sensitivity+- **6 expanded categories**: Cardiovascular (+PCSK9), Nutrient Metabolism (+FADS1), Inflammation (+CRP), Longevity (+TERC), Sleep & Circadian (+MTNR1B), Skin & UV Response (+TYK2, IL23R)+- **New category colors**: 7 additional Tailwind color variants (teal, pink, fuchsia, lime, slate, stone, zinc) for visual differentiation of the expanded category set+### Digital Twin — Chronotype Gene Markers & Cross-Project Linking- **2 new chronotype SNP markers** added to the Sleep & Circadian category in the curated genome marker set:- **PER2 (rs35333999)**: Core circadian clock gene driving the negative feedback loop; variants affect morning/evening preference and are linked to Familial Advanced Sleep Phase Syndromediff --git a/client/src/components/digital-twin/GenomeCategoryCard.jsx b/client/src/components/digital-twin/GenomeCategoryCard.jsxindex dd6aaae767..5df1bf0478 100644--- a/client/src/components/digital-twin/GenomeCategoryCard.jsx+++ b/client/src/components/digital-twin/GenomeCategoryCard.jsx@@ -38,7 +38,14 @@ const COLOR_MAP = {cyan: 'border-cyan-500/40 bg-cyan-950/40',violet: 'border-violet-500/40 bg-violet-950/40',sky: 'border-sky-500/40 bg-sky-950/40',- yellow: 'border-yellow-500/40 bg-yellow-950/40'+ yellow: 'border-yellow-500/40 bg-yellow-950/40',+ teal: 'border-teal-500/40 bg-teal-950/40',+ pink: 'border-pink-500/40 bg-pink-950/40',+ fuchsia: 'border-fuchsia-500/40 bg-fuchsia-950/40',+ lime: 'border-lime-500/40 bg-lime-950/40',+ slate: 'border-slate-500/40 bg-slate-950/40',+ stone: 'border-stone-500/40 bg-stone-950/40',+ zinc: 'border-zinc-500/40 bg-zinc-950/40'};export default function GenomeCategoryCard({ category, label, emoji, color, markers, onEditNotes, onDeleteMarker }) {diff --git a/client/src/components/digital-twin/tabs/GenomeTab.jsx b/client/src/components/digital-twin/tabs/GenomeTab.jsxindex 3da3c8d4d9..e965e191d7 100644--- a/client/src/components/digital-twin/tabs/GenomeTab.jsx+++ b/client/src/components/digital-twin/tabs/GenomeTab.jsx@@ -22,7 +22,19 @@ const CATEGORY_META = {cognitive_decline: { emoji: '\u{1F9D3}', label: 'Cognitive Decline & Dementia Risk', color: 'rose' },sleep: { emoji: '\u{1F319}', label: 'Sleep & Circadian', color: 'violet' },athletic: { emoji: '\u{1F4AA}', label: 'Athletic Performance', color: 'sky' },- skin: { emoji: '\u2600\uFE0F', label: 'Skin & UV Response', color: 'yellow' }+ skin: { emoji: '\u2600\uFE0F', label: 'Skin & UV Response', color: 'yellow' },+ diabetes: { emoji: '\u{1FA78}', label: 'Blood Sugar & Diabetes', color: 'amber' },+ gut_health: { emoji: '\u{1F966}', label: 'Gut Health & Digestion', color: 'lime' },+ autoimmune: { emoji: '\u{1F6E1}\uFE0F', label: 'Autoimmune Risk', color: 'pink' },+ thyroid: { emoji: '\u{1F9EA}', label: 'Thyroid & Hormones', color: 'teal' },+ eye_health: { emoji: '\u{1F441}\uFE0F', label: 'Eye Health', color: 'sky' },+ mental_health: { emoji: '\u{1F9E0}', label: 'Mental Health', color: 'violet' },+ bone_health: { emoji: '\u{1F9B4}', label: 'Bone Health', color: 'stone' },+ pharmacogenomics: { emoji: '\u{1F48A}', label: 'Pharmacogenomics', color: 'fuchsia' },+ cancer_risk: { emoji: '\u{1F9EC}', label: 'Cancer Predisposition', color: 'red' },+ hair: { emoji: '\u2702\uFE0F', label: 'Hair Loss', color: 'zinc' },+ hearing: { emoji: '\u{1F442}', label: 'Hearing', color: 'slate' },+ pain: { emoji: '\u26A1', label: 'Pain Sensitivity', color: 'orange' }};const STAR_LABELS = ['No criteria', 'Single submitter', 'Multiple submitters', 'Expert panel', 'Practice guideline'];@@ -327,7 +339,7 @@ export default function GenomeTab() {}// Sort categories by a defined order- const categoryOrder = ['longevity', 'cardiovascular', 'tumor_suppression', 'cognitive_decline', 'iron', 'methylation', 'nutrient', 'cognitive', 'caffeine', 'sleep', 'athletic', 'detox', 'inflammation', 'skin'];+ const categoryOrder = ['longevity', 'cardiovascular', 'tumor_suppression', 'cancer_risk', 'cognitive_decline', 'mental_health', 'iron', 'methylation', 'nutrient', 'diabetes', 'gut_health', 'cognitive', 'caffeine', 'sleep', 'athletic', 'detox', 'inflammation', 'autoimmune', 'thyroid', 'bone_health', 'skin', 'eye_health', 'pharmacogenomics', 'hair', 'hearing', 'pain'];const sortedCategories = Object.keys(grouped).sort((a, b) => {const ai = categoryOrder.indexOf(a);const bi = categoryOrder.indexOf(b);diff --git a/server/lib/curatedGenomeMarkers.js b/server/lib/curatedGenomeMarkers.jsindex dccde612e5..208abf7abf 100644--- a/server/lib/curatedGenomeMarkers.js+++ b/server/lib/curatedGenomeMarkers.js@@ -17,7 +17,19 @@ export const MARKER_CATEGORIES = {cognitive_decline: { label: 'Cognitive Decline & Dementia Risk', icon: 'BrainCog', color: 'rose' },sleep: { label: 'Sleep & Circadian', icon: 'Moon', color: 'violet' },athletic: { label: 'Athletic Performance', icon: 'Dumbbell', color: 'sky' },- skin: { label: 'Skin & UV Response', icon: 'Sun', color: 'yellow' }+ skin: { label: 'Skin & UV Response', icon: 'Sun', color: 'yellow' },+ diabetes: { label: 'Blood Sugar & Diabetes', icon: 'Droplets', color: 'amber' },+ gut_health: { label: 'Gut Health & Digestion', icon: 'Salad', color: 'lime' },+ autoimmune: { label: 'Autoimmune Risk', icon: 'ShieldAlert', color: 'pink' },+ thyroid: { label: 'Thyroid & Hormones', icon: 'Activity', color: 'teal' },+ eye_health: { label: 'Eye Health', icon: 'Eye', color: 'sky' },+ mental_health: { label: 'Mental Health', icon: 'Brain', color: 'violet' },+ bone_health: { label: 'Bone Health', icon: 'Bone', color: 'stone' },+ pharmacogenomics: { label: 'Pharmacogenomics', icon: 'Pill', color: 'fuchsia' },+ cancer_risk: { label: 'Cancer Predisposition', icon: 'ShieldCheck', color: 'red' },+ hair: { label: 'Hair Loss', icon: 'Scissors', color: 'zinc' },+ hearing: { label: 'Hearing', icon: 'Ear', color: 'slate' },+ pain: { label: 'Pain Sensitivity', icon: 'Zap', color: 'orange' }};/**@@ -859,6 +871,569 @@ export const CURATED_MARKERS = [{ genotypes: ['A/T', 'T/A'], status: 'typical' },{ genotypes: ['A/A'], status: 'concern' }]+ },++ // === BLOOD SUGAR & DIABETES ===+ {+ rsid: 'rs7903146',+ gene: 'TCF7L2',+ name: 'Type 2 Diabetes Risk (TCF7L2)',+ category: 'diabetes',+ description: 'TCF7L2 is the strongest common genetic risk factor for type 2 diabetes, replicated across all ethnicities. The T allele impairs insulin secretion from pancreatic beta cells via altered Wnt signaling. Each T allele increases T2D risk ~1.4x.',+ implications: {+ beneficial: 'C/C — no risk alleles. Standard insulin secretion and beta cell function.',+ typical: 'C/T — one risk allele. ~1.4x increased T2D risk. Maintain healthy weight and monitor fasting glucose.',+ concern: 'T/T — two risk alleles. ~2x increased T2D risk. Impaired insulin secretion. Regular HbA1c monitoring, weight management, and exercise strongly recommended.'+ },+ rules: [+ { genotypes: ['C/C'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['T/T'], status: 'concern' }+ ]+ },+ {+ rsid: 'rs5219',+ gene: 'KCNJ11',+ name: 'Potassium Channel / Insulin Secretion (E23K)',+ category: 'diabetes',+ description: 'KCNJ11 encodes the Kir6.2 subunit of the ATP-sensitive potassium channel in pancreatic beta cells controlling insulin release. The T allele (Lys23) reduces insulin secretion efficiency.',+ implications: {+ beneficial: 'C/C (Glu/Glu) — normal potassium channel function. Standard insulin secretion.',+ typical: 'C/T — heterozygous. Mildly reduced insulin release efficiency.',+ concern: 'T/T (Lys/Lys) — impaired potassium channel regulation. Reduced insulin secretion. ~1.3x T2D risk. Monitor glucose levels.'+ },+ rules: [+ { genotypes: ['C/C'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['T/T'], status: 'concern' }+ ]+ },+ {+ rsid: 'rs13266634',+ gene: 'SLC30A8',+ name: 'Zinc Transporter 8 / Islet Function',+ category: 'diabetes',+ description: 'SLC30A8 encodes a zinc transporter critical for insulin crystallization and storage in pancreatic beta cells. The C allele (Arg325) increases T2D risk ~1.15x per allele. Loss-of-function variants are protective, making this a drug target.',+ implications: {+ beneficial: 'T/T (Trp/Trp) — protective variant. Enhanced beta cell function.',+ typical: 'C/T — one risk allele. Standard islet zinc transport.',+ concern: 'C/C (Arg/Arg) — reduced zinc transport efficiency. Mildly increased T2D risk.'+ },+ rules: [+ { genotypes: ['T/T'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['C/C'], status: 'concern' }+ ]+ },++ // === GUT HEALTH & DIGESTION ===+ {+ rsid: 'rs4988235',+ gene: 'MCM6 (LCT regulatory)',+ name: 'Lactase Persistence / Lactose Tolerance',+ category: 'gut_health',+ description: 'This regulatory SNP upstream of the LCT gene determines whether lactase production continues into adulthood. The T allele maintains lactase expression. C/C leads to lactase non-persistence (lactose intolerance). One of the strongest signals of recent human natural selection.',+ implications: {+ beneficial: 'T/T — lactase persistent. Full lactose digestion into adulthood.',+ typical: 'C/T — heterozygous. Usually sufficient lactase for moderate dairy consumption.',+ concern: 'C/C — lactase non-persistent. Reduced or absent lactase in adulthood. Likely lactose intolerant. Consider lactase supplements or dairy alternatives.'+ },+ rules: [+ { genotypes: ['T/T'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['C/C'], status: 'concern' }+ ]+ },+ {+ rsid: 'rs2187668',+ gene: 'HLA-DQA1 (DQ2.5)',+ name: 'Celiac Disease Risk (HLA-DQ2.5)',+ category: 'gut_health',+ description: 'HLA-DQ2.5 is carried by ~90% of celiac disease patients. Homozygous carriers have the highest celiac risk (~1 in 10 lifetime). Necessary but not sufficient — ~30% of the general population carries DQ2.5 but only ~3% develop celiac.',+ implications: {+ beneficial: 'T/T — does not carry the DQ2.5 risk haplotype. Lower celiac risk.',+ typical: 'C/T — heterozygous DQ2.5 carrier. Celiac possible but most carriers never develop it. If symptomatic, consider tTG-IgA antibody testing.',+ concern: 'C/C — homozygous DQ2.5 carrier. Highest genetic celiac risk (~5-10% lifetime). Screen with tTG-IgA if GI symptoms, iron deficiency, or family history.'+ },+ rules: [+ { genotypes: ['T/T'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['C/C'], status: 'concern' }+ ]+ },++ // === AUTOIMMUNE RISK ===+ {+ rsid: 'rs2476601',+ gene: 'PTPN22',+ name: 'Autoimmune Susceptibility (R620W)',+ category: 'autoimmune',+ description: 'PTPN22 R620W is one of the strongest non-HLA autoimmune risk variants, replicated across type 1 diabetes, rheumatoid arthritis, lupus, Graves disease, and other autoimmune conditions. The A allele alters T-cell and B-cell receptor signaling thresholds.',+ implications: {+ beneficial: 'G/G — normal PTPN22 function. Standard immune self-tolerance.',+ concern: 'G/A — heterozygous carrier. ~1.5-2x increased risk across multiple autoimmune diseases. Monitor for symptoms.',+ major_concern: 'A/A — homozygous variant. Substantially increased autoimmune risk. Be vigilant for thyroid, joint, or systemic autoimmune symptoms.'+ },+ rules: [+ { genotypes: ['G/G'], status: 'beneficial' },+ { genotypes: ['G/A', 'A/G'], status: 'concern' },+ { genotypes: ['A/A'], status: 'major_concern' }+ ]+ },+ {+ rsid: 'rs3184504',+ gene: 'SH2B3',+ name: 'Immune & Cardiovascular Cross-Risk (SH2B3)',+ category: 'autoimmune',+ description: 'SH2B3 (LNK) regulates signaling in immune and hematopoietic cells. The T allele is associated with increased risk for celiac disease, type 1 diabetes, and cardiovascular disease simultaneously — a cross-domain risk marker. Highly replicated in GWAS.',+ implications: {+ beneficial: 'C/C — normal SH2B3 signaling. Standard immune and cardiovascular risk baseline.',+ typical: 'C/T — one risk allele. Mildly elevated autoimmune and cardiovascular risk.',+ concern: 'T/T — two risk alleles. Elevated risk across celiac, type 1 diabetes, and cardiovascular disease.'+ },+ rules: [+ { genotypes: ['C/C'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['T/T'], status: 'concern' }+ ]+ },++ // === THYROID & HORMONES ===+ {+ rsid: 'rs965513',+ gene: 'FOXE1',+ name: 'Thyroid Disease Susceptibility (FOXE1)',+ category: 'thyroid',+ description: 'FOXE1 (TTF-2) is a thyroid transcription factor essential for thyroid development. This variant is the strongest common genetic risk factor for both hypothyroidism and thyroid cancer. The A allele increases risk ~1.4x per copy.',+ implications: {+ beneficial: 'G/G — lower genetic risk for thyroid disease.',+ typical: 'A/G — one risk allele. Mildly elevated thyroid disease susceptibility.',+ concern: 'A/A — two risk alleles. Elevated risk for hypothyroidism and thyroid cancer. Regular TSH screening recommended.'+ },+ rules: [+ { genotypes: ['G/G'], status: 'beneficial' },+ { genotypes: ['A/G', 'G/A'], status: 'typical' },+ { genotypes: ['A/A'], status: 'concern' }+ ]+ },+ {+ rsid: 'rs225014',+ gene: 'DIO2',+ name: 'Thyroid Hormone Activation (Thr92Ala)',+ category: 'thyroid',+ description: 'DIO2 encodes type 2 deiodinase, converting T4 (inactive) to T3 (active thyroid hormone) in brain and muscle. The Ala92 variant reduces local T3 production. Some patients report persistent hypothyroid symptoms despite normal TSH.',+ implications: {+ beneficial: 'C/C (Thr/Thr) — normal DIO2 activity. Efficient T4-to-T3 conversion.',+ typical: 'C/T — one Ala allele. Mildly reduced tissue T3 levels. Some hypothyroid patients benefit from combination T4+T3 therapy.',+ concern: 'T/T (Ala/Ala) — reduced local T3 production. May experience hypothyroid symptoms despite normal TSH. Discuss T3/T4 ratio with endocrinologist.'+ },+ rules: [+ { genotypes: ['C/C'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['T/T'], status: 'concern' }+ ]+ },++ // === EYE HEALTH ===+ {+ rsid: 'rs1061170',+ gene: 'CFH',+ name: 'Age-Related Macular Degeneration Risk (CFH Y402H)',+ category: 'eye_health',+ description: 'Complement factor H regulates the alternative complement pathway in the retina. Y402H is the strongest genetic risk factor for age-related macular degeneration (AMD), increasing risk ~2.5x per allele. One of the first GWAS successes.',+ implications: {+ beneficial: 'T/T (Tyr/Tyr) — normal complement regulation. Lower AMD risk.',+ concern: 'T/C — one risk allele. ~2.5x increased AMD risk. Regular eye exams after age 50. Consider lutein/zeaxanthin supplementation.',+ major_concern: 'C/C (His/His) — ~6x increased AMD risk. Prioritize retinal screening, AREDS2 formula (lutein/zeaxanthin), smoking cessation, and UV protection.'+ },+ rules: [+ { genotypes: ['T/T'], status: 'beneficial' },+ { genotypes: ['T/C', 'C/T'], status: 'concern' },+ { genotypes: ['C/C'], status: 'major_concern' }+ ]+ },+ {+ rsid: 'rs10490924',+ gene: 'ARMS2/HTRA1',+ name: 'Macular Degeneration Risk (ARMS2)',+ category: 'eye_health',+ description: 'ARMS2/HTRA1 on chromosome 10q26 is the second major AMD locus after CFH. The T allele increases risk ~2.7x per copy. Together with CFH, these two loci explain the majority of genetic AMD risk.',+ implications: {+ beneficial: 'G/G — lower ARMS2-mediated AMD risk.',+ concern: 'G/T — one risk allele. ~2.7x increased AMD risk. Combined with CFH genotype for AMD risk stratification.',+ major_concern: 'T/T — ~7x increased AMD risk from this locus alone. Regular retinal screening strongly recommended. AREDS2 supplementation and UV protection.'+ },+ rules: [+ { genotypes: ['G/G'], status: 'beneficial' },+ { genotypes: ['G/T', 'T/G'], status: 'concern' },+ { genotypes: ['T/T'], status: 'major_concern' }+ ]+ },++ // === MENTAL HEALTH ===+ {+ rsid: 'rs6311',+ gene: 'HTR2A',+ name: 'Serotonin Receptor 2A (-1438 A/G)',+ category: 'mental_health',+ description: 'HTR2A encodes the serotonin 2A receptor, a primary target of many antidepressants and antipsychotics. The -1438 A/G promoter variant affects receptor expression levels and antidepressant response.',+ implications: {+ beneficial: 'G/G — standard HTR2A expression. Typical serotonin receptor density.',+ typical: 'A/G — intermediate HTR2A expression. Moderate serotonin receptor variation.',+ concern: 'A/A — increased HTR2A expression. Associated with altered serotonin signaling, increased anxiety sensitivity, and variable SSRI response. May benefit from pharmacogenomic-guided antidepressant selection.'+ },+ rules: [+ { genotypes: ['G/G'], status: 'beneficial' },+ { genotypes: ['A/G', 'G/A'], status: 'typical' },+ { genotypes: ['A/A'], status: 'concern' }+ ]+ },+ {+ rsid: 'rs4570625',+ gene: 'TPH2',+ name: 'Tryptophan Hydroxylase 2 / Serotonin Synthesis',+ category: 'mental_health',+ description: 'TPH2 is the rate-limiting enzyme for serotonin synthesis in the brain. The T allele is associated with reduced amygdala regulation, increased anxiety, and susceptibility to depression. Replicated in neuroimaging and psychiatric genetics studies.',+ implications: {+ beneficial: 'G/G — normal TPH2 expression. Standard brain serotonin synthesis.',+ typical: 'G/T — one variant allele. Mildly altered serotonin synthesis. May have increased emotional reactivity.',+ concern: 'T/T — reduced TPH2 expression. Lower brain serotonin synthesis. Increased anxiety and depression susceptibility. Regular exercise and stress management particularly beneficial.'+ },+ rules: [+ { genotypes: ['G/G'], status: 'beneficial' },+ { genotypes: ['G/T', 'T/G'], status: 'typical' },+ { genotypes: ['T/T'], status: 'concern' }+ ]+ },+ {+ rsid: 'rs27072',+ gene: 'SLC6A3 (DAT1)',+ name: 'Dopamine Transporter (DAT1)',+ category: 'mental_health',+ description: 'SLC6A3 encodes the dopamine transporter which clears dopamine from the synapse. The G allele is associated with increased DAT expression (faster dopamine clearance, lower synaptic dopamine), linked to ADHD susceptibility.',+ implications: {+ beneficial: 'C/C — lower DAT expression. Standard synaptic dopamine levels.',+ typical: 'C/G — intermediate DAT expression. Moderate dopamine clearance.',+ concern: 'G/G — higher DAT expression. Faster dopamine clearance. Associated with ADHD traits and stimulant medication response.'+ },+ rules: [+ { genotypes: ['C/C'], status: 'beneficial' },+ { genotypes: ['C/G', 'G/C'], status: 'typical' },+ { genotypes: ['G/G'], status: 'concern' }+ ]+ },++ // === BONE HEALTH ===+ {+ rsid: 'rs3736228',+ gene: 'LRP5',+ name: 'Bone Mineral Density (LRP5 A1330V)',+ category: 'bone_health',+ description: 'LRP5 is essential for Wnt signaling in osteoblasts and is the strongest single-gene determinant of bone mineral density. The T allele reduces Wnt signaling and is associated with lower BMD and increased fracture risk. Replicated in GEFOS consortium GWAS (>80,000 individuals).',+ implications: {+ beneficial: 'C/C (Ala/Ala) — normal LRP5 Wnt signaling. Standard bone mineral density.',+ typical: 'C/T — one Val allele. Mildly reduced BMD. Ensure adequate calcium, vitamin D, and weight-bearing exercise.',+ concern: 'T/T (Val/Val) — reduced Wnt signaling. Lower bone mineral density and ~1.5x fracture risk. DEXA scan recommended. Prioritize calcium, vitamin D, and resistance training.'+ },+ rules: [+ { genotypes: ['C/C'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['T/T'], status: 'concern' }+ ]+ },+ {+ rsid: 'rs1800012',+ gene: 'COL1A1',+ name: 'Collagen Type I Alpha 1 / Osteoporosis',+ category: 'bone_health',+ description: 'COL1A1 encodes the major structural protein in bone. The Sp1 binding site polymorphism alters the collagen alpha1/alpha2 ratio, weakening bone structure. Associated with reduced BMD, vertebral fractures, and osteoporosis.',+ implications: {+ beneficial: 'G/G — normal collagen ratio. Standard bone structural integrity.',+ typical: 'G/T — heterozygous. Mildly altered collagen ratio. Slightly increased fracture risk.',+ concern: 'T/T — significantly altered collagen ratio. Increased osteoporosis and vertebral fracture risk. Bone density screening recommended.'+ },+ rules: [+ { genotypes: ['G/G'], status: 'beneficial' },+ { genotypes: ['G/T', 'T/G'], status: 'typical' },+ { genotypes: ['T/T'], status: 'concern' }+ ]+ },++ // === PHARMACOGENOMICS ===+ {+ rsid: 'rs1065852',+ gene: 'CYP2D6',+ name: 'Drug Metabolism / CYP2D6 (C100T)',+ category: 'pharmacogenomics',+ description: 'CYP2D6 metabolizes ~25% of all prescription drugs including codeine, tamoxifen, antidepressants, beta-blockers, and antipsychotics. Poor metabolizers cannot activate codeine to morphine and may not benefit from tamoxifen.',+ implications: {+ beneficial: 'C/C — normal CYP2D6 activity. Standard drug metabolism for CYP2D6 substrates.',+ typical: 'C/T — intermediate metabolizer. May need dose adjustments for some CYP2D6 substrates.',+ concern: 'T/T — reduced CYP2D6 activity. Codeine may be ineffective. Tamoxifen activation impaired. Pharmacogenomic testing recommended before CYP2D6-dependent drugs.'+ },+ rules: [+ { genotypes: ['C/C'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['T/T'], status: 'concern' }+ ]+ },+ {+ rsid: 'rs4148323',+ gene: 'UGT1A1',+ name: 'Bilirubin Conjugation / Gilbert Syndrome (G71R)',+ category: 'pharmacogenomics',+ description: 'UGT1A1 conjugates bilirubin for excretion. The A allele reduces enzyme activity, causing Gilbert syndrome (benign unconjugated hyperbilirubinemia). Also affects metabolism of irinotecan (chemo) and atazanavir (HIV).',+ implications: {+ beneficial: 'G/G — normal UGT1A1 activity. Standard bilirubin conjugation.',+ typical: 'G/A — carrier. Mildly elevated bilirubin. Usually asymptomatic.',+ concern: 'A/A — reduced UGT1A1 activity. Gilbert syndrome likely. Usually benign but critical for irinotecan dosing (severe toxicity risk). Inform oncologist if undergoing chemotherapy.'+ },+ rules: [+ { genotypes: ['G/G'], status: 'beneficial' },+ { genotypes: ['G/A', 'A/G'], status: 'typical' },+ { genotypes: ['A/A'], status: 'concern' }+ ]+ },+ {+ rsid: 'rs9923231',+ gene: 'VKORC1',+ name: 'Warfarin Sensitivity / VKORC1',+ category: 'pharmacogenomics',+ description: 'VKORC1 is the target enzyme of warfarin. This promoter variant is the strongest genetic determinant of warfarin dose, explaining ~25% of dose variability. The T allele reduces VKORC1 expression, requiring lower warfarin doses. FDA-approved pharmacogenomic dosing label.',+ implications: {+ beneficial: 'G/G — normal VKORC1 expression. Standard warfarin dose likely (~5-7 mg/day).',+ typical: 'G/T — intermediate VKORC1 expression. Moderate warfarin sensitivity (~3-5 mg/day typical).',+ concern: 'T/T — low VKORC1 expression. High warfarin sensitivity (~1-3 mg/day). Over-anticoagulation and bleeding risk at standard doses. Pharmacogenomic dosing strongly recommended.'+ },+ rules: [+ { genotypes: ['G/G'], status: 'beneficial' },+ { genotypes: ['G/T', 'T/G'], status: 'typical' },+ { genotypes: ['T/T'], status: 'concern' }+ ]+ },+ {+ rsid: 'rs1799853',+ gene: 'CYP2C9',+ name: 'Drug Metabolism / CYP2C9 (*2)',+ category: 'pharmacogenomics',+ description: 'CYP2C9 metabolizes ~15% of prescription drugs including warfarin, phenytoin, NSAIDs, and losartan. The *2 allele reduces enzyme activity ~30%. Combined with VKORC1, explains ~50% of warfarin dose variability. FDA pharmacogenomic dosing label.',+ implications: {+ beneficial: 'C/C — normal CYP2C9 activity (*1/*1). Standard drug metabolism.',+ typical: 'C/T — CYP2C9 *1/*2 intermediate metabolizer. ~30% reduced activity. Consider lower starting doses for warfarin, NSAIDs.',+ concern: 'T/T — CYP2C9 *2/*2 poor metabolizer. ~70% reduced activity. Significantly impaired warfarin, NSAID, and phenytoin metabolism. Pharmacogenomic dosing recommended.'+ },+ rules: [+ { genotypes: ['C/C'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['T/T'], status: 'concern' }+ ]+ },++ // === CANCER PREDISPOSITION ===+ {+ rsid: 'rs61764370',+ gene: 'KRAS (3\'UTR)',+ name: 'KRAS let-7 MicroRNA Binding Variant',+ category: 'cancer_risk',+ description: 'This variant in the 3\'UTR of KRAS disrupts a let-7 microRNA binding site, increasing KRAS expression. Associated with increased risk for non-small cell lung cancer, ovarian cancer, and triple-negative breast cancer. Particularly relevant for never-smokers with lung cancer.',+ implications: {+ beneficial: 'T/T — normal let-7 regulation of KRAS. Standard cancer risk baseline.',+ concern: 'G/T — one variant allele. Increased KRAS expression. ~1.3x lung and ovarian cancer risk. Follow standard screening guidelines closely.',+ major_concern: 'G/G — significantly increased KRAS expression. Enhanced screening consideration, especially with family history of lung or ovarian cancer.'+ },+ rules: [+ { genotypes: ['T/T'], status: 'beneficial' },+ { genotypes: ['G/T', 'T/G'], status: 'concern' },+ { genotypes: ['G/G'], status: 'major_concern' }+ ]+ },++ // === HAIR LOSS ===+ {+ rsid: 'rs2180439',+ gene: '20p11.22',+ name: 'Male Pattern Baldness Risk (20p11)',+ category: 'hair',+ description: 'This locus on chromosome 20p11 is one of the strongest non-X-linked genetic contributors to androgenetic alopecia (male pattern baldness). The C allele increases baldness risk ~1.6x per copy. Unlike X-linked AR gene variants, this is autosomal and inherited from both parents.',+ implications: {+ beneficial: 'T/T — lower genetic risk for androgenetic alopecia from this locus.',+ typical: 'C/T — one risk allele. Moderate genetic predisposition to hair loss.',+ concern: 'C/C — two risk alleles. ~2.5x increased androgenetic alopecia risk. Consider early intervention if hair thinning begins.'+ },+ rules: [+ { genotypes: ['T/T'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['C/C'], status: 'concern' }+ ]+ },++ // === HEARING ===+ {+ rsid: 'rs7598759',+ gene: 'GRM7',+ name: 'Age-Related Hearing Loss (GRM7)',+ category: 'hearing',+ description: 'GRM7 encodes metabotropic glutamate receptor 7, which protects cochlear hair cells from glutamate excitotoxicity. Variants are associated with age-related hearing loss (presbycusis). The risk allele impairs neuroprotective glutamate signaling in the cochlea.',+ implications: {+ beneficial: 'A/A — standard GRM7 function. Normal cochlear neuroprotection.',+ typical: 'A/G — one risk allele. Mildly increased susceptibility to age-related hearing loss.',+ concern: 'G/G — reduced GRM7 neuroprotection. Elevated presbycusis risk. Limit loud noise exposure, use ear protection, and get audiometric screening after age 50.'+ },+ rules: [+ { genotypes: ['A/A'], status: 'beneficial' },+ { genotypes: ['A/G', 'G/A'], status: 'typical' },+ { genotypes: ['G/G'], status: 'concern' }+ ]+ },++ // === PAIN SENSITIVITY ===+ {+ rsid: 'rs6746030',+ gene: 'SCN9A',+ name: 'Pain Sensitivity (SCN9A)',+ category: 'pain',+ description: 'SCN9A encodes the Nav1.7 sodium channel in pain-sensing neurons. Rare loss-of-function mutations cause complete insensitivity to pain; gain-of-function mutations cause severe pain disorders. The A allele is associated with increased pain sensitivity.',+ implications: {+ beneficial: 'G/G — standard SCN9A function. Typical pain sensitivity.',+ typical: 'A/G — one variant allele. Mildly increased pain perception.',+ concern: 'A/A — increased Nav1.7 channel activity. Heightened pain sensitivity. May require adjusted analgesic approaches.'+ },+ rules: [+ { genotypes: ['G/G'], status: 'beneficial' },+ { genotypes: ['A/G', 'G/A'], status: 'typical' },+ { genotypes: ['A/A'], status: 'concern' }+ ]+ },++ // === ADDITIONS TO EXISTING CATEGORIES ===++ // Cardiovascular: PCSK9+ {+ rsid: 'rs11591147',+ gene: 'PCSK9',+ name: 'PCSK9 Loss-of-Function (R46L)',+ category: 'cardiovascular',+ description: 'PCSK9 degrades LDL receptors, raising LDL cholesterol. The T allele (Leu46) is a loss-of-function variant that lowers lifetime LDL by ~15% and reduces coronary heart disease risk by ~47%. This natural experiment inspired the PCSK9 inhibitor drug class.',+ implications: {+ beneficial: 'Carrier of PCSK9 loss-of-function (G/T or T/T). Lower lifetime LDL cholesterol and significantly reduced coronary heart disease risk (~47%).',+ typical: 'G/G — normal PCSK9 function. Standard LDL receptor turnover and cholesterol levels.'+ },+ rules: [+ { genotypes: ['T/T'], status: 'beneficial' },+ { genotypes: ['G/T', 'T/G'], status: 'beneficial' },+ { genotypes: ['G/G'], status: 'typical' }+ ]+ },++ // Nutrient: FADS1 omega-3+ {+ rsid: 'rs174547',+ gene: 'FADS1',+ name: 'Omega-3/6 Fatty Acid Desaturase',+ category: 'nutrient',+ description: 'FADS1 encodes delta-5 desaturase, the rate-limiting enzyme for converting plant-based ALA to EPA/DHA omega-3 fatty acids. The C allele has higher activity. The T allele reduces conversion, making dietary preformed EPA/DHA (fish oil) more important.',+ implications: {+ beneficial: 'C/C — higher FADS1 activity. Efficient ALA-to-EPA/DHA conversion. Plant omega-3 sources more effective.',+ typical: 'C/T — intermediate desaturase activity. Moderate omega-3 conversion efficiency.',+ concern: 'T/T — lower FADS1 activity. Poor ALA-to-EPA/DHA conversion. Direct EPA/DHA supplementation (fish oil or algal oil) recommended over plant sources alone.'+ },+ rules: [+ { genotypes: ['C/C'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['T/T'], status: 'concern' }+ ]+ },++ // Inflammation: CRP+ {+ rsid: 'rs1205',+ gene: 'CRP',+ name: 'C-Reactive Protein Baseline Levels',+ category: 'inflammation',+ description: 'CRP is the most widely used clinical biomarker of systemic inflammation. This variant affects baseline CRP levels independent of inflammation status. Important for interpreting hsCRP blood tests — genetically low CRP may mask inflammation, while genetically high CRP may cause false alarm.',+ implications: {+ beneficial: 'T/T — genetically lower baseline CRP. Favorable inflammatory profile, but hsCRP tests may underestimate true inflammation.',+ typical: 'C/T — intermediate baseline CRP levels.',+ concern: 'C/C — genetically higher baseline CRP. Elevated hsCRP on blood tests may partly reflect genetic tendency rather than active inflammation.'+ },+ rules: [+ { genotypes: ['T/T'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['C/C'], status: 'concern' }+ ]+ },++ // Longevity: TERC telomere+ {+ rsid: 'rs10936599',+ gene: 'TERC',+ name: 'Telomere Length (TERC)',+ category: 'longevity',+ description: 'TERC encodes the RNA component of telomerase. Shorter telomeres are associated with cellular aging and age-related diseases. The C allele is associated with shorter leukocyte telomere length. Strongly replicated in the largest telomere GWAS meta-analyses.',+ implications: {+ beneficial: 'T/T — associated with longer telomeres. Favorable cellular aging trajectory.',+ typical: 'C/T — intermediate telomere length.',+ concern: 'C/C — associated with shorter telomeres. Accelerated cellular aging. Exercise, stress management, adequate sleep, and Mediterranean diet support telomere maintenance.'+ },+ rules: [+ { genotypes: ['T/T'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['C/C'], status: 'concern' }+ ]+ },++ // Sleep: MTNR1B melatonin+ {+ rsid: 'rs4753426',+ gene: 'MTNR1B',+ name: 'Melatonin Receptor 1B / Sleep-Glucose Axis',+ category: 'sleep',+ description: 'MTNR1B encodes the melatonin receptor MT2, linking circadian rhythm to insulin secretion. The C allele increases receptor expression, impairing glucose-stimulated insulin release — explaining why late eating disproportionately affects glucose tolerance in carriers.',+ implications: {+ beneficial: 'T/T — normal melatonin receptor expression. Standard circadian insulin coupling.',+ typical: 'C/T — one variant allele. Mildly altered melatonin-insulin coupling. Avoid very late eating.',+ concern: 'C/C — increased MTNR1B expression. Impaired nighttime glucose handling. Higher fasting glucose and T2D risk. Avoid late-night eating and maintain consistent sleep schedule.'+ },+ rules: [+ { genotypes: ['T/T'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['C/C'], status: 'concern' }+ ]+ },++ // Skin: TYK2 psoriasis+ {+ rsid: 'rs3894194',+ gene: 'TYK2',+ name: 'Psoriasis & Autoimmune Skin Risk (TYK2)',+ category: 'skin',+ description: 'TYK2 encodes tyrosine kinase 2 in the JAK-STAT signaling pathway. Variants affect risk for psoriasis, psoriatic arthritis, and other autoimmune conditions. TYK2 is now a therapeutic target — deucravacitinib selectively inhibits TYK2 for psoriasis treatment.',+ implications: {+ beneficial: 'G/G — lower TYK2-mediated autoimmune skin disease risk.',+ typical: 'G/T — one risk allele. Mildly elevated psoriasis susceptibility.',+ concern: 'T/T — elevated psoriasis and autoimmune skin risk. If symptomatic, TYK2 inhibitors may be particularly effective.'+ },+ rules: [+ { genotypes: ['G/G'], status: 'beneficial' },+ { genotypes: ['G/T', 'T/G'], status: 'typical' },+ { genotypes: ['T/T'], status: 'concern' }+ ]+ },+ {+ rsid: 'rs11209026',+ gene: 'IL23R',+ name: 'IL-23 Receptor / Psoriasis & IBD Protection (R381Q)',+ category: 'skin',+ description: 'IL23R encodes the IL-23 receptor, a key driver of Th17-mediated inflammation in psoriasis, Crohn\'s disease, and ankylosing spondylitis. The rare A allele is strongly protective (~2x reduced risk). IL-23 is the target of multiple biologic drugs.',+ implications: {+ beneficial: 'G/A or A/A — carrier of protective allele. ~2x reduced psoriasis and inflammatory bowel disease risk.',+ typical: 'G/G — no protective variant. Standard baseline risk for Th17-mediated inflammatory conditions.'+ },+ rules: [+ { genotypes: ['A/A'], status: 'beneficial' },+ { genotypes: ['G/A', 'A/G'], status: 'beneficial' },+ { genotypes: ['G/G'], status: 'typical' }+ ]}];