# Supplement: MUC1 magnesium instruments, repeat tagging and measurement

This supplement preserves the detailed exploratory analyses and methods underlying
[the main paper](PAPER.md). The investigation began with magnesium–stroke MR and
then followed the influential MUC1 locus. These analyses do not identify a causal
repeat allele or explain the historical stroke association. Their chronology and
limitations are retained rather than presenting the investigation as preregistered.
The paired read-technology analysis is reported in the main paper and reproduced
by `analysis/run_technology.sh`; the earlier Illumina-only benchmark below is not
a claim about every read technology or current software version.

## Detailed exploratory results

### The matched-variant association attenuates despite improved precision

The historical six-instrument fixed-effect inverse-variance weighted (IVW) estimate reconstructs closely: OR 0.627 (0.494–0.796), versus the reported 0.63 (0.50–0.80). One historical instrument was represented by a proxy. Its target is absent at the coordinate queried in the later release, and we do not substitute an unphased proxy. The principal comparison therefore uses the same five direct variants in both datasets, rather than comparing a six-variant historical estimate with a five-variant update.

**Supplementary Table 1. Updating the outcome while holding the instruments fixed.** All odds ratios in this paper concern cardioembolic stroke per 0.1 mmol/L higher genetically proxied serum magnesium unless stated otherwise. Random-effects intervals allow overdispersion but do not correct invalid instruments.

<!-- table:update:start -->
| Outcome and instruments | Fixed-effect OR (95% CI) | p | Random-effects OR (95% CI) | p |
| --- | --- | --- | --- | --- |
| MEGASTROKE, five direct variants | 0.649 (0.500–0.842) | 0.00115 | 0.649 (0.445–0.945) | 0.0242 |
| GIGASTROKE, five direct variants | 0.865 (0.694–1.078) | 0.197 | 0.865 (0.649–1.152) | 0.32 |
| MEGASTROKE, four, excluding MUC1 | 0.848 (0.588–1.222) | 0.376 | 0.848 (0.552–1.302) | 0.45 |
| GIGASTROKE, four, excluding MUC1 | 0.991 (0.735–1.336) | 0.952 | 0.991 (0.674–1.456) | 0.963 |

<!-- table:update:end -->

Generated from [update_estimates.csv](results/update_estimates.csv); [rendered table](results/paper_table_update.md). The full available GIGASTROKE set is the five-variant matched set.

![Matched-variant magnesium estimates in MEGASTROKE and GIGASTROKE](results/outcome_update.png)

**Supplementary Figure 1. Less protection in the later outcome data.** Points show IVW odds ratios, dark intervals fixed-effect 95% confidence intervals, and pale intervals multiplicative random-effects intervals. The lower pair excludes MUC1. The vertical line denotes no association. The outcome datasets overlap; their estimates must not be treated as independent replications. Generated by `analysis/verify_update.R` from the same results as Supplementary Table 1; [vector version](results/outcome_update.svg).

For the five-variant comparison, the log OR changes from −0.433 to −0.145 while the fixed-effect standard error decreases from 0.133 to 0.113. The later estimate is closer to no association, not merely less precise. We do not test the difference between datasets because their covariance is unavailable.

### MUC1 explains much, but not all, of the change

MUC1 contributes 49.1% of the historical five-variant weight and 45.4% of the later weight. Its single-variant estimate shifts from OR 0.492 to 0.734. The other four variants also shift in the direction of less aggregate protection; TRPM6 remains on the risk-increasing side of the null (Supplementary Table 2).

**Supplementary Table 2. Single-variant estimates and their share of IVW weight.** The intervals treat exposure effects as known. Gene labels are those used in the source instrument table, not established causal-gene assignments. Weights refer to the five-variant comparison in each dataset.

<!-- table:snps:start -->
| Locus / variant | MEGASTROKE OR (95% CI) | GIGASTROKE OR (95% CI) | Earlier weight | Later weight |
| --- | --- | --- | --- | --- |
| MUC1 / rs4072037 | 0.492 (0.339–0.713) | 0.734 (0.529–1.018) | 49.1% | 45.4% |
| DCDC5 / rs3925584 | 0.766 (0.399–1.472) | 0.953 (0.561–1.617) | 15.9% | 17.4% |
| TRPM6 / rs11144134 | 1.375 (0.698–2.705) | 1.526 (0.888–2.623) | 14.8% | 16.6% |
| SHROOM3 / rs13146355 | 0.835 (0.397–1.759) | 0.876 (0.470–1.634) | 12.3% | 12.5% |
| MDS1 / rs448378 | 0.427 (0.168–1.084) | 0.539 (0.249–1.170) | 7.9% | 8.1% |

<!-- table:snps:end -->

Generated from [update_single_snp.csv](results/update_single_snp.csv); [rendered table](results/paper_table_snps.md).

To describe the aggregate shift, we first replace the old SNP ratios with the later ratios while holding the old weights fixed, then replace the weights. Under that ordering, the change in MUC1's ratio contributes +0.197 of the total +0.287 log-OR shift. The other ratio changes and subsequent reweighting account for the remainder. This [algebraic decomposition](results/update_change_decomposition.csv) describes the estimate; it neither identifies a biological mechanism nor establishes a statistically significant difference between GWAS.

Excluding MUC1 moves the later aggregate estimate to 0.991, but also increases its fixed-effect standard error from 0.113 to 0.152. The remaining four-variant estimate is imprecise, not evidence of equivalence to no effect. Across all five planned leave-one-out fits, later fixed-effect ORs range from 0.772 to 0.991. Omitting TRPM6 rs11144134—the historical outlier—gives 0.772 (0.607–0.983), p = 0.0361, under either variance convention. That result remains compatible with protection, although it does not meet the original family-wise threshold of p < 0.006. It is a planned deletion, not an outlier newly selected by MR-PRESSO. Every deletion is retained in [update_leave_one_out.csv](results/update_leave_one_out.csv). With all five variants, Q = 6.75 on four degrees of freedom (p = 0.150); a nonsignificant heterogeneity test cannot establish instrument validity.

### MUC1 is a real magnesium locus, but not a generic filtration instrument

We retrieved a separate magnesium GWAS by Corre et al. and aligned rs4072037 to
the **T allele**, which raises magnesium in Meyer [2,7]. Its serum-magnesium effect
is +0.1389 (SE 0.0196) on the quantile-normalised scale, p = 1.21 × 10⁻¹². This
replicates the exposure association in another cohort collection; it is not a
replication of the stroke association. It also does not validate the original
0.010 mmol/L calibration, because the new exposure scale differs.

In Stanzick et al.'s kidney-trait summary statistics [8], the same T allele lowers
log blood urea nitrogen (BUN; beta −0.0098, SE 0.0005469, p = 1.04 × 10⁻⁷⁵).
Its association with log creatinine-based eGFR is much weaker (+0.0006, SE 0.0003335,
p = 0.0665); log cystatin-C-based eGFR increases (+0.0017, SE 0.0005409,
p = 0.000791). FinnGen R12 chronic kidney disease is inconclusive (log OR −0.0115,
SE 0.0130, p = 0.377; 12,787 cases). Thus the allele is not associated with
generalised worsening of these kidney measures. This differs from the original
SHROOM3 and DCDC5 instruments: their magnesium-raising alleles lower both eGFR
measures and raise BUN in the same releases. The complete
[six-instrument comparison](results/muc1_instrument_comparison.csv) preserves
all available results, including TRPM6, MDS1 and ATP2B1; the last has no exact
match in the retrieved kidney-trait subsets.

A simple reduced-filtration explanation for higher serum magnesium predicts the
opposite eGFR direction. MUC1 therefore cannot be treated as interchangeable with
SHROOM3 or DCDC5 in that model. This sign comparison does not rule out other renal
pathways, including changes in tubular transport.

The urine traits do not yet establish the mechanism. T lowers normalised fractional
magnesium excretion (beta −0.0508, SE 0.0200, nominal p = 0.0113), but the
urinary magnesium/creatinine association is uncertain (−0.0267, SE 0.0161,
p = 0.0976). Fractional excretion contains serum magnesium in its denominator;
an inverse association is therefore not independent evidence of increased tubular
reabsorption. The two traits also share participants. All nine allele-aligned
lookups, not just the strongest, are in
[muc1_allele_effects.csv](results/muc1_allele_effects.csv). These are per-allele
associations, not magnesium-mediated causal effects.

### The local magnesium, filtration and arrhythmia peaks differ

![MUC1 regional trait associations](results/muc1_regions.png)

**Supplementary Figure 2. Different signals within the same region.** Orange identifies rs4072037;
axes share genomic coordinates but not vertical scales. Plots show available variants
at GIGASTROKE positions within ±1 Mb, not complete fine-mapping coverage. Each
phenotype uses its own available subset. The prominent AF peak is near KCNN3,
upstream of MUC1.

A single-causal-variant colocalisation screen supports different dominant signals
for magnesium and either filtration measure, and for magnesium and AF. Across both
window sizes, three effect-size priors, three shared-variant priors and two treatments
of printed precision, the posterior probability for different associated variants
(H3) is at least 0.964 for creatinine eGFR and above 0.999999 for cystatin eGFR and AF.
This is a model-dependent distinction between **dominant observed signals**, not
proof that no secondary signal is shared. Only 113–117 shared, nonpalindromic variants
enter the ±250 kb magnesium comparisons. The magnesium GWAS does not measure the
MUC1 tandem repeat, and some lead variants in the other traits are absent.

With the older Corre exposure, the result for BUN is unresolved: the shared-variant probability (H4) is about 0.48
at the default settings, but ranges from 0.083 to 0.908 across the sensitivity grid.
For cardioembolic stroke, H4 is only 0.0096 in the ±250 kb window and 0.0057 within
±1 Mb at default settings. In the narrow window, 98.7% of posterior probability
favours a magnesium signal without a detectable stroke signal. This is primarily
**insufficient local stroke evidence**, not positive evidence for a separate causal
stroke variant. Full results are in [muc1_coloc.csv](results/muc1_coloc.csv).

FinnGen's AF/flutter lookup is particularly informative about the proposed mediator:
T has log OR 0.00013 (SE 0.00867), p = 0.988, among 63,532 cases and 252,810 controls.
There is no detectable AF association at rs4072037 in this release, despite a strong
nearby AF signal. The regional AF–stroke sharing screen is prior-sensitive
(H4 0.096–0.973), so we do not assign the stroke peak to KCNN3 as a demonstrated
mechanism. Nor does a Finnish AF result establish absence of an effect in every
population or formally refute the older nominal AF lookup.

### Unequal magnesium coverage can mimic a second signal

Signed LD from 503 European participants in 1000 Genomes phase 3 [13] exposes a
limitation of straightforward conditional analysis. In the ±250 kb window, 56 of
117 aligned magnesium variants are unavailable in at least one contributing
cohort, according to the source's `Direction` field [7]. Two nearly identical
reference-panel markers illustrate the consequence: rs4460629 and rs4421576 have
r = 0.996, but magnesium z scores of 7.56 and 2.34. Their standard errors differ
by a factor of two (0.0180 versus 0.0363); their coverage strings are `--?-` and
`?---`. These are not comparable homogeneous-sample z scores. The source codebook
defines `?` as a marker unavailable in that cohort; the strings do not identify
the missing cohort by name.

Conditioning z scores on rs4072037 as though every variant had the same sample
produces an apparent rs4421576 residual z = −5.71. An effect-scale profile contrast
that accounts for unequal standard errors instead gives z = −1.13 under maximal
sampling overlap, p = 0.26; lower overlap is also unconvincing. Across the 114
eligible local contrasts, the largest absolute effect-profile z is 2.96, or 2.46
among the four-cohort subset (printed effects, source allele-frequency scaling,
maximal overlap). These exploratory, correlated comparisons do not establish a
second magnesium signal. They also do not prove there is only one.

![Magnesium association profiles by cohort coverage](results/muc1_coverage_profiles.png)

**Supplementary Figure 3. Unequal precision matters before conditioning.** Both panels show the
same 117 variants, oriented to reference-panel ALT alleles. The dashed lines give
the one-anchor predictions from rs4072037 and signed LD. Missing-cohort variants
can fall far below the z-score prediction without comparably unusual effect sizes.
The right panel is descriptive and does not display standard errors; inference
uses the covariance-sensitive contrasts, not distance from the line alone.

The LD/summary-statistic compatibility diagnostic also improves after restricting
to variants represented in all four cohorts: the estimated ridge parameter falls
from 0.329 to 0.0289 within ±250 kb and from 0.186 to 0.0183 within ±1 Mb [14].
This diagnostic depends on variant selection and is not a formal goodness-of-fit
test. Filtering on cohort coverage was prompted by the discrepancy, not
preregistered. It does not fix unknown within-cohort sample variation or imputation
uncertainty.

BUN remains more complex than the rs4072037 profile. For example, the shared
nonpalindromic marker rs4971100 departs from that profile with z between −4.24 and
−8.47 across the printed-effect overlap/frequency-scale sensitivities. These are
reference-LD model contrasts, not in-sample conditional associations, and the BUN
release combines ancestries. Restricting the *unconditioned* colocalisation screen
to four-cohort magnesium variants does not settle sharing: H4 is 0.566 with printed
coefficients and 0.829 with p-reconstructed magnitudes at the default prior in
±250 kb, ranging from 0.115 to 0.980 across the two windows, three sharing priors
and both precision treatments. That investigation stopped short of multisignal
colocalisation rather than interpreting an unreliable conditional decomposition.
[Computed summary](results/muc1_ld_summary.json), [coverage audit](results/muc1_magnesium_coverage.csv),
[profile contrasts](results/muc1_profile_contrasts.csv), and
[coverage sensitivity](results/muc1_coverage_coloc.csv) retain the evidence.

### Larger, ancestry-specific magnesium data separate the dominant BUN signal

A renewed release audit identified much larger exposure data in the Million Veteran
Program (MVP): mean inverse-normalised magnesium in 145,571 EUR and 43,608 AFR
participants [15]. These are separate genetically inferred population groups, not
a pooled ancestry analysis. Public dbGaP files provide full regional statistics,
avoiding the older exposure's missing-cohort pattern.

The historical magnesium-raising T allele of rs4072037 has beta **+0.08708
(SE 0.004008), p = 1.12 × 10⁻¹⁰⁴** in EUR and **+0.07341 (0.007254),
p = 4.48 × 10⁻²⁴** in AFR. All six historical instruments have the same
magnesium-effect direction in both groups; their individual results are retained
in [mvp_instrument_effects.csv](results/mvp_instrument_effects.csv). These effects
are on a transformed EHR phenotype, not mmol/L. They strengthen the exposure
association, not the stroke association.

The larger exposure changes the one-causal-variant screen. Within ±250 kb, using
high-imputation-score, common, nonpalindromic variants and the default priors,
Mg–BUN H4 is **1.09 × 10⁻⁶**, versus 0.48 using Corre. Across windows,
imputation thresholds, effect-size priors, sharing priors and precision treatments,
H4 ranges from **1.08 × 10⁻⁷ to 3.78 × 10⁻⁴**; H3 exceeds 0.9996 throughout.
This is strong evidence against the *single shared causal variant model on the
retained markers*, not proof that no secondary component is shared. The EUR–AFR
magnesium screen instead gives H4 **0.9874–0.9999**. The model continues to favor
different dominant magnesium/eGFR and magnesium/AF signals. Stroke remains
uninformative: its H4 ranges from 0.0011 to 0.463 across the same grid.
[The full fit grid](results/mvp_coloc.csv) preserves these contrasts.

The result is not simply due to adding markers absent from Corre. Restricting
MVP–BUN to the 114 eligible Corre-listed markers gives default H4 = 1.59 × 10⁻⁶.
However, restricting further to its 60 four-cohort markers raises H4 to **0.572**.
That filter removes rs4971100, the strongest retained BUN tag in the older marker
set, whose Corre direction string is `++?+`. Restoring just this carried-forward
marker lowers H4 back to **1.59 × 10⁻⁶**. Across the full sensitivity grid,
the four-cohort subset gives H4 0.118–0.998, versus at most 0.000681 after restoration.
All these fits use the same modern MVP effects: the reversal is a marker-coverage
effect, not changed participants. This post-result diagnostic shows why a sensible
coverage filter for conditional-score analysis can remove the information needed
to distinguish trait profiles. It does not make the older incomplete-cohort effects
safe to condition on. [Marker audit](results/mvp_coverage_marker_audit.csv).

![Modern ancestry-specific magnesium profiles alongside BUN and stroke](results/mvp_regions.png)

**Supplementary Figure 4. Strong magnesium associations do not establish a shared stroke cause.**
Source coverage and vertical scales differ. Orange marks rs4072037; green marks
rs4971100, an anchor carried forward from the older BUN analysis. The plotted
regional variants are not themselves a fine-mapped credible set.

A two-anchor check cautions against treating the single-signal result as the final
mechanism. With pooled EUR reference LD, both rs4072037 and rs4971100 retain
nonzero approximate joint effects in magnesium (z = 9.71 and 5.90) and BUN
(z = −5.32 and −8.47). However, the magnesium rs4971100 residual falls to z = 1.87
using FIN reference LD, versus 5.45–7.17 using the other individual EUR populations.
The reference correlation varies from 0.695 to 0.897. These are small reference
samples, not independent GWAS replications. Neither two nonzero coefficients nor
a regional association peak establishes two causal variants: both SNPs could tag
an unmeasured repeat or another variant. [All reference/overlap sensitivities](results/mvp_two_anchor_sensitivity.csv)
are retained. The modern data resolve the exposure association and the older
single-signal ambiguity, but a reference-sensitive decomposition cannot settle
splicing, repeat length or secondary sharing.

### Splicing and repeat length are competing biological explanations

rs4072037 is not merely a nearest-gene label. Kidney transcript studies demonstrate
that T favours an MUC1 transcript with a 27-nucleotide in-frame deletion [9,10].
However, that molecular effect does not prove that the splice change causes its
magnesium, BUN or stroke associations. A different form of variation—the length
of MUC1's coding tandem repeat—has been fine-mapped to urea and urate in UK Biobank,
with much weaker effects on creatinine eGFR [11]. A SNP-only analysis can tag that
repeat without identifying the splice variant as the causal change.

A 2024 conference abstract reports that MUC1 increases TRPM6 membrane abundance
and channel activity [12]. This provides a plausible connection to magnesium
transport, but the accessible abstract does not establish an rs4072037-specific
effect and is not a full peer-reviewed mechanistic report. Together, the evidence
motivates a transport or repeat-linked biomarker hypothesis rather than a generic
filtration explanation. It does **not yet explain the original stroke result**.

### The original evidence was supportive, with important qualifications

The original paper already reported an imprecise SIMEX-corrected MR-Egger estimate and attenuation after excluding atrial-fibrillation-associated variants. It also reported stronger protection after excluding the MR-PRESSO outlier. These results belong together in the historical comparison (Supplementary Table 3).

**Supplementary Table 3. Published sensitivities and selected reconstructions of the historical analysis.** “Reported” rows are source transcriptions, not reruns. Reconstructing an exclusion means fitting IVW after removing the published variant(s), not reproducing their discovery as outliers.

<!-- table:historical:start -->
| Historical analysis | OR (95% CI) | p | Status |
| --- | --- | --- | --- |
| Primary IVW | 0.63 (0.50–0.80) | 0.00016 | Reported in 2019 |
| MR-Egger with SIMEX | 0.66 (0.21–2.10) | 0.49 | Reported in 2019 |
| Exclude AF-associated rs4072037 and rs13146355 | 0.73 (0.52–1.03) | 0.075 | Reported in 2019 |
| Exclude MR-PRESSO outlier rs11144134 | 0.56 (0.43–0.73) | 1.1e-05 | Reported in 2019 |
| Primary fixed-effect IVW | 0.627 (0.494–0.796) | 0.000123 | Reconstructed |
| Published outlier exclusion, then fixed-effect IVW | 0.561 (0.435–0.724) | 8.62e-06 | Reconstructed exclusion |
| Multiplicative random-effects IVW | 0.627 (0.457–0.859) | 0.00366 | New uncertainty calculation |
| Omit MUC1 alone, fixed-effect IVW | 0.742 (0.544–1.012) | 0.0596 | New influence calculation |

<!-- table:historical:end -->

Generated from [reported estimates](results/reported_estimates.csv), [update estimates](results/update_estimates.csv), and [historical sensitivity estimates](results/robustness_estimates.csv); [rendered table](results/paper_table_historical.md). The reported sensitivity results come from Supplemental Tables 3–5 [1].

In the original six-instrument analysis, MUC1 carries 41.0% of the weight. Removing it changes the log OR from −0.467 to −0.298 and increases the standard error from 0.122 to 0.158. Thus both attenuation and loss of information contribute to the weaker evidence. The remaining estimate is protective and compatible with the full-set estimate. Other historical analyses remain supportive: our weighted-median estimate is 0.522 (0.377–0.721), while reconstructed renal and blood-pressure/urate exclusions give ORs of 0.582 and 0.644. Small reconstruction discrepancies do not constitute evidence against the original finding.

Our broader historical robustness run is not a faithful reproduction of every source method. The source used an MR-PRESSO outlier cutoff of 0.1 followed by standard IVW; our run used alpha 0.05, package global-test gating and 10,000 simulations. It found no applicable cardioembolic outlier correction. Its raw estimate, 0.627 (0.415–0.947), p = 0.0335, uses different dispersion and small-sample inference and must not replace the source's supportive exclusion result. Ordinary Egger is not SIMEX; weighted mode is not the source's heterogeneity-penalized model averaging. We retain the reported SIMEX result rather than claiming to recover unspecified historical settings.

Qin et al. (2024) also used Meyer's magnesium GWAS and European MEGASTROKE outcomes, and discussed magnesium's Egger dilution statistic of 0.87 [5]. We checked those statements in its full text but did not reproduce its supplementary analyses. It is relevant reuse of the underlying sources, not independent outcome replication.

An earlier check using FinnGen R12's registry embolic-stroke endpoint, I9_STR_EMBOLIC, gave 0.900 (0.567–1.429), p = 0.655, with the same five instruments. Its interval includes both the matched historical estimate and the null, and its endpoint differs from etiologic cardioembolic stroke [6]. It is inconclusive, not a failed replication. The historical calcium/all-ischemic-stroke reconstruction, 1.041 (0.887–1.221) per 0.5 mg/dL, likewise shows no precise association rather than equivalence. Neither comparison is part of the present subtype-specific outcome update.

### Published in-sample fine-mapping changes the unit of interpretation

The published MVP fine-mapping results provide a stronger check than conditioning
on our small reference panel. We recovered Table S11 and its methods from the
[public PMC archive](https://pmc-oa-opendata.s3.amazonaws.com/PMC12857194.1/NIHMS2091849-supplement-Supplemental_Table_S11.txt)
[15]. This is an audit of the authors' fitted models, not new fine-mapping or an
independent exposure sample. Their models use population- and trait-matched
in-sample LD and allow several signals.

In EUR, mean magnesium has **two retained credible sets** in the published MUC1
locus. One contains only **rs12743084 and rs4072037**; rs12743084 has the larger
signal-level posterior inclusion probability, 0.673. Thus even the narrow set does
not uniquely implicate the historical splice-associated instrument. The other
set contains four variants, led by rs111587150 (signal-level PIP 0.430). Neither
EUR magnesium set contains rs4971100, the second anchor in our earlier sensitivity.
That sensitivity must not be read as identifying the two published components.

For EUR mean BUN, creatinine and eGFR, each trait has a retained **singleton set
at rs6676150**, distinct from both magnesium sets. Across all retained EUR signals
in the published loci—two for magnesium, three each for BUN, creatinine and eGFR,
and five for atrial fibrillation—none of the 28 magnesium–comparator set pairs
intersects. These are descriptive comparisons, not 28 independent tests or
posterior probabilities of distinct causality. The source authors' selection rules,
95% coverage target and unmeasured variants still limit what disjoint sets imply.

![Published MVP credible-set membership at the three principal markers](results/mvp_finemap_membership.png)

**Supplementary Figure 5. The European distinction does not resolve sharing in every population.**
Cells indicate whether a marker belongs to a published credible set, not its PIP.
Numbers after trait names are source signal identifiers, not strength rankings;
*n* counts all variants in that set. All magnesium sets are shown. Kidney rows
show the sets containing rs6676150; the other sets remain in the
[complete inventory](results/mvp_finemap_signals.csv). Both rs6676150 and
rs12743084 are palindromic and were excluded from our earlier harmonised screens.
The published within-population models include them without our cross-study
strand-matching problem.

The non-EUR results prevent an ancestry-general separation claim. One AFR
magnesium set contains ten variants, including rs6676150 and rs4072037; all ten
also occur in the AFR creatinine and eGFR sets, and seven occur in the AFR BUN
set. The other AFR magnesium set contains six variants, including rs4971100,
and does not intersect those kidney sets. In AMR, the three-variant magnesium
set includes rs6676150, also in the four-variant BUN set. Overlap is compatible
with sharing but does not establish it; different LD, sample sizes and model
selection can explain different resolution without ancestry-specific biology.

These results refine, rather than close, the mechanism question. The European
instrument-containing component is distinguishable from a sharply mapped kidney
component under the published SNP models. The marginal EUR–AFR H4 near one does
not establish one component or one molecular mechanism across populations.
Neither analysis includes the MUC1 repeat itself. The next discriminating test is
repeat-aware fine-mapping of magnesium together with these SNPs, not an additional
single-signal colocalisation or a deletion based only on kidney annotation.

### Both the magnesium instrument and the renal candidate tag repeat-related protein size

We tested a prediction that could have weakened the repeat hypothesis: does the
magnesium instrument fail to tag length variation while the renal candidate tags
it? A public long-read resource allows a direct reference-panel check. Plender et
al.'s 2026 **preprint** supplies predicted complete-ORF MUC1 protein sequences and
assembly metadata [16]. We linked these to 1000 Genomes high-coverage SNP calls
[17], summed the two protein lengths per person, and used unphased dosages rather
than assuming chromosome phase matches between releases. These are assembly-derived
protein predictions, not measured magnesium, expressed isoforms, or exact VNTR counts.

The usable panel contains **206 people** after complete-pair, sample-matching and
conservative family exclusions. In population-adjusted regressions, rs4072037 T
(the magnesium-raising allele) tags shorter proteins: **−572 amino acids per allele**
(95% HC3 interval −643 to −501). The renal candidate rs6676150 C tags longer
proteins: **+570 amino acids** (499 to 640). Each marker separately explains a large
fraction of length variation remaining after population adjustment: partial R² is
**0.651** for rs4072037 and **0.613** for rs6676150. The two published MUC1 length
tags used as positive controls have partial R² values of 0.660 and 0.643.

![Both candidate SNPs tag predicted MUC1 protein size](results/repeat_tagging.png)

**Supplementary Figure 6.** Assembly-derived size versus SNP dosage in the retained panel.
Each point is one person; colors identify source superpopulations and black bars
mark unadjusted dosage-group medians. The partial R² values adjust for 25 source
populations. No association here measures a magnesium or stroke effect.

Both candidates also tag size within the 25 European participants (partial R²
0.694 and 0.739) and 66 African participants (0.534 and 0.497). A joint model
raises the pooled partial R² to 0.690. This is compatible with two imperfect tags
jointly predicting multiallelic length; it does not identify two causal mechanisms.
In the small European subset, neither conditional coefficient is precise enough
to exclude zero. The original magnesium pair cannot be separated in the older
phase-3 subset: rs4072037 T and rs12743084 G dosages agree in all 94 retained
people. The newer high-coverage release has no biallelic SNP row for rs12743084 at
its independently mapped position; we do not substitute another variant.

The evidence has a clear boundary. Only 486 of 592 source haplotype entries supply
complete MUC1 protein sequences. Retention is not uniform across genotypes: for
rs6676150 C dosages 0, 1 and 2, usable-pair fractions before family pruning are
70%, 82% and 59%. Restriction to complete ORFs may select particular repeat alleles.
Nevertheless, the conclusion survives removing the one retained sample requiring
a GM-to-NA name alias and restricting to proteins with an exactly conserved
C-terminal tail. The older phase-3 panel gives similar tagging estimates, but is
a largely overlapping reference check, not independent replication.

Thus, **SNP-level separation does not assign one signal to splicing and the other
to repeat length**. Both SNPs carry substantial length information. This does not
show that repeat length causes either biomarker association; different length
ranges, repeat sequence composition, linked splicing, or other variation could
still distinguish them. Repeat-aware magnesium association, including failed-ORF
assemblies after sequence-level quality review, is the discriminating next test.
[All fits](results/repeat_marker_fits.csv), [selection diagnostics](results/repeat_retention_by_genotype.csv)
and [independent checks](results/repeat_validation.json) are retained.

### Nucleotide sequences support tagging; SNP concordance does not validate repeat length

The published Locityper database provides an older MUC1 nucleotide panel from the
HPRC pangenome, without requiring complete protein predictions [18,19]. We measured
the distance between two unique 31-base anchors flanking the repeat in all 88
nonreference haplotypes (44 people). Five people lack a complete protein pair in
the newer protein resource, and one is absent from that resource. Four of those
five also have MUC1 assembly-quality flags in the newer release. These flags do
not directly adjudicate the older nucleotide panel; we therefore retain the
unfiltered analysis and report a conservative cross-release exclusion. Among 38 people
with both protein predictions, nucleotide and protein diploid lengths are almost
perfectly correlated (squared correlation 0.99988). This is a cross-release check,
not independent sequencing replication.

Of 39 people with both candidate SNP dosages, 34 contribute to population-adjusted
models after singleton populations are omitted. rs4072037 T tags shorter
repeat-spanning length (**−1,782 bp per allele**, 95% HC3 interval −2,494 to −1,069;
partial R² **0.718**); rs6676150 C tags longer length (**+2,065 bp**, 1,274 to 2,856;
partial R² **0.653**). Restricting to complete protein pairs preserves both
associations. Excluding the four people flagged in the newer assembly release
also preserves tagging (adjusted n=30; partial R² 0.707 and 0.548). rs4072037 was also read directly from each nucleotide sequence;
all 39 comparable diploid dosages match the high-coverage SNP release. rs6676150
lies outside the supplied interval, so its phase with the repeat is not measured.
There are **no European participants** in this small panel. It shows that
complete-ORF filtering is not necessary to obtain tagging, but cannot eliminate
selection in the larger protein panel or resolve European trait mechanisms.

A much larger public resource supplies predicted MUC1 haplotypes for 3,202 people.
Before using these as a reference, we translated its published v0.17.3 benchmark
predictions into the same length measure. In the **40-person leave-one-out**
benchmark, median absolute diploid-length error is **2,001 bp**, and **25/40**
errors exceed 600 bp. Yet the predicted rs4072037 dosage is correct in **39/40**;
**24 of these 39 SNP-concordant predictions** still have errors exceeding 600 bp.
Even the full-panel benchmark, which includes the person's own haplotypes, has
23/40 such length errors despite 40/40 correct SNP dosages. Source-reported edit
distances are compatible with the reconstructed sequence-length discrepancies.
Removing people flagged in the newer assembly release leaves 24/36 large
leave-one-out length errors, including 23 with correct SNP dosage. Restriction
to complete protein pairs leaves 22/34 large errors, including 21 with correct
SNP dosage. Thus suspect reference assemblies do not account for the finding.
These are new length-specific summaries of released predictions, not new
software runs or a comparison of current genotypers.

![Nucleotide tagging and repeat-length calibration](results/sequence_panel.png)

**Supplementary Figure 7.** Left and middle: nucleotide lengths and independent SNP dosages for
39 people, without a complete-ORF requirement. Open points lack a complete protein
pair in the newer resource. Right: released leave-one-out length predictions
versus reference lengths; blue points have the correct splice-SNP dosage. The
dashed line is equality. A correct SNP genotype can coexist with a large repeat
error.

Accordingly, we did **not** promote the 3,202 predicted genotypes to an independent
repeat reference or fit magnesium models against them. Raising the released
prediction-quality threshold to 10 or 20 does not remove the observed length
miscalibration in the small retained benchmark subsets. These findings concern
this pinned release and endpoint, not later Locityper versions or all mucin loci.
They establish the validation needed for the next causal test: directly assess
repeat length and composition, not only a linked SNP.
[Length fits](results/sequence_marker_fits.csv),
[benchmark summaries](results/sequence_length_benchmark.csv),
[source hashes](results/sequence_sources.json), and
[independent checks](results/sequence_validation.json) are retained.

## Methods

### Sources and alignment

We retain the original six instrument targets and use combined discovery/replication exposure coefficients from Meyer et al., Table 2, involving 23,829 European-ancestry participants [2]. Historical outcome coefficients come from Larsson's Supplemental Table 2, using MEGASTROKE [1,3]. They are rounded, already oriented to magnesium-raising alleles, and include rs10858938 as the outcome proxy for rs7965584 (reported CEU LD r² = 0.95). We retain that published row for historical reconstruction; the signed proxy phase is unknown. This does not independently recover the original outcome harmonisation.

The update uses the GRCh38-harmonised European cardioembolic stroke release **GCST90104541** from GIGASTROKE, retrieved on 28 October 2026 [4]. The notebook records the full available-set, matched-set, MUC1-excluded and complete leave-one-out comparisons before the later association rows were read. Those choices followed inspection of the historical data; this was not a prospectively registered study predating that inspection.

Public rsID mappings locate the targets. We then require exact rsIDs, coordinates and matching allele pairs in the outcome rows. The retained variants are rs4072037, rs3925584, rs11144134, rs13146355 and rs448378. All are nonpalindromic; rs3925584 requires an outcome sign reversal. Aligned outcome allele frequencies differ from the exposure frequencies by less than 0.01 for each retained variant. No row is returned at rs7965584's mapped position, and we do not import its proxy without verified phase. The [harmonisation audit](results/update_harmonisation.csv) records all alleles, signs, frequencies and exclusions.

### Estimation and assumptions

For exposure effects βX, outcome log odds ratios βY and outcome standard errors sY, first-order fixed-effect IVW uses weights w = βX²/sY² and estimates

β = Σ(w βY/βX) / Σw, with SE(β) = 1/√Σw.

We multiply β and its standard error by 0.1 before forming odds ratios and normal 95% intervals. Multiplicative random-effects IVW inflates the variance by max(1, Q/(k−1)), where Q = Σw(βY/βX−β)² and k is the number of variants. All p-values are two-sided. We report both uncertainty conventions and all deletions, rather than choosing by statistical significance. The original p < 0.006 threshold is context for the historical claims, not a new binary decision rule.

These calculations preserve the source's independent-instrument assumption and treat exposure effects as known. Approximate per-variant F statistics from the rounded exposure beta/SE values range from 16 to 121 ([strength diagnostics](results/robustness_strength.csv)); this does not remove uncertainty from exposure measurement or instrument selection. A causal reading additionally requires that the variants do not share confounding causes with stroke and affect stroke only through the exposure of interest. Neither IVW precision nor a heterogeneity test establishes those assumptions.

### What the later sample adds—and reuses

GIGASTROKE's supplementary cohort table identifies **10,804 European cardioembolic cases**, compared with 7,193 in the original analysis. Of the later cases, 6,189 belong to cohorts labelled unchanged from MEGASTROKE, 718 to updated cohorts and 3,897 to new cohorts. These are cohort-history counts, not participant-overlap fractions. The nominal 1,234,808 European controls in the table are not a verified effective control count for every subtype SNP. Counts and source cells are retained in [update_cohorts.csv](results/update_cohorts.csv).

The endpoint matches at the consortium level, but ascertainment varies. The supplementary methods describe TOAST or related clinical adjudication in several cohorts; EstBB uses ICD-10 I63.4, and the inspected HUNT description does not specify its detailed cardioembolic rule [4]. This is not a uniformly adjudicated new sample. ARIC, Framingham and Rotterdam also contributed magnesium discovery participants. Actual exposure–outcome overlap and its error covariance remain unavailable. We neither assume independence nor pool the old and later estimates.

We also inventoried all 30 accessions named in the GIGASTROKE data-availability statement. Their inspected listings and metadata describe five phenotypes across six ancestry groupings, with only one European cardioembolic release: the one analysed here. No separately labelled new-cohort-only cardioembolic file was identified. This bounded [availability audit](results/independent_outcome_inventory.csv) is not proof that such data are unavailable elsewhere. Subtracting aggregate GWAS estimates cannot recover new participants without the relevant cohort-specific effects, weights and covariance.

### Signed-LD and cohort-coverage follow-up

We extracted biallelic SNP dosages from the phase-3 GRCh37 VCF for 503 EUR
participants (CEU, FIN, GBR, IBS, TSI). Its variant IDs are blank; we mapped exact
GRCh37 positions from CKDGen to rsIDs, then checked allele pairs against each GWAS.
We excluded palindromic variants, duplicates, nonvariable dosages and aligned
allele-frequency differences ≥0.15. GRCh38 windows use the existing GIGASTROKE
mapping, not arithmetic offsets. Pairwise bootstrap sensitivities resample people
within populations (2,000 replicates, seed 20261029); they capture reference-panel
sampling, not GWAS sampling or ancestry mismatch.

The initial score diagnostic is (zⱼ−rⱼc zc)/√(1−rⱼc²). Because its common-sample
assumption fails for some magnesium variants, our follow-up contrasts standardized
marginal effects θⱼ = βⱼ√[2fⱼ(1−fⱼ)] against rⱼc θc. With s denoting the corresponding
standard errors, Var(θⱼ−rⱼc θc) = sⱼ²+rⱼc²sc²−2rⱼc²ρsⱼsc. We use ρ = 0, 0.5, 1 to
vary unknown sampling overlap and both source and reference allele frequencies.
This assumes sampling-error correlation rⱼcρ and common underlying trait scaling;
it is a profile check, not a conditional GWAS or a causal test. Regional maxima
exclude pairs with r² ≥0.95. The ridge diagnostic fits z ∼ N(0,(1−λ)R+λI) after
genomic-order pruning at r² ≥0.95, without using association strength to prune.
The four-cohort sensitivity retains variants with four nonmissing `Direction`
entries. The coverage-specific colocalisation uses the previously stated default
effect-size priors and all three sharing priors, without conditioning. Independent
R calculations check signed dosage correlations, score contrasts and the profile
covariance algebra; [validation](results/muc1_ld_validation.json) concerns
arithmetic, not assumptions. No new SuSiE model was fitted in that diagnostic.

### Modern exposure follow-up

MVP GIA files were streamed from the publication's public dbGaP release after the
Catalog FTP paths returned HTTP 403. Mean magnesium was selected before viewing
regional results; minimum and maximum magnesium were not screened for favorable
findings. All six original instruments, the GRCh38 ±1 Mb region and genome-wide
p < 5 × 10⁻⁸ rows were retained; only the regional and original-instrument results
are analysed here. Coordinates were checked against the existing GRCh38 rsID map.
The source sample-size field is constant within each release. The overall MVP
cohort is predominantly male; EHR measurement and transformation limit
transportability to standardized serum measurements [15].

Colocalisation keeps matched rsIDs with matching coordinates, excludes palindromic
variants, requires allele frequency 0.01–0.99, and uses source imputation-score
thresholds 0.3 and 0.8. The latter field can slightly exceed one and is not treated
as a literal probability. The previous frequency-difference threshold of 0.15
applies to EUR comparisons but not EUR–AFR comparisons. The same windows, priors
and printed/p-derived precision checks are retained. Exclusion of palindromes
also excludes the MVP regional lead rs12743084; no claim is made to have identified
the causal allele. The default narrow high-score comparisons use 423 Mg–BUN and
366 EUR–AFR markers. Matching to the existing outcome region restricts coverage;
these are not all regional MVP variants.

For the two-anchor sensitivity, standardized marginal effects are theta =
beta × sqrt(2f(1−f)), joint effects are R⁻¹ theta, and their covariance is
R⁻¹ S R⁻¹, where S has diagonal squared SEs and off-diagonal r × rho × s1 × s2.
R comes from pooled EUR or each constituent population; rho is 0, 0.5 or 1.
Rho = 1 is the main homogeneous-sample approximation for MVP. These are external-LD
model sensitivities, not recovered conditional GWAS statistics or multi-signal
colocalisation. The BUN release remains combined-ancestry. Independent R checks
verify 720 posterior fits, 144 joint-effect rows and 12 source-allele lookups
([validation](results/mvp_validation.json)); they do not validate these assumptions.

### Audit of published multi-signal models

We selected mean magnesium, mean BUN, mean creatinine, mean eGFR and atrial
fibrillation (`Phe_427_21`) from MVP Table S11, retaining every published locus
spanning GRCh37 rs4072037 at 1:155162067 and every reported population signal in
those loci. This produces 19 merged-source rows and 23 population-specific sets.
We compared exact GRCh37 coordinate/allele identifiers without dropping palindromes
or intersecting with our older GWAS marker lists. Source signal numbers are local
to a phenotype/locus and are not matched across phenotypes. Missing population
sets are not evidence of absent genetic effects. rsIDs were mapped using the
existing CKDGen coordinate/allele tables and an explicit GRCh37 Ensembl lookup for
rs12743084; unmapped identifiers remain coordinates. No arithmetic lift-over was
used. The four EUR/AFR magnesium signal-lead beta and p pairs exactly match the
retained GIA GWAS releases. [Independent R checks](results/mvp_finemap_validation.json)
verify all 23 sets and 35 within-population magnesium–comparator intersections.

The source models use SuSiE, at most five signals, uniform variant priors and 95%
credible sets; they remove sets with minimum absolute within-set correlation
below 0.1 or no population-specific variant at p ≤ 5 × 10⁻⁸ [15, supplementary
methods]. LD is calculated from trait-matched participants but hard-called
rather than dosage genotypes, without covariate adjustment; the authors themselves
flag possible mismatch. Indels and multiallelic sites are excluded. The signal-level
release supplies full credible-set membership and selected PIPs, not the complete
per-component Bayes factors needed for multi-signal colocalisation. We therefore
do not convert intersections into sharing probabilities. The separate Dryad
variant-level file was not recovered in this session.

### Assembly-derived protein-length tagging

The source workbook's Tables S2 and S3 identify assembly quality and complete-ORF
protein sequences [16]. We retained all MUC1 entries, removed any MUC1 assembly-QC
flags, and required exactly two source haplotypes and two complete sequences per
person. Source lengths count the terminal stop character; we subtract one per
sequence. GM19240 and NA19240 identify duplicate assembly entries after name
normalization; all four entries are excluded rather than choosing an assembly.
We matched exact identifiers or GM-to-NA numeric identifiers to public SNP calls,
and checked source population labels against the older panel where available.
One complete, genotyped person per connected pedigree family is retained in
lexicographic order, conservatively excluding some non-genetic relationships too.

Six markers were chosen before fitting: the three fine-mapping candidates, the
prior BUN anchor rs4971100, and the two MUC1 length tags from source Table S5.
GRCh37 and GRCh38 positions come from separate Ensembl mappings; no constant-offset
conversion is used. Genotypes are oriented to the same explicit alleles across
releases, including reference/alternate reversals at rs2070803 and rs12411216.
All 675 comparable sample–marker dosages agree between releases. rs12743084 is
unavailable as a SNP in the high-coverage subset and remains phase-3-only.

The initial phase-3 lookup was expanded to high coverage after finding limited
sample overlap; both releases remain reported. Linear models use population fixed
effects, HC3 standard errors and t intervals with residual degrees of freedom.
Populations represented by only one person contribute no within-population
information and are omitted from adjusted fits. Rank-deficient models are not
fitted; unit-leverage models retain point estimates but no HC3 inference. Partial
R² measures reduction in residual sum of squares, not a causal variance component.
The planned ancestry strata and all tested models remain in the output.
Post-result name-alias and conserved-tail restrictions are labelled sensitivities.
The exact tail anchor `SASTLVHNGT` is found in 482 of 486 source proteins; all such
tails are 288 amino acids long. Trimming it leaves the same length variation in
the retained subset but does not turn protein size into an exact VNTR count.
Independent R checks validate source dosage orientation, diploid aggregation and
all 252 model coefficient rows; they do not validate the source assemblies.

### Nucleotide and prediction-calibration audit

We used version-specific Zenodo release 15879519, whose README identifies the
predictions and benchmarks as Locityper v0.17.3 [19]. The full compressed database
was streamed and MD5-verified; only MUC1 reference coordinates, duplicate-haplotype
identities and nucleotide sequences were retained. One identical haplotype was
restored from the documented equality. Two GRCh38-derived 31-base anchors centered
at chr1:155188400 and 155192100 occur exactly once in every retained sequence.
Their start-to-start distance measures a repeat-spanning interval, not exact VNTR
copy number. Reference GRCh38 sequence agrees with a separate Ensembl retrieval.
The rs4072037 allele was read from its unique, central-base-masked 31-base context.
No phase labels were matched across releases. Protein comparisons use diploid sums.

The adjusted tagging models use the earlier population/HC3 procedure. Five of 39
genotyped people belong to singleton populations and are omitted from adjusted
fits. The one person absent from newer metadata receives a population label only
because both documented parents share that label; this person is a singleton and
does not enter those adjusted fits. Benchmark truth and predicted lengths are
calculated from the same released nucleotide panel. No target person's haplotype
appears in their leave-one-out prediction. We report signed and absolute length
errors, squared correlation, and prediction R² (1 minus squared-error sum divided
by centered reference sum of squares); the latter is negative in the full and
leave-one-out benchmarks. Thresholds on prediction quality are calibration
sensitivities, not tuned filters. Post-result exclusions based on newer assembly
quality flags and complete protein pairs test reference-quality concerns; they
do not establish the accuracy of the older reference sequences. The source
misassembly field is split on semicolons as well as commas. Independent R checks re-extract anchors and
alleles and verify 64 model coefficient rows and all 80 benchmark predictions.
They do not establish experimental sequence truth or validate current software.

### Paired read-input and reference-availability audit

The technology extension uses all eight `QV/{full,loo}_{illumina,hifi,ont,sim}.csv.gz`
files in the same pinned archive. There are 40 Illumina, 20 HiFi, 20 ONT and 44
simulated-read MUC1 predictions per reference setting. We retain all of them in
`technology_benchmark.csv`, but compute technology contrasts only after one-to-one
sample joins. Both long-read comparisons use the same 17 Illumina targets; the
simulation comparison uses 40. The paired median errors are medians within these
intersections, not differences of medians from unmatched samples.

For each target, the length-availability calculation removes its two haplotypes
and every sequence-identical alias. It then enumerates ordered pairs from the
remaining panel, allowing a haplotype to occur twice. The splice-matched version
restricts each copy's pool to the corresponding reference rs4072037 allele.
We minimize absolute diploid length error over pairs. Separately, we find the
nearest length to each reference copy and report the larger of those two errors.
These two optima need not use the same pair. Both calculations use reference
lengths unavailable to a real predictor; neither tests whole-sequence equivalence.

Post-result source-QC and complete-protein restrictions are retained alongside
all-participant summaries. Optimal length matching of predicted and reference
copies checks cancellation without assuming phase or splice matching. The R
verification independently re-extracts raw sequence lengths, joins source
predictions and recomputes all 248 predictions, 88 oracle rows and 48 summaries.
The analysis does not rerun Locityper or establish independent sequence truth.

Reproduce the extension and its calibration and paired-error figures with:

```bash
pixi run --frozen bash studies/mr/larsson2019-magnesium-stroke/analysis/run_technology.sh
```

## Interpretation

The later data make the original large protective estimate less persuasive. The result is more informative than a change from “significant” to “nonsignificant”: the association attenuates on the same variants while fixed-effect precision improves. MUC1 accounts for much of that movement and much of the remaining aggregate protection.

Two stronger conclusions are not warranted. First, the later random-effects interval of 0.649–1.152 allows appreciable protection as well as some harm; it does not establish no causal effect. Second, influence is not proof of pleiotropy. Renal handling, blood pressure and atrial fibrillation could connect these instruments to stroke through magnesium-mediated pathways or through other routes. Removing an AF-associated variant cannot distinguish those explanations and may remove a genuine mediator pathway.

Shared cohorts, heterogeneous stroke ascertainment, rounded and selected exposure effects, and only five retained instruments limit causal interpretation. The new magnesium data independently support the exposure association, but their transformed scale does not replace the original MR calibration. The locus screen distinguishes dominant trait signals under restrictive assumptions; it has not established a shared magnesium–stroke cause or separated splicing from repeat-length effects. MVP now supplies a much stronger ancestry-specific exposure profile, but the two-anchor sensitivity shows that precise GWAS effects do not remove uncertainty in reference LD. Published in-sample models now narrow the European instrument-containing component to two SNPs and separate it from the renal singleton, while non-European sets leave sharing unresolved. Our assembly-derived reference analysis now shows that both candidate SNPs strongly tag protein size, so SNP separation alone cannot distinguish repeat-linked from splice-linked biology. The next mechanistic test should include the tandem repeat alongside those SNPs, rather than treating either lead SNP as established causal variation. The nucleotide audit supports the tagging result without selecting complete ORFs, but the prediction audit shows that a linked SNP can be reconstructed correctly while repeat length is badly underestimated. Thus a larger predicted reference panel is not automatically a better basis for separating these mechanisms. Allele-specific magnesium transport data would be more decisive than another six-variant MR estimator. A nonoverlapping, clinically adjudicated cardioembolic sample remains necessary for a clean outcome replication. The current findings narrow the hypotheses; they do not yet close the causal argument.

These estimates concern lifelong genetically proxied serum magnesium. They do not estimate the benefit, dose or safety of magnesium supplementation.

## Reproducibility

The exploratory mechanism investigation has a separate entrypoint:

```bash
pixi run --frozen bash studies/mr/larsson2019-magnesium-stroke/analysis/run_muc1.sh
```

It fetches regional GIGASTROKE and FinnGen statistics and streams the three Corre
and three Stanzick genome-wide files, retaining only regional rsIDs and the six
original instrument targets. Unisanté data are not redistributed; see its
[data citation and terms](https://data.unisante.ch/catalog/6). Source snapshots,
indexes and retained subsets are hashed in [muc1_sources.json](results/muc1_sources.json).
The script checks allele pairs, excludes palindromic variants from colocalisation,
and excludes pairwise aligned allele-frequency differences of 0.15 or more.

The exploratory ABF calculation assumes at most one causal variant per trait and
uses p1 = p2 = 10⁻⁴, p12 ∈ {10⁻⁶, 10⁻⁵, 10⁻⁴}, and ±250 kb and ±1 Mb windows.
Default effect-size prior SD is 0.2 for log odds or 0.15 phenotype SD for quantitative
traits; both are also halved and doubled. Quantile-normalised magnesium traits use
SD 1; kidney-trait SDs are estimated from sample sizes, frequencies and SEs.
Stanzick's GC-corrected SE and p columns are used. Because its printed beta and SE
have limited precision, a second screen reconstructs absolute z from reported p,
leaving the SE unchanged; this is a precision diagnostic, not a replacement effect
estimate. Trait estimates and p values above remain source values. Dependence
between samples, particularly the mathematically coupled magnesium traits, limits
the posterior interpretation. Creatinine eGFR uses the European release; BUN and
cystatin eGFR use the available combined-ancestry releases, an additional limitation.
All 324 posterior fits agree with the upstream coloc v5.2.3 R functions within
10⁻¹⁰ ([validation](results/muc1_validation.json)); this checks computation, not
the model assumptions. Supplementary Figure 2 is regenerated by the same verification script.

From the repository root, using the project's locked Pixi environment:

```bash
S=studies/mr/larsson2019-magnesium-stroke
pixi run --frozen bash "$S/analysis/run_update.sh"
pixi run --frozen python "$S/analysis/paper_tables.py" --check
```

The first command fetches missing original inputs and the later GWAS subset, verifies retained input hashes, harmonises alleles, recomputes the update and cohort counts, checks all 24 update/leave-one-out fits against R's `MendelianRandomization`, and regenerates Supplementary Figure 1 and the historical Markdown tables in `results/` (the renderer now also produces the main technology table). Supplementary Table 3 also reads the retained, previously validated historical sensitivity outputs. The second command checks that the displayed manuscript tables exactly match their generated versions. Use `paper_tables.py --update-paper` to refresh marked table blocks after an intentional analysis change.

For the separate release-availability audit and historical primary reconstruction:

```bash
pixi run --frozen python "$S/analysis/audit_independent_outcomes.py"
pixi run --frozen Rscript "$S/analysis/main.R"
```

The broader historical sensitivities remain executable in `analysis/robustness.R`, with their settings and package requirements preserved in `historical_record.json` and `results/robustness_environment.json`. They are distinct from the minimal update pipeline. `REPORT.md` is superseded by this paper.

[update_validation.json](results/update_validation.json) records the 24-fit check; [update_sources.json](results/update_sources.json) records URLs, mappings and SHA-256 hashes. Hashes cover retained subsets and metadata, not an unretained whole-genome GWAS. Raw inputs and source documents are fetched into uncommitted `data/`. `NOTES.md` preserves the analysis decisions, earlier results and limits of each check.

The LD/coverage follow-up is rerun with:

```bash
pixi run --frozen bash studies/mr/larsson2019-magnesium-stroke/analysis/run_muc1_ld.sh
```

The modern exposure follow-up is rerun with:

```bash
pixi run --frozen bash studies/mr/larsson2019-magnesium-stroke/analysis/run_mvp.sh
```

The first run streams roughly 1.3 GB of compressed public GWAS data; only selected
rows are retained. [The source manifest](results/mvp_sources.json) pins retained
subsets and source documents, not unretained whole-genome files.

The published fine-mapping audit is rerun with:

```bash
pixi run --frozen bash studies/mr/larsson2019-magnesium-stroke/analysis/run_mvp_finemap.sh
```

It runs the existing MVP prerequisites, retrieves five pinned source/metadata files,
checks the PMC-provided MD5 values for the table and supplement, extracts all
selected sets, validates them against R and generates Supplementary Figure 5. The
[source manifest](results/mvp_finemap_sources.json) hashes full downloaded files.

The repeat-aware reference audit is rerun with:

```bash
pixi run --frozen bash studies/mr/larsson2019-magnesium-stroke/analysis/run_repeat_audit.sh
```

It fetches the public preprint workbook, author-hosted Mukamel methods and six
regional SNP queries in both reference releases. Full source documents, decoded
genotypes and derived individual-level inputs remain in ignored `data/repeat_audit/`.
[Source hashes](results/repeat_sources.json) pin retained files; no chromosome-wide
VCF is downloaded. The pipeline extracts sequences, audits identities and allele
orientation, fits both releases, verifies the calculations in R and draws Supplementary Figure 6.

The nucleotide and prediction-calibration follow-up is rerun with:

```bash
pixi run --frozen bash studies/mr/larsson2019-magnesium-stroke/analysis/run_sequence_panel.sh
```

It fetches the pinned sequence/prediction release, checks source hashes, measures
nucleotide lengths, reconstructs published benchmark errors, checks them in R and
regenerates Supplementary Figure 7. Raw sequences and individual-level derivatives remain in
ignored `data/sequence_panel/`; only aggregate results and provenance are indexed.

## References

1. Larsson SC, Traylor M, Burgess S, et al. (2019). [Serum magnesium and calcium levels in relation to ischemic stroke: Mendelian randomization study](https://doi.org/10.1212/WNL.0000000000007001). *Neurology*. [Supplemental instrument and sensitivity tables](https://osf.io/download/8hgw7/).
2. Meyer TE, Verwoert GC, Hwang SJ, et al. (2010). [Genome-Wide Association Studies of Serum Magnesium, Potassium, and Sodium Concentrations Identify Six Loci Influencing Serum Magnesium Levels](https://doi.org/10.1371/journal.pgen.1001045). *PLoS Genetics*, Table 2.
3. Malik R, Chauhan G, Traylor M, et al. (2018). [Multiancestry genome-wide association study of 520,000 subjects identifies 32 loci associated with stroke and stroke subtypes](https://doi.org/10.1038/s41588-018-0058-3). *Nature Genetics*.
4. Mishra A, Malik R, Hachiya T, et al. (2022). [Stroke genetics informs drug discovery and risk prediction across ancestries](https://doi.org/10.1038/s41586-022-05165-3). *Nature*. [European cardioembolic summary statistics, GCST90104541](https://ftp.ebi.ac.uk/pub/databases/gwas/summary_statistics/GCST90104001-GCST90105000/GCST90104541/harmonised/); [supplementary cohort tables](https://media.springernature.com/original/springer-static/esm/art%3A10.1038%2Fs41586-022-05165-3/MediaObjects/41586_2022_5165_MOESM4_ESM.xlsx); [supplementary methods](https://media.springernature.com/original/springer-static/esm/art%3A10.1038%2Fs41586-022-05165-3/MediaObjects/41586_2022_5165_MOESM1_ESM.docx).
5. Qin S, Wang M, Gill D, et al. (2024). [The mediating role of atrial fibrillation in causal associations between risk factors and stroke: a Mendelian randomization study](https://doi.org/10.4178/epih.e2024005). *Epidemiology and Health*.
6. FinnGen R12. [Embolic stroke endpoint, I9_STR_EMBOLIC](https://r12.risteys.finngen.fi/endpoints/I9_STR_EMBOLIC). Registry phenotype documentation.
7. Corre T, et al. (2018). [Genome-Wide Meta-Analysis Unravels Interactions between Magnesium Homeostasis and Metabolic Phenotypes](https://doi.org/10.1681/ASN.2017030267). *JASN*. Bochud M and Corre T, [summary statistics, version 1.0](https://doi.org/10.16909/DATASET/6), 2017.
8. Stanzick KJ, et al. (2021). [Discovery and prioritization of variants and genes for kidney function in >1.2 million individuals](https://doi.org/10.1038/s41467-021-24491-0). *Nature Communications*. [CKDGen data and column definitions](https://ckdgen.imbi.uni-freiburg.de/datasets/stanzick-et-al-2021/).
9. Xu X, et al. (2018). [Molecular insights into genome-wide association studies of chronic kidney disease-defining traits](https://doi.org/10.1038/s41467-018-07260-4). *Nature Communications*.
10. Naas S, et al. (2023). [Hypoxia controls expression of kidney-pathogenic MUC1 variants](https://doi.org/10.26508/lsa.202302078). *Life Science Alliance*.
11. Mukamel RE, et al. (2021). [Protein-coding repeat polymorphisms strongly shape diverse human phenotypes](https://doi.org/10.1126/science.abg8289). *Science*.
12. [MUC1 and TRPM6, ASN Kidney Week 2024 abstract](https://www.asn-online.org/education/kidneyweek/2024/program-abstract.aspx?controlId=4126297), doi:10.1681/ASN.2024sx1hrqyf. Conference abstract, not a full mechanistic paper.

13. 1000 Genomes Project. [Phase 3 GRCh37 reference collection](https://www.internationalgenome.org/data-portal/data-collection/phase3). EUR subset; [source manifest](results/muc1_ld_sources.json).
14. Zou Y. [Diagnostic for fine-mapping with summary statistics](https://stephenslab.github.io/susieR/articles/susierss_diagnostic.html). SuSiE documentation, accessed 29 October 2026; the ridge diagnostic is implemented here, not a SuSiE fine-mapping fit.

15. Verma A, Huffman JE, Rodriguez A, et al. (2024). [Diversity and scale: Genetic architecture of 2068 traits in the VA Million Veteran Program](https://doi.org/10.1126/science.adj1182). *Science*. [Public GIA lab statistics](https://ftp.ncbi.nlm.nih.gov/dbgap/studies/phs002453/analyses/GIA/MVP_R4.1000G_AGR.GIA.Labs_batch2.tar_expanded/Labs/); [release documentation](https://ftp.ncbi.nlm.nih.gov/dbgap/studies/phs002453/analyses/README_MVP_gwPheWAS_20240719.docx).

16. Plender EG, Prodanov T, Lin J, et al. (2026). [Complex structural variation, phylogeny, and disease associations of the mucin pangenome](https://doi.org/10.64898/2026.07.01.26356476). *medRxiv*, version 1, **preprint, not peer reviewed**. [Public supplementary tables](https://pmc-oa-opendata.s3.amazonaws.com/PMC13345508.1/media-1.xlsx).
17. Byrska-Bishop M, Evani US, Zhao X, et al. (2022). [High-coverage whole-genome sequencing of the expanded 1000 Genomes Project cohort including 602 trios](https://doi.org/10.1016/j.cell.2022.08.004). *Cell*. [Public phased release](https://ftp.1000genomes.ebi.ac.uk/vol1/ftp/data_collections/1000G_2504_high_coverage/working/20220422_3202_phased_SNV_INDEL_SV/).

18. Prodanov T, Plender EG, Seebohm G, et al. (2025). [Locityper enables targeted genotyping of complex polymorphic genes](https://doi.org/10.1038/s41588-025-02362-4). *Nature Genetics*.
19. Prodanov T (2025). [Locityper loci database, 1KGP genotypes and benchmarking data, version-specific release](https://doi.org/10.5281/zenodo.15879519). Zenodo; archived README documents v0.17.3 predictions.
