> Historical reproduction report. The current outcome update and interpretation are in [PAPER.md](PAPER.md). The long-form record cited below is now `results/reproduction_record.json`.

# Primary reproduction: activity and depression

The public-data IVW attempt **matches** the primary reported estimate under the
prespecified point-rounding and confidence-interval-overlap rule. This is a qualified
reproduction attempt, not confirmation of the original historical pipeline.

The target is `c1`, the only claim marked primary in the record: IVW accelerometer
activity to MDD ([Choi et al., Table 1](https://jamanetwork.com/journals/jamapsychiatry/fullarticle/2720689)).
The caption correction is applied by putting the SNP outcome effect in the numerator.
Secondary claims and robustness analyses have not been run.

| Input | OR per SD | 95% CI | P | SNPs | Numerical match |
| --- | ---: | --- | ---: | ---: | --- |
| public_GWAS_fixed_published_instruments | 0.739949 | 0.595602–0.919281 | 0.00652611 | 10 | True |
| published_rounded_etable1 | 0.740739 | 0.596576–0.919739 | 0.00657586 | 10 | True |

All computed numbers above come from [reproduction.csv](results/reproduction.csv).
Numerical agreement here does not mean all printed entries coincide: the public-file
lower CI endpoint rounds to 0.60, versus the reported
0.59, and its P value rounds to
0.007, versus the reported 0.006.
Both intervals overlap substantially. The rounded-table calculation matches the target but is an arithmetic reconstruction
from reported inputs, not independent verification of the GWAS data. It must not be
counted as a second independent result. SEs in the outputs are log-OR SEs.

## What was checked

The analysis uses the published instrument/proxy list, converts MDD ORs to log odds,
harmonises alleles with TwoSampleMR action=2 and fits IVW through the origin using
inverse outcome-variance weights and multiplicative random effects, corrected for
underdispersion. It confirms equivalence to the inspected historical IVW function
and to a direct closed-form calculation. The scale is fixed from [Klimentidis et al.,
Table 1](https://pmc.ncbi.nlm.nih.gov/articles/PMC6195860/), not inferred from the target.
The raw-unit coefficients remain available in the output.

The SNP-level comparison, after aligning both sources to the published alleles, is:

| Input component | Within published rounding | Largest absolute difference |
| --- | ---: | ---: |
| beta_exposure | 10 / 10 | 0.000478 |
| se_exposure | 10 / 10 | 0.0004359 |
| beta_outcome | 4 / 10 | 0.0017992794 |
| se_outcome | 10 / 10 | 0.0005 |

The downloaded activity file contains 2201 rows below the original
relaxed threshold, representing 2200 unique SNP identifiers.
The unique count agrees with eTable 1's footnote. The duplicate row diagnostic is in
input_audit.json; none of the selected primary instruments has duplicate rows.
We cannot establish the authors' actual duplicate-handling rule from this agreement.
Selection remained fixed to the published set.

These diagnostics come from [published_effect_comparison.csv](results/published_effect_comparison.csv)
and [reproduction_audit.json](results/reproduction_audit.json). No selected SNP was
silently replaced. Alleles, frequencies and exclusion flags are retained in
[harmonisation.csv](results/harmonisation.csv). MR-PRESSO was run as the original
outlier diagnostic with prespecified settings; its result is in
[mr_presso.json](results/mr_presso.json). It did not select an alternative primary model.

## Limits and missing inputs

The depression file is the public no-UKB/no-23andMe release, not the restricted full
meta-analysis. [PGC's overlap-removal project](https://psychiatric-genomics-consortium.github.io/mdd-rmUKBB/)
and archived Figshare metadata establish that it underwent later processing.
We could not establish identity with the authors' original file. The effect comparisons
above quantify discrepancies, but cannot attribute every difference to a particular
upstream change. Original release identifiers/checksums would be needed to resolve this.

Clumping and proxy discovery were not independently rerun because the exact historical
panel and query configurations are unspecified. Reference/database resources were not
all downloaded: [resource_status.json](results/resource_status.json) distinguishes
concrete downloads, factual transcription, and unresolved historical snapshots.
Exact original software version, scaling implementation and random settings are also
unknown. These deviations are recorded in record.json and explained in NOTES.md.
No conclusion about causal validity follows from numerical agreement alone.

## Rerun

From the repository root, including with an initially empty study data/ directory:

```sh
pixi run Rscript studies/mr/choi2019-activity-depression/analysis/main.R
```

The entrypoint fetches concrete inputs, validates gzip integrity and available provider
checksums, extracts the fixed SNPs, fits the analyses and updates this report and the
record. The source-table facts are a documented manual transcription embedded in code;
no copyrighted paper or supplement is saved. Scientific file hashes are pinned in the
record; downloaded input hashes are in data/CHECKSUMS. A changed hash stops the rerun.
Runtime and lockfile details are in results/sessionInfo.txt.

Prior work, including the caption erratum and later studies with different findings and
methods, is recorded in record.json → literature. Those studies are not exact reruns.
Human review is needed to obtain/identify the original MDD release and historical
selection/scaling settings before this can be called an exact reproduction.
