claw-methylation-cycle
Methylation cycle analysis skill for ClawBio. Produces enzymatic activity
profiles, Net Methylation Capacity (NMC), BH4 axis estimates, compound
heterozygosity detection, and clinician-review genotype findings from raw
SNP genotype data.
Trigger
Fire this skill when:
- The user asks about methylation, MTHFR variants, folate cycle, or
homocysteine risk from a genotype file.
- A raw SNP file (23andMe / ADNTRO / Ancestry format) is provided and the
clinical question involves methylation, BH4, dopamine/serotonin synthesis
capacity, or neurodevelopmental contexts (ADHD, depression, anxiety).
- The upstream workflow (PharmGx Reporter, NutriGx Advisor) has flagged
MTHFR or MTRR and the clinician needs the full methylation panel.
- Keywords present:
methylation, MTHFR, BH4, folate cycle,
metilación, ciclo de metilación, homocysteine, 5-MTHF,
methylcobalamin, neurotransmitter synthesis, dopamine upstream.
Do NOT fire this skill when:
- The question is purely about folic acid supplementation without a genotype file.
- The user is asking about MTHFR in the context of thrombophilia/clotting
only — use PharmGx Reporter for warfarin/anticoagulation questions.
- Only N-GENE polygenic risk data is available (no raw SNP file) — this skill
requires genotype-level input; PRS percentiles are not sufficient.
- The SNP file format is VCF, FASTQ, BAM, or PLINK binary — these require
preprocessing before this skill can run.
- The clinical question is exclusively pharmacogenomic (CYP enzymes) — use
PharmGx Reporter instead.
Workflow
Receive input — Accept either a raw genotype file path or a pre-parsed
snp_dict. If a file is provided, call parse_genotype_file() to extract
the rsID → genotype mapping.
Panel coverage check — Compare detected rsIDs against the 9-gene
methylation panel. Log missing SNPs. For any SNP absent from the input,
mark the corresponding gene as not_assessed — do NOT silently assume
normal activity (Safety Rule 6).
Enzymatic activity scoring — For each gene, map the diplotype to an
estimated activity percentage. Heterozygous risk variants reduce activity
by their assigned weight; homozygous variants apply the full reduction.
Compound heterozygosity detection — Check MTHFR C677T (rs1801133) and
A1298C (rs1801131) simultaneously. If both are heterozygous, set
compound_heterozygosity = True and apply the combined activity reduction
(~15% of normal — more severe than either variant alone).
Net Methylation Capacity (NMC) — Compute the weighted average of all
enzyme activities. Clamp to [0, 100]. Expose coverage_pct and
snps_missing; flag NMC as partial if key SNPs are absent.
BH4 axis capacity — Derive BH4 from MTHFR activity and MTRR modifier.
Report clinical implications for dopamine and serotonin synthesis in
neurodevelopmental presentations.
Prioritised recommendations — Generate PRIORITY 1 / 2 / 3
recommendations based on active findings. Lead with highest clinical
impact (compound het MTHFR or severely reduced BH4).
Output — Write report.md (human-readable) and result.json
(structured, for downstream integration).
Example Output
╔══════════════════════════════════════════════════════════════╗
║ ClawBio · Methylation Cycle Analysis Report ║
║ Author: Samuel Carmona Aguirre · RUO — Not a medical device ║
╚══════════════════════════════════════════════════════════════╝
Executive Summary
─────────────────
Net Methylation Capacity : 53 / 100 🔴 Reduced
BH4 Axis Capacity : 31 / 100 🔴 Reduced
MTHFR Compound Het. : YES ⚠️ (C677T + A1298C)
Dopamine Synthesis : Severely Reduced
Serotonin Synthesis : Severely Reduced
Enzymatic Activity Profile
──────────────────────────
Gene Activity Status Key Variants
MTHFR 15% 🔴 Severely reduced C677T, A1298C
MTRR 60% 🟡 Moderately reduced A66G
MTR 100% 🟢 Normal –
CBS 100% 🟢 Normal –
BHMT 40% 🔴 Moderately reduced R239Q
SHMT1 80% 🟢 Mildly reduced C1420T
COMT 55% 🟡 Moderately reduced Val158Met
AHCY 100% 🟢 Normal –
Clinical Recommendations — FOR CLINICIAN REVIEW ONLY
──────────────────────────────────────────────────────
⚠️ The following is genotype-based information for qualified clinician use.
Do not self-administer. All nutrients listed are reported in the peer-reviewed
literature for the pathways indicated; dosing and indication require
individualised clinical assessment.
Genotype findings:
• 5-MTHF (methylfolate) preferred over synthetic folic acid (MTHFR C677T/A1298C).
Ref: Lamers Y et al. (2004) Am J Clin Nutr 80(5):1234-41.
• MTHFR compound het: methylcobalamin co-administration reported in literature.
Ref: Ledford AW et al. (2021) Nutrients 13(3):768.
• BH4 capacity at 31%: riboflavin (B2) reported as MTHFR cofactor supporting BH4
regeneration. Ref: McNulty H et al. (2017) Am J Clin Nutr 106(1):128-36.
• MTRR A66G: methylcobalamin preferred over cyanocobalamin per functional studies.
Ref: Olteanu H et al. (2002) Biochemistry 41(45):13378-85.
• BHMT R239Q: betaine and choline-rich foods reported as alternative methyl donors.
Ref: Slow S et al. (2004) Clin Chim Acta 340(1-2):57-67.
Some literature reports an association between BH4 deficiency and
ADHD/depression/anxiety phenotypes. This genotype indicates reduced BH4
production capacity. A clinician should contextualise this finding with
the patient's clinical history.
Where clinically relevant, a clinician may evaluate whether neurodevelopmental
symptoms correlate with BH4 capacity for potential non-pharmacological support.
Gotchas
Missing SNPs must never be silently normalised. The current
implementation (line 471) defaults to assuming normal activity for SNPs
absent from the input. This produces an artificially high NMC. When key
SNPs are missing, always expose coverage_pct and snps_missing so
downstream consumers know the score is partial.
Compound heterozygosity is synergistic, not additive. C677T and A1298C
affect different MTHFR domains. Their combined effect (~15% activity) is
greater than either variant alone. Do not compute as
activity(677) × activity(1298).
BH4 capacity is an estimate, not a measured value. The BH4 score is
derived from MTHFR activity and literature-based weights. It does not
account for DHFR variation or dietary cofactor availability. Always
include the RUO disclaimer.
COMT Val158Met has a dual role. rs4680 appears in both methylation
(SAM consumption) and dopamine/catecholamine panels. Always note this —
do not report it in isolation.
DTC array coverage varies by platform. ADNTRO covers all 9 panel SNPs
for most European-ancestry samples. 23andMe v3 and Ancestry v1 may not
include rs1801394 (MTRR) or rs3733890 (BHMT). Always check snps_missing.
This skill does not cover pharmacogenomics. SLCO1B1, CYP enzymes, and
statin/warfarin risk belong to PharmGx Reporter, not this skill.
Domain Decisions
Genes and Variants Assessed
| Gene |
rsID |
Variant |
Allele Assessed |
Effect Direction |
| MTHFR |
rs1801133 |
C677T |
T (risk) |
Decreased MTHFR activity |
| MTHFR |
rs1801131 |
A1298C |
C (risk) |
Decreased MTHFR activity |
| MTRR |
rs1801394 |
A66G |
G (risk) |
Decreased MTRR activity |
| MTR |
rs1805087 |
A2756G |
G (risk) |
Decreased MTR activity |
| CBS |
rs234706 |
C699T |
T (risk) |
Increased CBS activity |
| BHMT |
rs3733890 |
R239Q |
A (risk) |
Decreased BHMT activity |
| SHMT1 |
rs1979277 |
C1420T |
T (risk) |
Decreased SHMT1 activity |
| COMT |
rs4680 |
Val158Met |
A/Met (risk) |
Decreased COMT activity |
| AHCY |
rs819147 |
AHCY |
T (risk) |
Decreased AHCY activity |
Enzymatic Activity Estimates
Activity is estimated as a percentage of normal function based on homozygous vs.
heterozygous status of risk alleles. These are approximations derived from published
functional studies — they are NOT direct enzyme assays.
| Genotype |
Estimated Activity |
| 0 risk alleles (WT) |
100% |
| 1 risk allele (het) |
60–80% (gene-specific, see below) |
| 2 risk alleles (hom) |
15–40% (gene-specific, see below) |
Gene-specific estimates (homozygous risk):
- MTHFR C677T homozygous: ~30% of normal
- MTHFR A1298C homozygous: ~60% of normal
- MTHFR compound heterozygous (C677T + A1298C): ~15% of normal
- MTRR A66G homozygous: ~60% of normal
- BHMT R239Q homozygous: ~40% of normal
- COMT Val158Met homozygous (Met/Met): ~25% of normal
- SHMT1 C1420T homozygous: ~60% of normal
Source: Nazki FH et al. (2014) Gene 533(1):11-20; Ledford AW et al. (2021) Nutrients 13(3):768.
Net Methylation Capacity (NMC) Score
NMC is a composite index (0–100) derived from weighted enzymatic activities:
- MTHFR: weight 0.35 (primary rate-limiting enzyme)
- MTRR: weight 0.15
- BHMT: weight 0.15
- COMT: weight 0.10
- MTR: weight 0.10
- CBS: weight 0.05 (inverse — upregulation diverts homocysteine)
- SHMT1: weight 0.05
- AHCY: weight 0.05
NMC < 40: Severely reduced
NMC 40–60: Moderately reduced
NMC 60–80: Mildly reduced
NMC > 80: Within normal range
Note (ACMG 2013): Routine population screening for MTHFR variants is not
recommended for thrombosis risk assessment. This tool reports genotype facts
for clinician contextualisation; NMC bands are descriptive outputs, not
intervention triggers. Clinical decisions require individual patient evaluation.
BH4 Axis Capacity
BH4 (tetrahydrobiopterin) is an essential cofactor for tyrosine hydroxylase
(dopamine) and tryptophan hydroxylase (serotonin). MTHFR activity directly
constrains BH4 regeneration via the folate cycle.
- Base BH4 capacity = MTHFR_activity × MTRR_modifier
- MTRR_modifier: homozygous risk = 0.75; heterozygous = 0.88; WT = 1.0
BH4 thresholds:
- < 40%: Severely reduced — neurotransmitter synthesis substantially constrained
- 40–65%: Moderately reduced — may be clinically relevant; clinician to contextualise
65%: Within normal range
Compound Heterozygosity
MTHFR compound heterozygous (C677T + A1298C simultaneously) is the most
clinically significant single-gene methylation finding. Total MTHFR activity
is reduced more than either variant alone. Flagged explicitly in output.
Author and Attribution
Developed by Samuel Carmona Aguirre (samuel@unimed-consulting.es) as part of a
contribution to the ClawBio open-source bioinformatics library.
Conflict of Interest (COI): The author develops clinical genomics workflows
in a private practice context and may use tools derived from this skill as a
component in those workflows. This skill is contributed as a standalone
open-source genotype reporting tool; its output is not specific to any
proprietary clinical platform. All clinical integration decisions rest with
the qualified end-user clinician.
ACMG caveat on MTHFR testing (Green et al., Genet Med 2013, 15:153–156):
Routine population screening for MTHFR variants is not currently recommended by
ACMG for assessment of thrombosis risk, neural tube defect risk, or psychiatric
phenotypes. Genotype findings from this tool should be interpreted in the context
of the individual patient's clinical history by a qualified clinician.
Safety Rules
- Never report a clinical diagnosis. Always include the RUO disclaimer.
- Never recommend specific drug dosages or prescribe medication changes.
- Always flag MTHFR compound heterozygous status as requiring clinical review.
- Flag BH4 capacity < 40% with an explicit neurodevelopmental warning.
- Never extrapolate to ancestries not represented in source studies
(validated primarily in European-ancestry populations).
- Unknown SNPs or SNPs not in the input must be reported as "Not assessed" —
never assume wildtype.
- All supplementation suggestions are Priority-ranked guidance for a clinician,
not direct patient instructions.
Agent Boundary
In Scope
- Genotype extraction for 9 methylation-cycle genes from raw DTC files
- Enzymatic activity estimation (percentage of normal function)
- Net Methylation Capacity (NMC) composite index calculation
- BH4 axis capacity estimation and neurotransmitter synthesis impact
- MTHFR compound heterozygosity detection and flagging
- Prioritised clinical recommendations for clinician review
- JSON output for integration with downstream clinical decision-support systems
Out of Scope
- Dosing recommendations (requires clinical context and prescribing authority)
- Diagnosis of methylation disorders or neurodevelopmental conditions
- Drug-drug interaction analysis (see PharmGx Reporter)
- Epigenetic state (methylation is a phenotype; this skill assesses genotype only)
- Whole-genome or whole-exome sequencing data (SNP array input only)
- Direct patient communication (output is for qualified clinician use)
Usage
python skills/claw-methylation-cycle/methylation_cycle.py \
--input path/to/genotype.txt \
--output results/
References
- Nazki FH et al. (2014). Folate: metabolism, genes, polymorphisms. Gene, 533(1), 11-20.
- Ledford AW et al. (2021). MTHFR and BH4 pathway in neuropsychiatric disorders. Nutrients, 13(3):768.
- Stover PJ (2009). One-carbon metabolism-genome interactions. J Nutr, 139(12), 2402-5.
- Lamers Y et al. (2004). Supplementation with [6S]-5-methyltetrahydrofolate or folic acid equally reduces plasma total homocysteine. Am J Clin Nutr, 80(5):1234-41.
- McNulty H et al. (2017). Riboflavin lowers homocysteine in children and adults with common MTHFR polymorphism. Am J Clin Nutr, 106(1):128-36.
- Olteanu H et al. (2002). Differences in the efficiency of reductive methylation of cob(II)alamin. Biochemistry, 41(45):13378-85.
- Slow S et al. (2004). Plasma betaine and homocysteine. Clin Chim Acta, 340(1-2):57-67.
- Esteller M. (2014). Introduccion a la epigenetica. SEBBM, 179:4-6.
- Spuch C, Agis-Balboa RC. (2014). Epigenetica en neurociencias. SEBBM, 179:18-21.
- Green RC et al. (2013). ACMG recommendations for reporting of incidental findings in clinical exome and genome sequencing. Genet Med, 15(7):565-74.
- ClawBio (2026). https://github.com/ClawBio/ClawBio
Changelog
| Version |
Date |
Change |
| 0.1.0 |
2026-04-07 |
Initial release. Validated on ASES-2307-002. |
| 0.1.1 |
2026-04-14 |
Fixed SKILL.md per PR #133: single YAML block, added Trigger, Workflow, Example Output, Gotchas. Removed unused pandas. Documented line-471 design decision. |
| 0.1.2 |
2026-05-12 |
Framing revisions per Manuel Corpas review: reworded BH4 causal language to association-based; reformatted supplement list as clinician-review block with per-nutrient citations; added 6 DOIs; converted em-dashes to ASCII in test docstrings; removed duplicate top-level test file. |
| 0.1.3 |
2026-05-15 |
Per PR #133 third review: (1) removed all specific dosages from recommendations; (2) stripped Holomedicina/CAPS/UNIMED/MH-AIAP branding from YAML, description, trigger, example output, Domain Decisions, report header — kept as author attribution only; (3) reframed NMC and BH4 bands as descriptive outputs, not intervention triggers; (4) added ACMG 2013 caveat on routine MTHFR testing; (5) added author COI disclosure; (6) removed obsolete Gotcha #5 (pandas); (7) softened compound het "strongly indicated" language. |
1---2name: methylation-cycle3description: claw-methylation-cycle4license: MIT5---67# claw-methylation-cycle89Methylation cycle analysis skill for ClawBio. Produces enzymatic activity10profiles, Net Methylation Capacity (NMC), BH4 axis estimates, compound11heterozygosity detection, and clinician-review genotype findings from raw12SNP genotype data.1314---1516## Trigger1718**Fire this skill when:**1920- The user asks about methylation, MTHFR variants, folate cycle, or21 homocysteine risk from a genotype file.22- A raw SNP file (23andMe / ADNTRO / Ancestry format) is provided and the23 clinical question involves methylation, BH4, dopamine/serotonin synthesis24 capacity, or neurodevelopmental contexts (ADHD, depression, anxiety).25- The upstream workflow (PharmGx Reporter, NutriGx Advisor) has flagged26 MTHFR or MTRR and the clinician needs the full methylation panel.27- Keywords present: `methylation`, `MTHFR`, `BH4`, `folate cycle`,28 `metilación`, `ciclo de metilación`, `homocysteine`, `5-MTHF`,29 `methylcobalamin`, `neurotransmitter synthesis`, `dopamine upstream`.3031**Do NOT fire this skill when:**3233- The question is purely about folic acid supplementation without a genotype file.34- The user is asking about MTHFR in the context of thrombophilia/clotting35 only — use PharmGx Reporter for warfarin/anticoagulation questions.36- Only N-GENE polygenic risk data is available (no raw SNP file) — this skill37 requires genotype-level input; PRS percentiles are not sufficient.38- The SNP file format is VCF, FASTQ, BAM, or PLINK binary — these require39 preprocessing before this skill can run.40- The clinical question is exclusively pharmacogenomic (CYP enzymes) — use41 PharmGx Reporter instead.4243---4445## Workflow46471. **Receive input** — Accept either a raw genotype file path or a pre-parsed48 `snp_dict`. If a file is provided, call `parse_genotype_file()` to extract49 the rsID → genotype mapping.50512. **Panel coverage check** — Compare detected rsIDs against the 9-gene52 methylation panel. Log missing SNPs. For any SNP absent from the input,53 mark the corresponding gene as `not_assessed` — do NOT silently assume54 normal activity (Safety Rule 6).55563. **Enzymatic activity scoring** — For each gene, map the diplotype to an57 estimated activity percentage. Heterozygous risk variants reduce activity58 by their assigned weight; homozygous variants apply the full reduction.59604. **Compound heterozygosity detection** — Check MTHFR C677T (rs1801133) and61 A1298C (rs1801131) simultaneously. If both are heterozygous, set62 `compound_heterozygosity = True` and apply the combined activity reduction63 (~15% of normal — more severe than either variant alone).64655. **Net Methylation Capacity (NMC)** — Compute the weighted average of all66 enzyme activities. Clamp to [0, 100]. Expose `coverage_pct` and67 `snps_missing`; flag NMC as partial if key SNPs are absent.68696. **BH4 axis capacity** — Derive BH4 from MTHFR activity and MTRR modifier.70 Report clinical implications for dopamine and serotonin synthesis in71 neurodevelopmental presentations.72737. **Prioritised recommendations** — Generate PRIORITY 1 / 2 / 374 recommendations based on active findings. Lead with highest clinical75 impact (compound het MTHFR or severely reduced BH4).76778. **Output** — Write `report.md` (human-readable) and `result.json`78 (structured, for downstream integration).7980---8182## Example Output8384```85╔══════════════════════════════════════════════════════════════╗86║ ClawBio · Methylation Cycle Analysis Report ║87║ Author: Samuel Carmona Aguirre · RUO — Not a medical device ║88╚══════════════════════════════════════════════════════════════╝8990Executive Summary91─────────────────92Net Methylation Capacity : 53 / 100 🔴 Reduced93BH4 Axis Capacity : 31 / 100 🔴 Reduced94MTHFR Compound Het. : YES ⚠️ (C677T + A1298C)95Dopamine Synthesis : Severely Reduced96Serotonin Synthesis : Severely Reduced9798Enzymatic Activity Profile99──────────────────────────100Gene Activity Status Key Variants101MTHFR 15% 🔴 Severely reduced C677T, A1298C102MTRR 60% 🟡 Moderately reduced A66G103MTR 100% 🟢 Normal –104CBS 100% 🟢 Normal –105BHMT 40% 🔴 Moderately reduced R239Q106SHMT1 80% 🟢 Mildly reduced C1420T107COMT 55% 🟡 Moderately reduced Val158Met108AHCY 100% 🟢 Normal –109110Clinical Recommendations — FOR CLINICIAN REVIEW ONLY111──────────────────────────────────────────────────────112⚠️ The following is genotype-based information for qualified clinician use.113 Do not self-administer. All nutrients listed are reported in the peer-reviewed114 literature for the pathways indicated; dosing and indication require115 individualised clinical assessment.116117Genotype findings:118 • 5-MTHF (methylfolate) preferred over synthetic folic acid (MTHFR C677T/A1298C).119 Ref: Lamers Y et al. (2004) Am J Clin Nutr 80(5):1234-41.120 • MTHFR compound het: methylcobalamin co-administration reported in literature.121 Ref: Ledford AW et al. (2021) Nutrients 13(3):768.122 • BH4 capacity at 31%: riboflavin (B2) reported as MTHFR cofactor supporting BH4123 regeneration. Ref: McNulty H et al. (2017) Am J Clin Nutr 106(1):128-36.124 • MTRR A66G: methylcobalamin preferred over cyanocobalamin per functional studies.125 Ref: Olteanu H et al. (2002) Biochemistry 41(45):13378-85.126 • BHMT R239Q: betaine and choline-rich foods reported as alternative methyl donors.127 Ref: Slow S et al. (2004) Clin Chim Acta 340(1-2):57-67.128129Some literature reports an association between BH4 deficiency and130ADHD/depression/anxiety phenotypes. This genotype indicates reduced BH4131production capacity. A clinician should contextualise this finding with132the patient's clinical history.133Where clinically relevant, a clinician may evaluate whether neurodevelopmental134symptoms correlate with BH4 capacity for potential non-pharmacological support.135```136137---138139## Gotchas1401411. **Missing SNPs must never be silently normalised.** The current142 implementation (line 471) defaults to assuming normal activity for SNPs143 absent from the input. This produces an artificially high NMC. When key144 SNPs are missing, always expose `coverage_pct` and `snps_missing` so145 downstream consumers know the score is partial.1461472. **Compound heterozygosity is synergistic, not additive.** C677T and A1298C148 affect different MTHFR domains. Their combined effect (~15% activity) is149 greater than either variant alone. Do not compute as150 `activity(677) × activity(1298)`.1511523. **BH4 capacity is an estimate, not a measured value.** The BH4 score is153 derived from MTHFR activity and literature-based weights. It does not154 account for DHFR variation or dietary cofactor availability. Always155 include the RUO disclaimer.1561574. **COMT Val158Met has a dual role.** rs4680 appears in both methylation158 (SAM consumption) and dopamine/catecholamine panels. Always note this —159 do not report it in isolation.1601615. **DTC array coverage varies by platform.** ADNTRO covers all 9 panel SNPs162 for most European-ancestry samples. 23andMe v3 and Ancestry v1 may not163 include rs1801394 (MTRR) or rs3733890 (BHMT). Always check `snps_missing`.1641656. **This skill does not cover pharmacogenomics.** SLCO1B1, CYP enzymes, and166 statin/warfarin risk belong to PharmGx Reporter, not this skill.167168---169170## Domain Decisions171172### Genes and Variants Assessed173174| Gene | rsID | Variant | Allele Assessed | Effect Direction |175|-------|-----------|-----------|-----------------|--------------------------|176| MTHFR | rs1801133 | C677T | T (risk) | Decreased MTHFR activity |177| MTHFR | rs1801131 | A1298C | C (risk) | Decreased MTHFR activity |178| MTRR | rs1801394 | A66G | G (risk) | Decreased MTRR activity |179| MTR | rs1805087 | A2756G | G (risk) | Decreased MTR activity |180| CBS | rs234706 | C699T | T (risk) | Increased CBS activity |181| BHMT | rs3733890 | R239Q | A (risk) | Decreased BHMT activity |182| SHMT1 | rs1979277 | C1420T | T (risk) | Decreased SHMT1 activity |183| COMT | rs4680 | Val158Met | A/Met (risk) | Decreased COMT activity |184| AHCY | rs819147 | AHCY | T (risk) | Decreased AHCY activity |185186### Enzymatic Activity Estimates187188Activity is estimated as a percentage of normal function based on homozygous vs.189heterozygous status of risk alleles. These are approximations derived from published190functional studies — they are NOT direct enzyme assays.191192| Genotype | Estimated Activity |193|----------------------|-----------------------------------------|194| 0 risk alleles (WT) | 100% |195| 1 risk allele (het) | 60–80% (gene-specific, see below) |196| 2 risk alleles (hom) | 15–40% (gene-specific, see below) |197198Gene-specific estimates (homozygous risk):199200- MTHFR C677T homozygous: ~30% of normal201- MTHFR A1298C homozygous: ~60% of normal202- MTHFR compound heterozygous (C677T + A1298C): ~15% of normal203- MTRR A66G homozygous: ~60% of normal204- BHMT R239Q homozygous: ~40% of normal205- COMT Val158Met homozygous (Met/Met): ~25% of normal206- SHMT1 C1420T homozygous: ~60% of normal207208Source: Nazki FH et al. (2014) Gene 533(1):11-20; Ledford AW et al. (2021) Nutrients 13(3):768.209210### Net Methylation Capacity (NMC) Score211212NMC is a composite index (0–100) derived from weighted enzymatic activities:213214- MTHFR: weight 0.35 (primary rate-limiting enzyme)215- MTRR: weight 0.15216- BHMT: weight 0.15217- COMT: weight 0.10218- MTR: weight 0.10219- CBS: weight 0.05 (inverse — upregulation diverts homocysteine)220- SHMT1: weight 0.05221- AHCY: weight 0.05222223NMC < 40: Severely reduced224NMC 40–60: Moderately reduced225NMC 60–80: Mildly reduced226NMC > 80: Within normal range227228> **Note (ACMG 2013):** Routine population screening for MTHFR variants is not229> recommended for thrombosis risk assessment. This tool reports genotype facts230> for clinician contextualisation; NMC bands are descriptive outputs, not231> intervention triggers. Clinical decisions require individual patient evaluation.232233### BH4 Axis Capacity234235BH4 (tetrahydrobiopterin) is an essential cofactor for tyrosine hydroxylase236(dopamine) and tryptophan hydroxylase (serotonin). MTHFR activity directly237constrains BH4 regeneration via the folate cycle.238239- Base BH4 capacity = MTHFR_activity × MTRR_modifier240- MTRR_modifier: homozygous risk = 0.75; heterozygous = 0.88; WT = 1.0241242BH4 thresholds:243- < 40%: Severely reduced — neurotransmitter synthesis substantially constrained244- 40–65%: Moderately reduced — may be clinically relevant; clinician to contextualise245- > 65%: Within normal range246247### Compound Heterozygosity248249MTHFR compound heterozygous (C677T + A1298C simultaneously) is the most250clinically significant single-gene methylation finding. Total MTHFR activity251is reduced more than either variant alone. Flagged explicitly in output.252253### Author and Attribution254255Developed by Samuel Carmona Aguirre (samuel@unimed-consulting.es) as part of a256contribution to the ClawBio open-source bioinformatics library.257258**Conflict of Interest (COI):** The author develops clinical genomics workflows259in a private practice context and may use tools derived from this skill as a260component in those workflows. This skill is contributed as a standalone261open-source genotype reporting tool; its output is not specific to any262proprietary clinical platform. All clinical integration decisions rest with263the qualified end-user clinician.264265**ACMG caveat on MTHFR testing (Green et al., Genet Med 2013, 15:153–156):**266Routine population screening for MTHFR variants is not currently recommended by267ACMG for assessment of thrombosis risk, neural tube defect risk, or psychiatric268phenotypes. Genotype findings from this tool should be interpreted in the context269of the individual patient's clinical history by a qualified clinician.270271---272273## Safety Rules2742751. Never report a clinical diagnosis. Always include the RUO disclaimer.2762. Never recommend specific drug dosages or prescribe medication changes.2773. Always flag MTHFR compound heterozygous status as requiring clinical review.2784. Flag BH4 capacity < 40% with an explicit neurodevelopmental warning.2795. Never extrapolate to ancestries not represented in source studies280 (validated primarily in European-ancestry populations).2816. Unknown SNPs or SNPs not in the input must be reported as "Not assessed" —282 never assume wildtype.2837. All supplementation suggestions are Priority-ranked guidance for a clinician,284 not direct patient instructions.285286---287288## Agent Boundary289290### In Scope291292- Genotype extraction for 9 methylation-cycle genes from raw DTC files293- Enzymatic activity estimation (percentage of normal function)294- Net Methylation Capacity (NMC) composite index calculation295- BH4 axis capacity estimation and neurotransmitter synthesis impact296- MTHFR compound heterozygosity detection and flagging297- Prioritised clinical recommendations for clinician review298- JSON output for integration with downstream clinical decision-support systems299300### Out of Scope301302- Dosing recommendations (requires clinical context and prescribing authority)303- Diagnosis of methylation disorders or neurodevelopmental conditions304- Drug-drug interaction analysis (see PharmGx Reporter)305- Epigenetic state (methylation is a phenotype; this skill assesses genotype only)306- Whole-genome or whole-exome sequencing data (SNP array input only)307- Direct patient communication (output is for qualified clinician use)308309---310311## Usage312313```bash314python skills/claw-methylation-cycle/methylation_cycle.py \315 --input path/to/genotype.txt \316 --output results/317```318319---320321## References322323- Nazki FH et al. (2014). Folate: metabolism, genes, polymorphisms. *Gene*, 533(1), 11-20.324- Ledford AW et al. (2021). MTHFR and BH4 pathway in neuropsychiatric disorders. *Nutrients*, 13(3):768.325- Stover PJ (2009). One-carbon metabolism-genome interactions. *J Nutr*, 139(12), 2402-5.326- Lamers Y et al. (2004). Supplementation with [6S]-5-methyltetrahydrofolate or folic acid equally reduces plasma total homocysteine. *Am J Clin Nutr*, 80(5):1234-41.327- McNulty H et al. (2017). Riboflavin lowers homocysteine in children and adults with common MTHFR polymorphism. *Am J Clin Nutr*, 106(1):128-36.328- Olteanu H et al. (2002). Differences in the efficiency of reductive methylation of cob(II)alamin. *Biochemistry*, 41(45):13378-85.329- Slow S et al. (2004). Plasma betaine and homocysteine. *Clin Chim Acta*, 340(1-2):57-67.330- Esteller M. (2014). Introduccion a la epigenetica. *SEBBM*, 179:4-6.331- Spuch C, Agis-Balboa RC. (2014). Epigenetica en neurociencias. *SEBBM*, 179:18-21.332- Green RC et al. (2013). ACMG recommendations for reporting of incidental findings in clinical exome and genome sequencing. *Genet Med*, 15(7):565-74.333- ClawBio (2026). https://github.com/ClawBio/ClawBio334335---336337## Changelog338339| Version | Date | Change |340|---------|------------|--------|341| 0.1.0 | 2026-04-07 | Initial release. Validated on ASES-2307-002. |342| 0.1.1 | 2026-04-14 | Fixed SKILL.md per PR #133: single YAML block, added Trigger, Workflow, Example Output, Gotchas. Removed unused pandas. Documented line-471 design decision. |343| 0.1.2 | 2026-05-12 | Framing revisions per Manuel Corpas review: reworded BH4 causal language to association-based; reformatted supplement list as clinician-review block with per-nutrient citations; added 6 DOIs; converted em-dashes to ASCII in test docstrings; removed duplicate top-level test file. |344| 0.1.3 | 2026-05-15 | Per PR #133 third review: (1) removed all specific dosages from recommendations; (2) stripped Holomedicina/CAPS/UNIMED/MH-AIAP branding from YAML, description, trigger, example output, Domain Decisions, report header — kept as author attribution only; (3) reframed NMC and BH4 bands as descriptive outputs, not intervention triggers; (4) added ACMG 2013 caveat on routine MTHFR testing; (5) added author COI disclosure; (6) removed obsolete Gotcha #5 (pandas); (7) softened compound het "strongly indicated" language. |