repairmap 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
repairmap/__init__.py ADDED
@@ -0,0 +1,8 @@
1
+ """RepairMap: a checked table of myelin repair trials in multiple sclerosis."""
2
+
3
+ from repairmap.check import problems
4
+ from repairmap.table import FIELDS, default_table, load, select
5
+
6
+ __version__ = "0.1.0"
7
+
8
+ __all__ = ["FIELDS", "__version__", "default_table", "load", "problems", "select"]
repairmap/__main__.py ADDED
@@ -0,0 +1,3 @@
1
+ from repairmap.cli import main
2
+
3
+ raise SystemExit(main())
repairmap/check.py ADDED
@@ -0,0 +1,91 @@
1
+ """Check the trial table against its schema and count what it holds."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import re
6
+ from collections import Counter
7
+
8
+ from repairmap.table import Row
9
+
10
+ OUTCOME_CLASSES = ("biomarker", "functional", "safety", "target_engagement")
11
+ RESULTS = (
12
+ "positive",
13
+ "mixed",
14
+ "negative",
15
+ "harm",
16
+ "unclear",
17
+ "safety_only",
18
+ "ongoing",
19
+ "not_started",
20
+ "stopped",
21
+ "not_reported",
22
+ )
23
+ SOURCE_TYPES = ("paper", "registry", "conference", "company", "review")
24
+ REQUIRED = ("id", "agent", "mechanism", "phase", "primary_outcome", "result", "source")
25
+
26
+ # Results that make a call on the primary outcome, as opposed to a status.
27
+ EFFICACY_RESULTS = ("positive", "mixed", "negative", "harm")
28
+
29
+ ID_PATTERN = re.compile(r"[a-z0-9]+(-[a-z0-9]+)*")
30
+ DATE_PATTERN = re.compile(r"\d{4}(-\d{2}(-\d{2})?)?")
31
+ DAY_PATTERN = re.compile(r"\d{4}-\d{2}-\d{2}")
32
+
33
+
34
+ def problems(rows: list[Row]) -> list[str]:
35
+ """Return one message per schema fault. An empty list means the table is clean."""
36
+ out: list[str] = []
37
+ seen: set[str] = set()
38
+ for line, row in enumerate(rows, start=2):
39
+ tag = f"line {line} ({row.get('id') or '?'})"
40
+ for key in REQUIRED:
41
+ if not row[key].strip():
42
+ out.append(f"{tag}: empty {key}")
43
+ for key, value in row.items():
44
+ if value != value.strip():
45
+ out.append(f"{tag}: stray whitespace in {key}")
46
+ if row["id"] and not ID_PATTERN.fullmatch(row["id"]):
47
+ out.append(f"{tag}: id must be lower-case words joined by hyphens")
48
+ if row["id"] in seen:
49
+ out.append(f"{tag}: duplicate id")
50
+ seen.add(row["id"])
51
+ if row["outcome_class"] not in OUTCOME_CLASSES:
52
+ out.append(f"{tag}: outcome_class {row['outcome_class']!r}")
53
+ if row["result"] not in RESULTS:
54
+ out.append(f"{tag}: result {row['result']!r}")
55
+ if row["source_type"] not in SOURCE_TYPES:
56
+ out.append(f"{tag}: source_type {row['source_type']!r}")
57
+ if row["n"] and not row["n"].isdigit():
58
+ out.append(f"{tag}: n {row['n']!r}")
59
+ if row["source_date"] and not DATE_PATTERN.fullmatch(row["source_date"]):
60
+ out.append(f"{tag}: source_date {row['source_date']!r}")
61
+ if row["second_check"] not in {"yes", "no"}:
62
+ out.append(f"{tag}: second_check {row['second_check']!r}")
63
+ if row["checked_on"] and not DAY_PATTERN.fullmatch(row["checked_on"]):
64
+ out.append(f"{tag}: checked_on {row['checked_on']!r}")
65
+ if row["second_check"] == "yes" and not (row["checked_on"] and row["check_note"]):
66
+ out.append(f"{tag}: second_check is yes without checked_on and check_note")
67
+ if row["second_check"] == "no" and not row["check_note"]:
68
+ out.append(f"{tag}: second_check is no without a check_note giving the reason")
69
+ return out
70
+
71
+
72
+ def summary(rows: list[Row]) -> str:
73
+ """Return the headline counts as plain text."""
74
+ done = [r for r in rows if r["result"] in EFFICACY_RESULTS]
75
+ by = Counter((r["outcome_class"], r["result"]) for r in done)
76
+ status = Counter(r["result"] for r in rows if r["result"] not in EFFICACY_RESULTS)
77
+ lines = [
78
+ f"rows: {len(rows)} agents: {len({r['agent'] for r in rows})}",
79
+ f"with a result on the primary outcome: {len(done)}",
80
+ ]
81
+ for cls in OUTCOME_CLASSES:
82
+ parts = [f"{res} {by[(cls, res)]}" for res in EFFICACY_RESULTS if by[(cls, res)]]
83
+ if parts:
84
+ lines.append(f" {cls} primary: " + ", ".join(parts))
85
+ rest = [f"{res} {status[res]}" for res in RESULTS if status[res]]
86
+ if rest:
87
+ lines.append(f"without one: {len(rows) - len(done)}")
88
+ lines.append(" " + ", ".join(rest))
89
+ checked = sum(r["second_check"] == "yes" for r in rows)
90
+ lines.append(f"checked a second time: {checked} of {len(rows)}")
91
+ return "\n".join(lines)
repairmap/cli.py ADDED
@@ -0,0 +1,114 @@
1
+ """Command line for RepairMap: check, summary, show and list."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import argparse
6
+ import csv
7
+ import json
8
+ import sys
9
+ from collections.abc import Sequence
10
+
11
+ from repairmap import __version__
12
+ from repairmap.check import OUTCOME_CLASSES, RESULTS, SOURCE_TYPES, problems, summary
13
+ from repairmap.table import FIELDS, Row, load, select
14
+
15
+ LIST_COLUMNS = ("id", "agent", "phase", "n", "outcome_class", "result", "second_check")
16
+
17
+
18
+ def _parser() -> argparse.ArgumentParser:
19
+ parser = argparse.ArgumentParser(
20
+ prog="repairmap",
21
+ description="A checked table of myelin repair trials in multiple sclerosis.",
22
+ )
23
+ parser.add_argument("--version", action="version", version=f"repairmap {__version__}")
24
+ parser.add_argument("--table", metavar="CSV", help="read this file, not the built-in table")
25
+ sub = parser.add_subparsers(dest="command", required=True)
26
+
27
+ sub.add_parser("check", help="check every row against the schema; exit 1 on a fault")
28
+ sub.add_parser("summary", help="print the headline counts")
29
+
30
+ show = sub.add_parser("show", help="print one trial in full")
31
+ show.add_argument("id", help="row id, for example clemastine-rebuild")
32
+
33
+ lst = sub.add_parser("list", help="list trials, with optional filters")
34
+ lst.add_argument("--agent", help="agent name contains this text")
35
+ lst.add_argument("--mechanism", help="mechanism contains this text")
36
+ lst.add_argument("--population", help="population contains this text")
37
+ lst.add_argument("--registry-id", dest="registry_id", help="registry id contains this text")
38
+ lst.add_argument("--phase", help="phase is exactly this, for example 2 or 1/2")
39
+ lst.add_argument("--result", choices=RESULTS)
40
+ lst.add_argument("--outcome-class", dest="outcome_class", choices=OUTCOME_CLASSES)
41
+ lst.add_argument("--source-type", dest="source_type", choices=SOURCE_TYPES)
42
+ lst.add_argument("--second-check", dest="second_check", choices=("yes", "no"))
43
+ lst.add_argument("--format", choices=("table", "csv", "json"), default="table")
44
+ return parser
45
+
46
+
47
+ def _table_text(rows: list[Row]) -> str:
48
+ widths = {c: max(len(c), *(len(r[c]) for r in rows)) for c in LIST_COLUMNS}
49
+ lines = [" ".join(c.ljust(widths[c]) for c in LIST_COLUMNS).rstrip()]
50
+ lines += [" ".join(r[c].ljust(widths[c]) for c in LIST_COLUMNS).rstrip() for r in rows]
51
+ return "\n".join(lines)
52
+
53
+
54
+ def _show_text(row: Row) -> str:
55
+ width = max(len(f) for f in FIELDS)
56
+ return "\n".join(f"{field.ljust(width)} {row[field]}" for field in FIELDS)
57
+
58
+
59
+ def main(argv: Sequence[str] | None = None) -> int:
60
+ args = _parser().parse_args(argv)
61
+ try:
62
+ rows = load(args.table)
63
+ except (OSError, ValueError) as err:
64
+ print(f"repairmap: {err}", file=sys.stderr)
65
+ return 2
66
+
67
+ if args.command == "check":
68
+ bad = problems(rows)
69
+ for message in bad:
70
+ print(message, file=sys.stderr)
71
+ if bad:
72
+ print(f"{len(bad)} problem(s) in {len(rows)} rows", file=sys.stderr)
73
+ return 1
74
+ print(f"ok: {len(rows)} rows")
75
+ return 0
76
+
77
+ if args.command == "summary":
78
+ print(summary(rows))
79
+ return 0
80
+
81
+ if args.command == "show":
82
+ match = [r for r in rows if r["id"] == args.id]
83
+ if not match:
84
+ print(f"repairmap: no trial with id {args.id!r}", file=sys.stderr)
85
+ return 1
86
+ print(_show_text(match[0]))
87
+ return 0
88
+
89
+ found = select(
90
+ rows,
91
+ agent=args.agent,
92
+ mechanism=args.mechanism,
93
+ population=args.population,
94
+ registry_id=args.registry_id,
95
+ phase=args.phase,
96
+ result=args.result,
97
+ outcome_class=args.outcome_class,
98
+ source_type=args.source_type,
99
+ second_check=args.second_check,
100
+ )
101
+ if args.format == "json":
102
+ print(json.dumps(found, indent=2, ensure_ascii=False))
103
+ elif args.format == "csv":
104
+ writer = csv.DictWriter(sys.stdout, fieldnames=FIELDS, lineterminator="\n")
105
+ writer.writeheader()
106
+ writer.writerows(found)
107
+ elif found:
108
+ print(_table_text(found))
109
+ print(f"{len(found)} of {len(rows)} trials", file=sys.stderr)
110
+ return 0
111
+
112
+
113
+ if __name__ == "__main__":
114
+ raise SystemExit(main())
@@ -0,0 +1,65 @@
1
+ id,agent,trial,registry_id,mechanism,phase,n,population,primary_outcome,outcome_class,result,effect,source,source_type,source_date,second_check,checked_on,check_note
2
+ clemastine-rebuild,clemastine,ReBUILD,NCT02040298,muscarinic receptor antagonist; drives OPC differentiation,2,50,"relapsing MS with chronic demyelinating optic neuropathy, on stable immunomodulatory therapy",shortening of P100 latency delay on full-field VEP,biomarker,positive,latency delay reduced by 1.7 ms/eye (95% CI 0.5 to 2.9; p=0.0048) in the crossover analysis; fatigue more common on clemastine; no serious adverse events,PMID 29029896,paper,2017-10-10,yes,2026-11-23,"Abstract read. Matches. Changed: removed 'no functional gain', which the abstract does not state."
3
+ clemastine-trapms,clemastine,TRAP-MS clemastine arm,NCT03109288,muscarinic receptor antagonist; drives OPC differentiation,1/2,16,"progressive MS, progressing independently of relapses",safety and a CSF remyelination signature,safety,harm,16 started and 9 had a 6-month follow-up; 3 of 9 met the stopping rule (on-treatment progression slope more than 5 times the baseline slope); 0 of 63 slopes on the other TRAP-MS drugs did (p=0.00015); arm stopped in 2022,PMID 40371642,paper,2025-05-15,yes,2026-11-23,"Full text read. (PMC12077908). Matches. Changed: removed the word 'contested', which is not from this source."
4
+ clemastine-recover,clemastine,ReCOVER,NCT02521311,muscarinic receptor antagonist; drives OPC differentiation,2,90,acute optic neuritis,change in full-field VEP P100 latency; change in low-contrast visual acuity,biomarker,ongoing,recruiting; n is planned; primary completion 2028-08,NCT02521311,registry,2026-03-11,yes,2026-11-23,Registry record read. Matches.
5
+ clemastine-restore,clemastine,RESTORE,NCT05338450,muscarinic receptor antagonist; drives OPC differentiation,3,47,MS with internuclear ophthalmoparesis,"versional dysconjugacy index, area under the curve, at 6 and 36 months",functional,stopped,"terminated: a futility analysis in early 2025, triggered by slow recruitment, returned a 'no-go'; no results posted",NCT05338450,registry,2026-05-06,yes,2026-11-23,Registry record read. Changed: the seed said the reason was unknown; the registry gives it.
6
+ clemastine-revive,clemastine,ReVIVE,NCT05359653,muscarinic receptor antagonist; drives OPC differentiation,1/2,74,"MS, relapsing or progressive","corpus callosum myelin water fraction, T1 relaxation time and UTE fraction at 3 and 6 months",biomarker,ongoing,recruiting; n is planned; primary completion 2027-06-01,NCT05359653,registry,2026-07-02,yes,2026-11-23,"Registry record read. Matches. Changed: added the record date, which the seed left empty."
7
+ clemastine-reinforce,clemastine,ReINFORCE,NCT06065670,muscarinic receptor antagonist; drives OPC differentiation,1/2,44,acute demyelinating lesions (MS or clinically isolated syndrome),"corpus callosum myelin water fraction, T1 relaxation time and UTE fraction at 3 and 6 months",biomarker,not_started,not yet recruiting; n is planned; primary completion 2028-10-30,NCT06065670,registry,2026-03-11,yes,2026-11-23,Registry record read. Changed: result was 'ongoing'; the registry says not yet recruiting.
8
+ metformin-clemastine-ccmr2,metformin + clemastine,CCMR-Two,NCT05131828,"metformin to restore the response of ageing OPCs, plus clemastine to drive OPC differentiation",2a,70,"relapsing-remitting MS on DMT, VEP latency over 118 ms in at least one eye","change in full-field VEP P100 latency, baseline to week 26",biomarker,positive,"34 active, 36 placebo; adjusted difference -1.2 ms (95% CI -2.4 to -0.1); no effect on EDSS or other visual measures; more fatigue and gut side effects on treatment",ECTRIMS 2025 abstract O133 as reported by Medicom (2025-11-25); protocol PMID 41361285; NCT05131828,conference,2025-09-26,yes,2026-11-23,"Conference report, protocol abstract and registry record read. Matches. No results paper on PubMed on 2026-11-23."
9
+ metformin-octopus,metformin,Octopus metformin arm,,"metformin, tested here as neuroprotection",MAMS stage 1,,progressive MS,stage 1 interim analysis; stage 1 participants had MRI scans; the page read does not name the measure,biomarker,negative,dropped at the interim analysis: 'no evidence of promise'; stage 1 was the first 375 participants across all arms; the size of the metformin arm is not given; full results not yet published,ms-octopus.mrcctu.ucl.ac.uk decision-point FAQ,company,2026,yes,2026-11-23,"Trial website FAQ read. Changed: n removed (375 is all arms, not this arm); the seed's list of interim measures, phase '2/3' and exact date are not on the page and were removed. No registry number found."
10
+ metformin-macsimise,metformin,MACSiMiSE-BRAIN,NCT05893225,metformin; aim is brain remyelination and less neurodegeneration,2,120,"progressive MS, primary or secondary","change in walking speed, baseline to 96 weeks",functional,ongoing,"active, not recruiting; n is planned; primary completion 2027-02-28",NCT05893225,registry,2025-06-24,yes,2026-11-23,Registry record read. Matches. Changed: added the record date.
11
+ bexarotene-ccmr1,bexarotene,CCMR-One,ISRCTN14265371,retinoid X receptor agonist,2a,52,"relapsing-remitting MS, aged 18 to 50, on dimethyl fumarate","change in mean lesional MTR, baseline to month 6, in lesions below the within-patient median MTR",biomarker,negative,"adjusted difference 0.16 pu (95% CI -0.39 to 0.71; p=0.55); on bexarotene, central hypothyroidism in 26 of 26 and hypertriglyceridaemia in 24 of 26; authors advise against its use; some exploratory MRI and electrophysiology analyses were significant",PMID 34418398,paper,2021-09,yes,2026-11-23,Abstract read. Matches.
12
+ bexarotene-followup,bexarotene,CCMR-One follow-up,,retinoid X receptor agonist,2a,20,CCMR-One participants seen on average 27 months after the trial,full-field VEP P100 latency,biomarker,positive,"12 bexarotene, 8 placebo; adjusted difference -7.79 ms (95% CI -14.76 to -0.82; p=0.044)",PMID 38426437,paper,2024-03-01,yes,2026-11-23,Abstract read. Changed: removed the age claim and the second citation (PMID 41048166 is a review and its abstract gives no such number).
13
+ opicinumab-renew,opicinumab,RENEW,NCT01721161,anti-LINGO-1 antibody,2,82,first unilateral acute optic neuritis,recovery of full-field VEP latency in the affected eye at week 24,biomarker,negative,intention to treat: -3.5 ms (95% CI -10.6 to 3.7; p=0.33); per protocol: -7.6 ms (95% CI -15.1 to 0.0; p=0.050),PMID 28229892,paper,2017-02-15,yes,2026-11-23,Abstract read. Changed: the seed cited the follow-up paper; this row now cites the trial paper and gives its week-24 numbers. The follow-up has its own row.
14
+ opicinumab-renewed,opicinumab,RENEWED,NCT02657915,anti-LINGO-1 antibody,2,52,"RENEW participants, one visit 2 years after their last RENEW visit",full-field VEP latency of the affected eye against the baseline of the fellow eye,biomarker,negative,intention to treat: -4.5 ms (95% CI -12.6 to 3.7; p=0.274); per protocol: -6.0 ms (95% CI -14.6 to 2.6; p=0.165); no benefit on visual acuity,PMID 39662163,paper,2024-11-24,yes,2026-11-23,Abstract read. Matches. Split out of the seed row opicinumab-renew.
15
+ opicinumab-synergy,opicinumab,SYNERGY,NCT01864148,anti-LINGO-1 antibody,2,419,relapsing MS on intramuscular interferon beta-1a,percentage with confirmed disability improvement over 72 weeks (multicomponent),functional,negative,"improved: 49% on placebo; 47%, 63%, 65% and 40% at 3, 10, 30 and 100 mg/kg; no linear dose response (p=0.89)",PMID 31285147,paper,2019-07-05,yes,2026-11-23,Abstract read. Matches.
16
+ opicinumab-affinity,opicinumab,AFFINITY,NCT03222973,anti-LINGO-1 antibody,2,263,relapsing MS on DMT,Overall Disability Response Score over 72 weeks,functional,negative,adjusted mean difference 0.15 (95% CI -0.05 to 0.35; p=0.148); part 2 of the study was discontinued,PMID 41454463,paper,2025-12-26,yes,2026-11-23,Abstract read. Registry record also read. Matches. Changed: 'programme discontinued' narrowed to what the registry says (part 2 stopped).
17
+ pipe307-vista,PIPE-307,VISTA,NCT06083753,selective M1 muscarinic receptor antagonist,2,182,relapsing-remitting MS,change in binocular 2.5% low-contrast letter acuity to week 26; adverse events,functional,negative,no significant change in the primary endpoint; primary and secondary efficacy endpoints not met; no numbers released,Contineum press release 2025-11-20; NCT06083753,company,2025-11-20,yes,2026-11-23,"Press release and registry record read. Changed: n is 182 (registry, actual); the 168 in the seed is not in the press release."
18
+ pipe791-pet,PIPE-791,phase 1b PET study,NCT06683612,LPA1 receptor antagonist,1b,16,healthy volunteers and people with progressive MS (registry also lists idiopathic pulmonary fibrosis),LPA1 receptor occupancy on brain and lung PET,target_engagement,positive,company reports high brain receptor occupancy in healthy volunteers and progressive MS patients; no numbers released; MS development deferred on 2025-10-30,Contineum press release 2025-10-30; NCT06683612,company,2025-10-30,yes,2026-11-23,"Press release and registry record read. Changed: result was 'stopped', but the trial completed (it is the MS programme that was deferred); the 12/4 split of participants is in neither source and was removed. The registry calls it phase 1. Neither source read states a remyelination aim for this trial; the row is kept from the seed until a source confirms or refutes it."
19
+ bazedoxifene-rewrap,bazedoxifene,ReWRAP,NCT04002934,selective oestrogen receptor modulator,2,65,"women with relapsing-remitting MS, aged 45 to 60, or over 40 if post-menopausal",change in corpus callosum myelin water fraction,biomarker,negative,"65 enrolled, 63 completed; no significant difference in MWF or in any efficacy outcome; the report read gives no numbers",ACTRIMS Forum 2026 as reported by NeurologyLive (2026-02-10); protocol PMID 37739167; NCT04002934,conference,2026-02-10,yes,2026-11-23,"News report of the conference talk, protocol abstract and registry record read. Changed: removed 'at 3 or 6 months'; the report gives no time-point results. Registry lists 63 enrolled."
20
+ elezanumab-radius-r,elezanumab,RADIUS-R,NCT03737851,anti-RGMa antibody,2,208,"relapsing MS, on standard of care",mean Overall Response Score,functional,negative,mean score -0.2 at 400 mg and -0.2 at 1800 mg; effect size -0.2 at both doses,PMID 40698976,paper,2025-07-23,yes,2026-11-23,Abstract read. Matches. Registry number taken from the registry record with the same title and n.
21
+ elezanumab-radius-p,elezanumab,RADIUS-P,NCT03737812,anti-RGMa antibody,2,123,"progressive MS, on standard of care",mean Overall Response Score,functional,negative,mean score 0.0 at 400 mg and 0.1 at 1800 mg; effect sizes 0.0 and 0.1,PMID 40698976,paper,2025-07-23,yes,2026-11-23,Abstract read. Matches. Registry number taken from the registry record with the same title and n.
22
+ gsk239512,GSK239512,,NCT01772199,histamine H3 receptor antagonist/inverse agonist,2,131,"relapsing-remitting MS, aged 18 to 50, on interferon beta-1a or glatiramer acetate",change in lesion MTR after a new gadolinium-enhancing or delta-MTR lesion (co-primary),biomarker,mixed,effect size 0.344 (90% CI 0.018 to 0.671) for enhancing lesions and 0.243 (90% CI -0.112 to 0.598) for delta-MTR lesions; 27 patients on GSK239512 and 28 on placebo contributed lesions,PMID 27888416,paper,2016-11-25,yes,2026-11-23,"Abstract read. Matches. Changed: removed 'no clinical benefit', which the abstract does not state; added the second co-primary result."
23
+ domperidone-rrms,domperidone,,NCT02493049,dopamine antagonist; raises prolactin,2,17,relapsing-remitting MS on DMT with at least one enhancing lesion,"feasibility of the trial model; MRI lesion repair at 16 and 32 weeks (texture, MTR, DTI)",biomarker,negative,"12 domperidone, 5 control; no significant group difference in any MRI outcome; the recruitment target of 24 was not met",PMID 38461731,paper,2024-02-27,yes,2026-11-23,Abstract read. Changed: the seed cited a review; this row now cites the trial paper.
24
+ domperidone-spms,domperidone,,NCT02308137,dopamine antagonist; raises prolactin,2,81,"secondary progressive MS, EDSS 4.0 to 6.5",worsening of the timed 25-foot walk by 20% or more at 12 months,functional,negative,"single arm; 81 treated, 62 analysed; 22 of 62 (35%) worsened, close to the expected 40%; futility was not rejected",PMID 34038379,paper,2021-03-23,yes,2026-11-23,"Abstract read. Changed: the seed cited a review; this row now cites the trial paper. Removed '25% target', which the abstract does not give."
25
+ biotin-ms-spi,high-dose biotin (MD1003),MS-SPI,NCT02220933; EudraCT 2013-002113-35,high-dose biotin; may support neuron and oligodendrocyte energy supply,3,154,"progressive MS, EDSS 4.5 to 7","disability reversal at month 9, confirmed at month 12",functional,positive,13 (12.6%) on MD1003 reached the endpoint against none on placebo (p=0.005),PMID 27589059,paper,2016-09-01,yes,2026-11-23,"Abstract read. Changed: split out of the seed row biotin-phase3, which cited a review and called this trial phase 2; the registry lists it as phase 3."
26
+ biotin-ms-on,high-dose biotin (MD1003),MS-ON,NCT02220244; EudraCT 2013-002112-27,high-dose biotin; may support neuron and oligodendrocyte energy supply,3,93,MS with chronic visual loss after optic neuritis,change in 100% contrast visual acuity (logMAR) at month 6,functional,negative,-0.061 logMAR on MD1003 against -0.036 on placebo (p=0.66),PMID 29808469,paper,2018-07,yes,2026-11-23,Abstract read. Changed: split out of the seed row biotin-phase3.
27
+ biotin-spi2,high-dose biotin (MD1003),SPI2,NCT02936037; EudraCT 2016-000700-29,high-dose biotin; may support neuron and oligodendrocyte energy supply,3,642,"primary or secondary progressive MS, EDSS 3.5 to 6.5","improvement in EDSS or timed 25-foot walk at month 12, confirmed at month 15",functional,negative,39 of 326 (12%) on MD1003 against 29 of 316 (9%) on placebo; odds ratio 1.35 (95% CI 0.81 to 2.26); MD1003 distorted some laboratory tests,PMID 33222767,paper,2020-10-23,yes,2026-11-23,"Abstract read. Changed: replaces the seed row biotin-phase3, which cited a review; now cites the trial paper and gives its numbers."
28
+ cnmau8-visionary,CNM-Au8,VISIONARY-MS,NCT03536559,gold nanocrystal suspension; supports brain energy metabolism,2,73,"stable relapsing MS with chronic optic neuropathy, on DMT",change in best-corrected low-contrast letter acuity in the most affected eye to week 48,functional,mixed,"least-squares mean difference 3.13 letters (95% CI -0.08 to 6.33; p=0.056), doses pooled, in a modified intention-to-treat set, with significance pre-set at p=0.10; the full intention-to-treat analysis was not significant; stopped early at 73 of 150 planned","AAN 2023 abstract PL5.005, doi 10.1212/WNL.0000000000203858; Clene press release 2022-08-15; NCT03536559",conference,2023-04-25,yes,2026-11-23,"Conference abstract, company release and registry record read. Changed: the seed cited a review; added the confidence interval, p value and analysis set. No full paper found on PubMed on 2026-11-23."
29
+ liothyronine-mst3k,liothyronine (T3),MST3K,NCT02760056,thyroid hormone,1,15,clinically stable MS,maximum tolerated dose over one week,safety,safety_only,"10 liothyronine, 5 placebo; maximum tolerated dose 75 mcg/day; no serious adverse events; no treatment effect on VEP or low-contrast acuity over one week",PMID 32120028,paper,2020-02-20,yes,2026-11-23,"Abstract read. Matches. Changed: split out of the seed row liothyronine-phase1, which merged two trials."
30
+ liothyronine-phase1b,liothyronine (T3),,NCT02506751,thyroid hormone,1b,20,relapsing or progressive MS,incidence of adverse events over 24 weeks,safety,safety_only,open label; 18 of 20 completed; no treatment-related severe or serious adverse events,PMID 37460763,paper,2023-07-17,yes,2026-11-23,Abstract read. Matches. Changed: split out of the seed row liothyronine-phase1. Registry number taken from the registry record with the same title.
31
+ testosterone-totem,testosterone,TOTEM-RRMS,NCT03910738,testosterone undecanoate (androgen),2,40,men aged 18 to 55 with relapsing-remitting MS and low testosterone,"MRI criterion combining thalamic atrophy and transverse diffusivity of lesions, to week 66",biomarker,ongoing,recruiting; n is planned; primary completion 2027-12,NCT03910738,registry,2025-06-29,yes,2026-11-23,Registry record read. Matches.
32
+ ifenprodil-modif,ifenprodil,MODIF-MS,NCT06330077,repurposed drug tested as a remyelinating agent; mechanism not checked,2,60,MS (relapsing-remitting listed),change in VEP P100 latency between months 6 and 12,biomarker,not_started,not yet recruiting on a record last updated 2024-03-26; n is planned; primary completion listed as 2027-03,NCT06330077,registry,2024-03-26,yes,2026-11-23,Registry record read. Matches. Changed: mechanism 'NMDA antagonist' was not confirmed from the record and was replaced.
33
+ biib061,BIIB061,,NCT04079088,oral agent developed for remyelination; mechanism not stated in the record,2,0,relapsing MS on interferon beta or glatiramer acetate,adverse events; Overall Disability Response Score at week 48,functional,stopped,"withdrawn before enrolment; the sponsor ended the programme, citing preclinical remyelination effects no stronger than opicinumab; not a safety decision",NCT04079088,registry,2023-06-01,yes,2026-11-23,"Registry record read. Changed: the seed cited a review; this row now cites the registry record, with n set to 0 and the stated reason added."
34
+ nsc-stems,human fetal neural precursor cells,STEMS,NCT03269071; EudraCT 2016-002020-86,intrathecal cell therapy,1,12,"progressive MS, EDSS 6.5 or more","feasibility, safety and tolerability over 2 years",safety,safety_only,"no severe adverse reactions related to the cells at 2 years; exploratory: lower rate of brain atrophy at the highest dose; the registry lists 4 enrolled, the paper reports 12",PMID 36624312,paper,2023-01-09,yes,2026-11-23,Abstract read. Registry record also read. Matches.
35
+ rhigm22-stable,rHIgM22,,NCT01803867,recombinant human IgM antibody described as remyelination-promoting,1,72,clinically stable MS,safety and tolerability of single ascending doses,safety,safety_only,well tolerated; antibody detected in CSF; no significant treatment-related change in exploratory outcome measures,PMID 29348926,paper,2017-11-21,yes,2026-11-23,Added 2026-11-23. Abstract read; numbers re-matched to the saved text by script. Registry number taken from the registry record with the same design and n.
36
+ rhigm22-relapse,rHIgM22,,NCT02398461,recombinant human IgM antibody described as remyelination-promoting,1,27,"MS, immediately after an acute relapse",safety and tolerability of single ascending doses,safety,safety_only,generally well tolerated during an acute relapse; dose-dependent CSF concentrations; no efficacy result,PMID 35496758,paper,2022-04-26,yes,2026-11-23,Added 2026-11-23. Abstract read; numbers re-matched to the saved text by script.
37
+ phenytoin-optic-neuritis,phenytoin,,NCT01451593,"voltage-gated sodium channel blocker, tested as neuroprotection",2,86,acute optic neuritis within 2 weeks of onset,retinal nerve fibre layer thickness in the affected eye at 6 months,biomarker,positive,"adjusted difference 7.15 um (95% CI 1.08 to 13.22; p=0.021), a 30% reduction in nerve fibre layer loss; this outcome measures axon loss, not myelin; remyelination by VEP was a secondary aim in the registry record and is not reported in the abstract; registry lists 92 enrolled",PMID 26822749,paper,2016-01-26,yes,2026-11-23,Added 2026-11-23. Abstract read; numbers re-matched to the saved text by script.
38
+ quetiapine,quetiapine (extended release),,NCT02087631,"antipsychotic; improved myelin repair in mice, per the registry record",1/2,14,MS,dose-limiting toxicity,safety,not_reported,completed; no results posted; no trial paper found on PubMed on 2026-11-23,NCT02087631,registry,2019-10-09,yes,2026-11-23,Added 2026-11-23. Registry record read; numbers re-matched to the saved record by script.
39
+ olesoxime-msrepair,olesoxime (TRO19622),MSREPAIR,NCT01808885,mechanism not checked; MRI measures of remyelination were secondary outcomes,1,44,stable relapsing-remitting MS on interferon beta,safety,safety,not_reported,completed; no results posted; no trial paper found on PubMed on 2026-11-23,NCT01808885,registry,2016-11-22,yes,2026-11-23,Added 2026-11-23. Registry record read; numbers re-matched to the saved record by script.
40
+ opicinumab-phase1-ms,opicinumab,,NCT01244139,anti-LINGO-1 antibody,1,47,relapsing-remitting or secondary progressive MS,safety and tolerability of two IV infusions,safety,safety_only,well tolerated; adverse events as frequent on placebo; no serious adverse events,PMID 25340070,paper,2014-08-21,yes,2026-11-23,"Added 2026-11-23. Abstract read; numbers re-matched to the saved text by script. The same paper reports a separate study in 72 healthy volunteers, which has no row."
41
+ elezanumab-phase1-ms,elezanumab,,NCT02601885,anti-RGMa antibody,1,20,"MS, with or without immunomodulatory treatment",adverse events; anti-drug antibodies,safety,safety_only,no pattern of drug-related adverse events; free RGMa in CSF fell by more than 40%,PMID 36093738,paper,2022-11-30,yes,2026-11-23,"Added 2026-11-23. Abstract read; numbers re-matched to the saved text by script. The same paper reports a separate study in 47 healthy participants, which has no row."
42
+ elezanumab-pet,elezanumab,,NCT02606630,anti-RGMa antibody,1,4,relapsing forms of MS,change in translocator protein expression on PET,target_engagement,stopped,terminated: 'company decision'; no results posted,NCT02606630,registry,2017-02-08,yes,2026-11-23,Added 2026-11-23. Registry record read; numbers re-matched to the saved record by script.
43
+ mscnp-phase1,autologous MSC-derived neural progenitors,,NCT01933802,intrathecal cell therapy,1,20,progressive MS,safety and tolerability,safety,safety_only,"open label; all 60 planned treatments given without serious adverse effects; improved median EDSS reported, with no control group",PMID 29449193,paper,2018-02-03,yes,2026-11-23,Added 2026-11-23. Abstract read; numbers re-matched to the saved text by script.
44
+ mscnp-phase2,autologous MSC-derived neural progenitors,,NCT03355365,intrathecal cell therapy,2,54,"primary or secondary progressive MS, EDSS 3.0 to 6.5",improvement on EDSS Plus,functional,negative,"improved: 33% on cells against 37% on saline; exploratory subgroup, bladder and grey matter findings reported",PMID 38783390,paper,2024-05-23,yes,2026-11-23,Added 2026-11-23. Abstract read; numbers re-matched to the saved text by script. Posted registry results also read.
45
+ nsc-spms,allogeneic human neural stem cells,NSC-SPMS,NCT03282760; EudraCT 2015-004855-37,intracerebroventricular cell therapy,1,24,secondary progressive MS,treatment-emergent adverse events; mortality,safety,safety_only,paper reports the first 15 patients at 1 year: no treatment-related deaths or serious adverse events; clinical and MRI measures stable; n is the registry count,PMID 38016468,paper,2023-11-27,yes,2026-11-23,Added 2026-11-23. Abstract read; numbers re-matched to the saved text by script.
46
+ rtms-taurus,low-intensity repetitive TMS,TAURUS,ACTRN12619001196134,magnetic brain stimulation; increased new oligodendrocytes in mice,1,20,relapsing-remitting or secondary progressive MS,safety and tolerability,safety,safety_only,"13 active, 7 sham; no treatment-related adverse events; MRI, patient-reported and performance measures unchanged",PMID 38756414; protocol PMID 35922816,paper,2024-05-15,yes,2026-11-23,Added 2026-11-23. Abstract read; numbers re-matched to the saved text by script. Registry number and population taken from the protocol abstract.
47
+ rtms-phase2,repetitive TMS,,ACTRN12622000064707,magnetic brain stimulation,2,102,MS,"change in MS Functional Composite score, rTMS against sham",functional,not_reported,"recruitment completed, final n 102 against a target of 108; last data collection 2024-08-31; no results found on PubMed on 2026-11-23; remyelination is a stated secondary question",ACTRN12622000064707,registry,2025-02-14,yes,2026-11-23,Added 2026-11-23. ANZCTR record read once.
48
+ pro1562,PRO-1562,,NCT07826689,oral agent given once a month; mechanism not stated in the record,1/2a,160,healthy volunteers (phase 1); relapsing MS with chronic optic neuropathy (phase 2a),adverse events (phase 1); change in VEP P100 latency (phase 2a),biomarker,ongoing,recruiting; n is planned; primary completion 2028-12,NCT07826689,registry,2026-09-29,yes,2026-11-23,Added 2026-11-23. Registry record read; numbers re-matched to the saved record by script.
49
+ ptd802,PTD802,,,selective GPR17 antagonist,1,,healthy volunteers (planned),safety and tolerability,safety,not_started,first-in-human study 'due to commence in Q4 2026' per the company; UK and US regulatory clearance stated; no registry record found,Pheno Therapeutics press release 2026-11-18,company,2026-11-18,no,2026-11-23,"Added 2026-11-23. Company statement only, read as search-result text and not as the full page; nothing independent to check it against."
50
+ ftx101,FTX-101 (tasronetide),,NCT06617546,peptide acting on the Plexin-A1/Neuropilin-1 receptor complex,1,49,healthy men,frequency and severity of adverse events,safety,safety_only,"ended early with its goals met, per the registry; the company states it was safe and well tolerated; no data published",NCT06617546; Find Therapeutics statement 2026-01-09,registry,2025-06-18,yes,2026-11-23,"Added 2026-11-23. Registry record read; numbers re-matched to the saved record by script. Included as the only human trial of this agent so far, although no participant had MS."
51
+ acth-mwf,ACTH gel,,NCT02446886,adrenocorticotropic hormone,4,15,relapsing-remitting or secondary progressive MS with new enhancing lesions,change in myelin water fraction within new enhancing lesions over 12 months,biomarker,unclear,"one course (n=8) against monthly courses (n=7): change 1.7 (SD 1.8) against -0.20 (SD 1.3), p=0.04; both arms received ACTH and there was no untreated control; terminated for slow enrolment",NCT02446886,registry,2021-01-22,yes,2026-11-23,Added 2026-11-23. Posted registry results read; numbers re-matched to the saved record by script.
52
+ acth-avonex,ACTH (repository corticotropin),,NCT00986960,adrenocorticotropic hormone,2,0,relapsing-remitting MS on weekly interferon beta-1a,voxel-wise MTR mapping of lesions and normal-appearing brain tissue,biomarker,stopped,withdrawn before enrolment: difficult to recruit,NCT00986960,registry,2021-01-05,yes,2026-11-23,Added 2026-11-23. Registry record read; numbers re-matched to the saved record by script.
53
+ estriol-vaginal,vaginal estriol,,NCT03774407,oestrogen; labelled in the record as a possible adjunct for remyelination,2/3,21,women aged 40 or over with MS and neurogenic bladder,"change in Bladder Control Scale; change in VEP latency, baseline to 9 months",biomarker,unclear,"single arm, 12 analysed: VEP latency change -4.4 ms (SD 10.4) in the right eye and -10.7 ms (SD 14.4) in the left; bladder score improved; no control group",NCT03774407,registry,2022-09-21,yes,2026-11-23,Added 2026-11-23. Posted registry results read; numbers re-matched to the saved record by script.
54
+ aerobic-exercise,aerobic exercise (cycling),,NCT04539002,"exercise, tested as a remyelination intervention",n/a,60,MS,"somatosensory evoked potentials, baseline to week 24",biomarker,unclear,16 cycling and 16 education control started: median z-score 3.83 to 3.22 against 2.87 to 1.92; no between-group test posted; the registry enrolment of 60 is larger than these two arms,NCT04539002,registry,2026-09-23,yes,2026-11-23,Added 2026-11-23. Posted registry results read; numbers re-matched to the saved record by script.
55
+ onstim,transorbital electrical stimulation,ONSTIM,NCT04042363,electrical stimulation of the optic nerve,n/a,55,acute optic neuritis,VEP P100 latency after treatment,biomarker,not_reported,"completed, primary completion 2023-02-08; no results posted",NCT04042363,registry,2026-11-17,yes,2026-11-23,Added 2026-11-23. Registry record read; numbers re-matched to the saved record by script.
56
+ cytotron-rfqmr,Cytotron (rotational field quantum magnetic resonance),RFQMR,NCT01220830,device; the record claims it stimulates oligodendrocytes,2,40,MS,effect on MS lesions on MRI,biomarker,not_reported,status unknown; record last updated 2011-09-19; n is planned,NCT01220830,registry,2011-09-19,yes,2026-11-23,Added 2026-11-23. Registry record read; numbers re-matched to the saved record by script.
57
+ metformin-paediatric,metformin,,NCT04121468,"metformin, acting on endogenous neural progenitor cells per the title",1/2,20,children and young adults with MS,adverse events; feasibility of recruitment,safety,ongoing,recruiting; n is planned; primary completion 2027-03,NCT04121468,registry,2025-09-23,yes,2026-11-23,Added 2026-11-23. Registry record read; numbers re-matched to the saved record by script.
58
+ metformin-interferon-80,metformin,,NCT05298670,metformin added to interferon beta-1a,2,80,relapsing-remitting MS on interferon beta-1a,change in IL-17,biomarker,negative,open label; IL-17 change -1.39 against -0.93 (p=0.48); no significant MRI or EDSS effect; an MRI 'degree of remyelination' was a secondary outcome in the registry record,PMID 38070031,paper,2023-12-09,yes,2026-11-23,Added 2026-11-23. Abstract read; numbers re-matched to the saved text by script.
59
+ metformin-interferon-30,metformin,,NCT06812585,metformin added to interferon beta-1a,2,30,relapsing-remitting MS on interferon beta-1a,change in serum neurofilament light chain,biomarker,negative,change -32.8 in both groups (p=0.99); no MRI or EDSS difference; an MRI 'degree of remyelination' was a secondary outcome in the registry record,PMID 41483718,paper,2025-12-31,yes,2026-11-23,Added 2026-11-23. Abstract read; numbers re-matched to the saved text by script.
60
+ metformin-ageing,metformin,,NCT06463743,metformin; the record names possible support for repair and remyelination,2,30,ageing people with MS,treatment-related adverse events; change in cortical N-acetyl aspartate over 9 months,biomarker,ongoing,recruiting; n is planned; primary completion 2027-12-01,NCT06463743,registry,2026-11-06,yes,2026-11-23,Added 2026-11-23. Registry record read; numbers re-matched to the saved record by script.
61
+ ehp101,EHP-101,,NCT04909502,mechanism not checked; MTR as a remyelination measure was a secondary outcome,2,50,relapsing forms of MS,treatment-emergent adverse events,safety,stopped,suspended: recruitment paused to re-assess eligibility criteria; record not updated since 2022-10-21; n is planned,NCT04909502,registry,2022-10-21,yes,2026-11-23,Added 2026-11-23. Registry record read; numbers re-matched to the saved record by script.
62
+ remote-ischaemic-conditioning,remote ischaemic conditioning,,NCT06171334,repeated limb ischaemia; hypothesised to promote remyelination,n/a,45,primary progressive MS,timed 25-foot walk,functional,not_started,not yet recruiting on a record last updated 2024-05-09; n is planned; the listed primary completion date of 2026-03-01 has passed,NCT06171334,registry,2024-05-09,yes,2026-11-23,Added 2026-11-23. Registry record read; numbers re-matched to the saved record by script.
63
+ vagus-stimulation-auricular,transauricular vagus nerve stimulation paired with a motor task,,NCT06641271,nerve stimulation device,n/a,70,MS,frequency of adverse events,safety,ongoing,enrolling by invitation; n is planned; primary completion 2031-07,NCT06641271,registry,2026-07-06,yes,2026-11-23,Added 2026-11-23. Registry record read; numbers re-matched to the saved record by script.
64
+ vagus-stimulation-setpoint,implanted vagus nerve stimulator (SetPoint System),,NCT06796504,nerve stimulation device,n/a,60,relapsing-remitting MS on DMT,incidence of adverse events,safety,ongoing,recruiting; n is planned; primary completion 2027-12-31,NCT06796504,registry,2026-09-02,yes,2026-11-23,Added 2026-11-23. Registry record read; numbers re-matched to the saved record by script.
65
+ cnmau8-repair-ms,CNM-Au8,REPAIR-MS,NCT03993171,gold nanocrystal suspension; supports brain energy metabolism,2,33,stable relapsing MS,change in brain redox ratio (NAD+/NADH) on 31P-MRS at 12 weeks,target_engagement,mixed,"paper reports 11 MS participants: the ratio rose, p=0.14 in MS alone and p=0.037 when pooled with 13 Parkinson's participants (10.4% rise); the registry lists 33 enrolled and no final results are posted",PMID 38087362,paper,2023-12-13,yes,2026-11-23,Added 2026-11-23. Abstract read; numbers re-matched to the saved text by script.
repairmap/table.py ADDED
@@ -0,0 +1,86 @@
1
+ """Find, load and filter the trial table.
2
+
3
+ The table is one CSV file, ``data/trials.csv``. It is the only source of
4
+ truth: nothing generates it, and every edit is made to the file itself.
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ import csv
10
+ from collections.abc import Iterable
11
+ from importlib import resources
12
+ from pathlib import Path
13
+
14
+ FIELDS = (
15
+ "id",
16
+ "agent",
17
+ "trial",
18
+ "registry_id",
19
+ "mechanism",
20
+ "phase",
21
+ "n",
22
+ "population",
23
+ "primary_outcome",
24
+ "outcome_class",
25
+ "result",
26
+ "effect",
27
+ "source",
28
+ "source_type",
29
+ "source_date",
30
+ "second_check",
31
+ "checked_on",
32
+ "check_note",
33
+ )
34
+
35
+ Row = dict[str, str]
36
+
37
+
38
+ def default_table() -> Path:
39
+ """Return the path of the table that ships with this copy of the code.
40
+
41
+ A source checkout keeps the file in ``data/`` beside the package. An
42
+ installed wheel carries the same file as ``repairmap/data/trials.csv``.
43
+ """
44
+ checkout = Path(__file__).resolve().parent.parent / "data" / "trials.csv"
45
+ if checkout.is_file():
46
+ return checkout
47
+ return Path(str(resources.files("repairmap") / "data" / "trials.csv"))
48
+
49
+
50
+ def load(path: Path | str | None = None) -> list[Row]:
51
+ """Read the table. Missing cells become empty strings."""
52
+ table = Path(path) if path is not None else default_table()
53
+ with table.open(newline="", encoding="utf-8") as fh:
54
+ reader = csv.DictReader(fh)
55
+ header = tuple(reader.fieldnames or ())
56
+ rows = [{k: (v or "") for k, v in row.items() if k is not None} for row in reader]
57
+ if header != FIELDS:
58
+ raise ValueError(f"{table}: header is {list(header)}, expected {list(FIELDS)}")
59
+ return rows
60
+
61
+
62
+ def select(rows: Iterable[Row], **filters: str | None) -> list[Row]:
63
+ """Keep the rows that match every given filter.
64
+
65
+ A filter on ``agent``, ``mechanism``, ``population``, ``trial`` or
66
+ ``registry_id`` matches
67
+ when the text appears anywhere in the cell, ignoring case. Every other
68
+ column must match exactly.
69
+ """
70
+ loose = {"agent", "mechanism", "population", "trial", "registry_id"}
71
+ wanted = {k: v for k, v in filters.items() if v is not None}
72
+ unknown = set(wanted) - set(FIELDS)
73
+ if unknown:
74
+ raise KeyError(f"not a column: {sorted(unknown)}")
75
+ out = []
76
+ for row in rows:
77
+ for key, value in wanted.items():
78
+ cell = row[key]
79
+ if key in loose:
80
+ if value.lower() not in cell.lower():
81
+ break
82
+ elif cell != value:
83
+ break
84
+ else:
85
+ out.append(row)
86
+ return out
@@ -0,0 +1,210 @@
1
+ Metadata-Version: 2.4
2
+ Name: repairmap
3
+ Version: 0.1.0
4
+ Summary: A checked, machine-readable table of myelin repair trials in multiple sclerosis
5
+ Author: Cedric Conday
6
+ License: MIT
7
+ Requires-Python: >=3.10
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Provides-Extra: dev
11
+ Requires-Dist: pytest>=8; extra == "dev"
12
+ Requires-Dist: ruff>=0.6; extra == "dev"
13
+ Dynamic: license-file
14
+
15
+ # RepairMap
16
+
17
+ A checked, machine-readable table of clinical trials of myelin repair
18
+ (remyelination) therapies in multiple sclerosis (MS). One row per trial.
19
+
20
+ The table is one file: `data/trials.csv`. It holds 64 trials
21
+ of 39 agents as of 2026-11-23.
22
+
23
+ **Nothing here is medical advice.** This is a research table for people who
24
+ design and run trials. It says what was tested and what was reported. It does
25
+ not say what anyone should take. Several agents in it are prescription drugs
26
+ with real harms, and one trial arm in it was stopped for harm.
27
+
28
+ ## What it is for
29
+
30
+ MS trial groups ask the same questions when they plan a repair trial. Which
31
+ agents have been tried? In whom? Against which outcome? What happened? The
32
+ answers sit in papers, registry records, conference talks and company
33
+ statements. This table puts them in one place, with the source of each row
34
+ and the date it was checked.
35
+
36
+ ## How a row gets in
37
+
38
+ A trial gets a row when all of these hold. The full rule, with the judgement
39
+ calls, is in `docs/METHOD.md`.
40
+
41
+ 1. It is an interventional trial in humans. It is on a trial registry, or
42
+ published, or announced by its sponsor.
43
+ 2. The participants have MS or a first demyelinating event such as optic
44
+ neuritis. A healthy-volunteer study gets a row only when it is the only
45
+ human trial of that agent so far.
46
+ 3. The trial's paper, protocol or registry record names remyelination or
47
+ myelin repair as an aim of the treatment, or as an outcome used to test it.
48
+ Trials of an agent that was developed for repair also count.
49
+ 4. The treatment is not an approved immune therapy for MS. Those are given to
50
+ control inflammation, and they are left out even when a study measures
51
+ repair on MRI.
52
+ 5. One row per trial. A follow-up study gets its own row only when it reports
53
+ its own comparison between the original groups.
54
+
55
+ Trials that were looked at and left out are listed, each with a reason, in
56
+ `docs/EXCLUDED.md`.
57
+
58
+ ## Headline counts
59
+
60
+ Output of `repairmap summary` on 2026-11-23:
61
+
62
+ ```
63
+ rows: 64 agents: 39
64
+ with a result on the primary outcome: 27
65
+ biomarker primary: positive 4, mixed 1, negative 8
66
+ functional primary: positive 1, mixed 1, negative 9
67
+ safety primary: harm 1
68
+ target_engagement primary: positive 1, mixed 1
69
+ without one: 37
70
+ unclear 3, safety_only 11, ongoing 9, not_started 4, stopped 5, not_reported 5
71
+ checked a second time: 63 of 64
72
+ ```
73
+
74
+ How to read this:
75
+
76
+ - 27 of the 64 trials have a result on their primary outcome. The other 37 are
77
+ safety studies, are still running, were stopped, or never reported.
78
+ - "Positive" means the trial met its own primary outcome. It does not mean the
79
+ treatment repairs myelin, and it does not mean patients felt better.
80
+ - The four trials with a positive biomarker result are small. Three measured
81
+ the speed of the visual pathway (VEP latency): clemastine (ReBUILD),
82
+ metformin plus clemastine (CCMR-Two) and the bexarotene follow-up. Their
83
+ effects were 1.7 ms, 1.2 ms and 7.79 ms. The fourth, phenytoin in optic
84
+ neuritis, measured nerve fibre loss in the retina, which is a sign of nerve
85
+ protection and not of myelin repair.
86
+ - The one positive result on a functional outcome is the first biotin trial
87
+ (MS-SPI, 154 patients). The larger trial that followed (SPI2, 642 patients)
88
+ was negative.
89
+ - Nine trials with a functional primary outcome were negative. They include
90
+ the four large antibody trials (opicinumab: SYNERGY and AFFINITY;
91
+ elezanumab: RADIUS-R and RADIUS-P) and the selective M1 antagonist PIPE-307
92
+ (VISTA).
93
+ - The one harm result is the clemastine arm of TRAP-MS in progressive MS.
94
+
95
+ ## The columns
96
+
97
+ | Column | Meaning |
98
+ |---|---|
99
+ | `id` | Short name for the row. Lower-case words joined by hyphens. Stable. |
100
+ | `agent` | The drug, cell product, device or other treatment tested. |
101
+ | `trial` | The trial's own name or acronym. Empty when it has none. |
102
+ | `registry_id` | Registry number: NCT (ClinicalTrials.gov), ISRCTN, ACTRN or EudraCT. Empty when none was found. |
103
+ | `mechanism` | How the agent is thought to act, as the source describes it. "Not checked" when the source read does not say. |
104
+ | `phase` | Trial phase as the source gives it. `n/a` for device and exercise trials. |
105
+ | `n` | Number enrolled or randomised. For a trial that has not finished, the planned number; the `effect` cell then says "n is planned". Empty when not reported. |
106
+ | `population` | Who took part. |
107
+ | `primary_outcome` | The primary outcome as the source states it. |
108
+ | `outcome_class` | Kind of primary outcome: `biomarker` (a measurement such as VEP latency or an MRI measure), `functional` (disability, vision, walking), `safety`, or `target_engagement` (does the drug reach and act on its target). |
109
+ | `result` | See the list below. |
110
+ | `effect` | The numbers behind the result, and the caveats. |
111
+ | `source` | Where the row comes from: PMID, registry number, or a named page. |
112
+ | `source_type` | `paper`, `registry`, `conference` or `company`. |
113
+ | `source_date` | Date of the source: publication date, or the registry's last update. |
114
+ | `second_check` | `yes` when the source was read on `checked_on` and the row matches it. Otherwise `no`. |
115
+ | `checked_on` | Date of that check. |
116
+ | `check_note` | What was read (abstract, full text, registry record), and what was changed. |
117
+
118
+ Values of `result`:
119
+
120
+ | Value | Meaning |
121
+ |---|---|
122
+ | `positive` | Met its primary outcome. |
123
+ | `mixed` | Co-primary outcomes disagreed, or the result held only in one analysis set. |
124
+ | `negative` | Did not meet its primary outcome. |
125
+ | `harm` | Stopped or reported for harm. |
126
+ | `unclear` | Results exist but allow no call: no control group, or no test between groups. |
127
+ | `safety_only` | A safety study that reported safety and no efficacy result. |
128
+ | `ongoing` | Recruiting or running. |
129
+ | `not_started` | Registered or announced, not yet recruiting. |
130
+ | `stopped` | Withdrawn, suspended or terminated without a result. |
131
+ | `not_reported` | Finished, or status unknown, and no result was found. |
132
+
133
+ ## Using it
134
+
135
+ Open `data/trials.csv` in any spreadsheet, or load it in code. The command
136
+ line tool needs Python 3.10 or later and nothing else.
137
+
138
+ ```
139
+ pip install repairmap
140
+ repairmap check
141
+ repairmap summary
142
+ repairmap show clemastine-rebuild
143
+ repairmap list --result positive --outcome-class biomarker
144
+ repairmap list --agent metformin --format csv
145
+ ```
146
+
147
+ `repairmap list --result positive --outcome-class biomarker` printed this on
148
+ 2026-11-23:
149
+
150
+ ```
151
+ 4 of 64 trials
152
+ id agent phase n outcome_class result second_check
153
+ clemastine-rebuild clemastine 2 50 biomarker positive yes
154
+ metformin-clemastine-ccmr2 metformin + clemastine 2a 70 biomarker positive yes
155
+ bexarotene-followup bexarotene 2a 20 biomarker positive yes
156
+ phenytoin-optic-neuritis phenytoin 2 86 biomarker positive yes
157
+ ```
158
+
159
+ In Python:
160
+
161
+ ```python
162
+ from repairmap import load, select
163
+
164
+ rows = load()
165
+ negative = select(rows, result="negative", outcome_class="functional")
166
+ ```
167
+
168
+ ## What is not verified
169
+
170
+ As of 2026-11-23:
171
+
172
+ - **Most paper rows were checked against the abstract only.** 30 of the 31
173
+ paper rows rest on the PubMed abstract. One (the TRAP-MS clemastine arm) was
174
+ checked against the full text. Each `check_note` says which. Numbers that
175
+ appear only in the full paper are not in the table.
176
+ - **Three results come from conference reports, not papers:** CCMR-Two,
177
+ ReWRAP (bazedoxifene) and VISIONARY-MS (CNM-Au8). No results paper was found
178
+ on PubMed for any of them. The ReWRAP report read gives no numbers.
179
+ - **Four rows rest on company or trial-site statements:** PIPE-307 (VISTA),
180
+ PIPE-791, the Octopus metformin arm and PTD802. None gives numbers. PTD802
181
+ is the one row with `second_check` set to `no`.
182
+ - **The Octopus row is thin.** The arm size, the interim outcome measure, the
183
+ phase and the registry number were not found on the page read.
184
+ - **Mechanism was not checked** for ifenprodil, olesoxime, EHP-101, PRO-1562
185
+ and BIIB061. The cell says so.
186
+ - **PIPE-791:** neither source read states a remyelination aim for the trial.
187
+ The row is kept from the first version of the table until a source settles it.
188
+ - **Registry numbers** for five rows were matched by title and size and are
189
+ not stated in the paper abstract: both RADIUS trials, MS-SPI, the first
190
+ rHIgM22 study and the liothyronine phase 1b study. The notes say so.
191
+ - **Every check was done once, by one reader, on one day.** The numbers in
192
+ each row were then matched back to the saved source text by a script. Nobody
193
+ else has reviewed the table.
194
+ - **Coverage is not proven complete.** The registry cross-check used
195
+ ClinicalTrials.gov only. Trials registered only elsewhere (EU, UK, Japan,
196
+ China, Iran, Australia) are in the table only if a name search or PubMed
197
+ found them.
198
+ - **Registry records go stale.** A row marked `ongoing` reflects the record on
199
+ its `source_date`.
200
+
201
+ ## Reporting an error
202
+
203
+ Open an issue in this repository. Give the row `id`, the column, what it
204
+ should say, and the source that shows it (PMID, registry number or link). A
205
+ correction without a source cannot be applied.
206
+
207
+ ## Licence
208
+
209
+ MIT. See `LICENSE`. The facts in the table come from the cited
210
+ papers and registry records; no table or text was copied from any review.
@@ -0,0 +1,12 @@
1
+ repairmap/__init__.py,sha256=v3mzVyds_EJZoyCAgAXv4sDJvm1uzvurtfSdlHrnQYE,289
2
+ repairmap/__main__.py,sha256=TVvIo8BNBp4PLBF6zyRvPgEn86La20QN6Qqve9L5ykA,57
3
+ repairmap/check.py,sha256=vPQ-oQiw0BEM0J_AnpSmk7QZEbV-mJsbqTPsysSFVFQ,3912
4
+ repairmap/cli.py,sha256=tOGOaRhyNOs2pF4HI3QaHuafzH-v-SbXLMFARmr20ZA,4253
5
+ repairmap/table.py,sha256=UIDmUe9ETQ-LHlHG_uHsdq7LyOJLgiyNBb2T9lJq56U,2588
6
+ repairmap/data/trials.csv,sha256=A108bLANu_k8hrHXFZ2sc5VAhGlUkawFW0b7O4AFqa0,32460
7
+ repairmap-0.1.0.dist-info/licenses/LICENSE,sha256=8lcLWeN_AyQyu7Rc59azPb8rsdho2H380fSv3nnRoII,1070
8
+ repairmap-0.1.0.dist-info/METADATA,sha256=E95cuvD3b7F7eBhZsEjOIBW4rctCjAXpvWCkZ6rOGIc,9718
9
+ repairmap-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
10
+ repairmap-0.1.0.dist-info/entry_points.txt,sha256=Dcs8pjuEhJwN-ADBoM05XKcnUHNEwth8lQgIvius9Xk,49
11
+ repairmap-0.1.0.dist-info/top_level.txt,sha256=qhHB7KSuVfYFkYfKfzxdKgmCwSlrBkzIGH-cAMbAwEk,10
12
+ repairmap-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ repairmap = repairmap.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Cedric Conday
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ repairmap