OSCR

Disability profiles in progressive multiple sclerosis reflect pathology distribution, independent of clinical phenotype.

Code ↔ Paper

2 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 2 matches
  1. [1] § Materials and methods › Network disconnection quantification ↔ extract_tractogram.py, lines 7–73 · score 0.79 · DSI Studio, streamlines passing, lesion masks, ROI, tracts, template
  2. [2] § Materials and methods › Network disconnection quantification ↔ runner.py, lines 17–55 · score 0.65 · structurally disconnected, streamlines passing, lesion masks, tractogram, matrix, atlas

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

Python · 98 lines · 4.4 KB · CC-BY-NC-SA-4.0 · 1 match

  1. import os
  2. import glob
  3. import subprocess
  4. import argparse
  5. def extract_tractogram(lesion_mask, output_folder, dependencies_directory='./dependencies', overwrite=False) :
  6. """
  7. First step of disconnectome analysis :
  8. Uses DSIStudio to extract the disconnectome and its connectivity matrix. This is done in two calls of dsi_studio command line :
  9. firstly, we isolate the streamlines of the template whole brain tractogram that pass though the lesion mask,
  10. secondly, we extract the connectivity matrix characterizing these streamlines, using a predefined parcellation atlas
  11. Args :
  12. lesion_mask : path to the binary lesion segmentation mask
  13. output_folder : path to the output_folder where the results will be saved
  14. dependencies_directory : path to the dependencies directory
  15. overwrite : if True will overwrite the results if they already exist. If False will not run
  16. """
  17. docker_image_dsi = 'manishka/dsi-studio-docker:v19.10'
  18. docker_run = 'docker run -u $(id -u):$(id -g) --rm -e DISPLAY=' + os.environ['DISPLAY'] + ' -v /tmp/.X11-unix/:/tmp/.X11-unix'
  19. # path to the tractogram of affected streamlines in trk format
  20. output_trk = os.path.join(output_folder,'connectivity_loss.trk.gz')
  21. # path to the connectivity matrix of the affected streamlines
  22. output_cm = os.path.join(output_folder,'connectivity_loss.mat')
  23. # checks if the lesion mask exists in MNI
  24. try :
  25. lesion_roi = glob.glob(lesion_mask)[0]
  26. except:
  27. print('No lesion mask or multiple were found')
  28. return
  29. # definition of volumes to be mounted for docker image
  30. vol = ' -v ' + os.path.abspath(dependencies_directory) + ':/dependencies/ -v ' +\
  31. os.path.split(lesion_roi)[0] + ':/input/ -v ' +\
  32. output_folder + ':/output/ '
  33. docker_base_command = docker_run + vol + docker_image_dsi + ' ./opt/dsistudio/dsi_studio '
  34. # if streamlines passing through lesions were not isolated yet
  35. if not os.path.isfile(output_trk) or overwrite :
  36. # extract affected streamlines
  37. # define output
  38. os.makedirs( output_folder, exist_ok=True)
  39. # command line options to extract streamlines passing through lesion mask from whole brain tractogram
  40. docker_command = docker_base_command +\
  41. '--action=ana --source=/dependencies/HCP842_1mm.fib.gz' +\
  42. ' --tract=/dependencies/whole_brain.trk.gz' +\
  43. ' --roi=/input/' + os.path.split(lesion_roi)[1] +\
  44. ' --output=/output/connectivity_loss.trk.gz'
  45. subprocess.check_output(docker_command,stderr=subprocess.STDOUT,shell= True)
  46. # if the connectivity matrix wasn't already extracted
  47. if not os.path.isfile(output_cm) or overwrite:
  48. # extract connectivity of affected streamlines using the Brainnetome atlas
  49. # command line options to extract connectivity of affected streamlines
  50. docker_command = docker_base_command + \
  51. ' --action=ana --source=/dependencies/HCP842_1mm.fib.gz'+ \
  52. ' --connectivity="/dependencies/BN_Atlas_274_combined.nii.gz' + \
  53. '" --connectivity_value=count --connectivity_type=pass' + \
  54. ' --tract=' + output_trk.replace(output_folder, '/output/') +\
  55. ' --output=/output/connectivity_loss.mat'
  56. subprocess.check_output(docker_command,stderr=subprocess.STDOUT,shell= True)
  57. if __name__ == '__main__':
  58. PARSER = argparse.ArgumentParser(description="Extracting streamlines passing through lesions")
  59. PARSER.add_argument('-d', '--dependencies_directory', dest='dependencies_directory', action='store', required=False, type=str, default ='./dependencies',
  60. help='Path to the dependencies directory. Default is ./dependencies ')
  61. PARSER.add_argument('-o', '--output_directory', dest='output_folder', action='store', required=True, type=str,
  62. help='Output folder of disconnectome')
  63. PARSER.add_argument('-f', '--force', dest='overwrite', action='store_true', default=False,
  64. help='Force overwriting results')
  65. PARSER.add_argument('-l', '--lesion_mask', dest='lesion_mask', action='store', required=True, type=str,
  66. help='Lesion mask in MNI sace')
  67. ARGS = PARSER.parse_args()
  68. extract_tractogram(lesion_mask=ARGS.lesion_mask, dependencies_directory=ARGS.dependencies_directory, output_folder=ARGS.output_folder, overwrite=ARGS.overwrite)

extract_tractogram.py at commit 0716b1e, under CC-BY-NC-SA-4.0 · at the source

Overview

Authors: Ermelinda De Meo1,2, Amy E Jolly1, Marco Ganzetti3, Ferran Prados Carrasco1,4,5, Baris Kanber1, Jonathan Stutters1, David McManus1, Agne Kazlauskaite3, Licinio Craveiro3, Arman Eshaghi1, James Cole6, Declan Chard1,4, Frederik Barkhof1,6,7
  1. NMR Research Unit, Department of Neuroinflammation, UCL Queen Square Institute of Neurology, Faculty of Brain Sciences, Queen Square MS Centre, University College London, London WC1B5EH, United Kingdom
  2. NEUROFARBA, University of Florence, Florence 50100, Italy
  3. Hoffman-La Roche Ltd., Roche-Pharma, Basel 4070, Switzerland
  4. National Institute for Health Research (NIHR) University College London Hospitals (UCLH) Biomedical Research Centre, London NW1 2PG, United Kingdom
  5. eHealth Center, Universitat Oberta de Catalunya, Barcelona 08018, Spain
  6. Queen Square Institute of Neurology and UCL Hawkes Institute, University College London, London WC1V 6LJ, United Kingdom
  7. Department of Radiology and Nuclear Medicine, Amsterdam UMC, Vrije Universiteit, Amsterdam, 22660, 1100 DD, Netherlands
Journal: Brain communications, volume 8, issue 3, article fcag162
Dates: received 4 August 2025; accepted 30 April 2026; published online 2 May 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1093/braincomms/fcag162 · PMID 42205160 · PMCID PMC13201091 · OpenAlex W7160443367
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: structural MRI / diffusion (modality), human (organism), multiple sclerosis (population), clinical / translational (subfield)
Methods: Connectivity, Statistics, Smoothing, state filtering, decompositions, Machine learning, fMRI & imaging
Keywords: multiple sclerosis, progression, disability profiles, MRI, cognition
Topic: Multiple Sclerosis Research Studies (Pathology and Forensic Medicine, Medicine), according to OpenAlex
Funding: Roche
Citations: not cited yet (Europe PMC); 62 references in the paper

Abstract

Multiple sclerosis (MS) is a clinically heterogeneous disease affecting both neurological and cognitive functions. In this study, we defined clinical profiles based on combined cognitive and motor assessments in progressive MS patients, examined their overlap with classical progressive phenotypes and linked each profile to MRI measures of network disconnection and grey matter atrophy. We analyzed baseline data from 580 participants [277 primary progressive (PP)MS, 303 secondary progressive (SP)MS] in the phase 3b CONSONANCE (NCT03523858) study. Clinical assessments included Expanded Disability Status Scale, 9-Hole Peg Test, timed 25-Foot Walk Test, Symbol Digit Modalities Test and Brief Visuospatial Memory Test Revised. MRI acquisition comprised Fluid Attenuated Inversion Recovery for lesion segmentation and 3D-T1 weighted images for disconnectome reconstruction and volumetry. Independent component analysis was applied to regional disconnection and volumes to, respectively, identify patterns (ICs) of disconnection and grey matter atrophy. Latent profile analysis (LPA) identified disability profiles from multimodal clinical data. To identify the variables most strongly associated with each LPA-defined profile, we trained one-versus-all eXtreme Gradient Boosting classifiers and computed SHapley Additive exPlanations values. Based on prevailing clinical manifestation, LPA delineated three profiles: motor disability (n = 138, 23.8%), cognitive disability (n = 181, 31.2%) and global disability (n = 261, 45.0%). Profile prevalence did not differ by clinical phenotype (χ2, P = 0.675). Compared with the other profiles, motor disability one was associated with relatively preserved connectivity and tissue volume in the limbic and frontal networks and preserved volumes in the supplementary motor cortex and postcentral gyrus. The cognitive disability profile had relatively lower connectivity and volumes in the cerebellar vermis, temporal pole, posterior cingulate gyrus parietal operculum, lower default-mode-network connectivity and prefrontal–visual integration network volumes. The global disability profile had lower fronto-parietal-network connectivity and lower grey matter, superior frontal gyrus, pallidum, cuneus and cerebellum volumes. Our findings reveal that progressive MS encompasses at least three clinically and biologically distinct subtypes transcending the traditional PPMS/SPMS divide. The cognitive disability profile is driven by focal network disconnection and targeted grey matter loss in critical cognitive hubs, whereas the global disability profile reflects widespread grey matter atrophy across motor and associative regions. Identifying these profiles could be useful in clinical trials by matching outcome measures to underlying patterns of pathology and their clinical manifestations.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repositories

Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.

data-edu.github.io/tidylpa

License: none: the authors keep all their rights
State: the link answers, verified on 28 September 2026
Evidence: the link answers
Software Heritage: not checked
Found in: the text, “Latent profile analysis”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 28 September 2026: the link answers (HTTP 200)
  • 28 September 2026: the link answers (HTTP 200)

acit-lausanne/lesion-disconnectomics

License: CC-BY-NC-SA-4.0
State: the link answers, verified on 28 September 2026
Evidence: files inventoried
Commit: 0716b1e3490585bae5e1e8c97639b5585fd5b710, 5 October 2021
Languages: Python (3), R (2)
Size: 38 files, 5 scripts
Software Heritage: not archived
Found in: the text, “Network disconnection quantification”
Holds: README, license file, environment (environment.yml, renv.lock)
Not found: CITATION.cff, tests, continuous integration, documentation
Tools: circlize (1 file), ComplexHeatmap (1 file), NetworkX (1 file), NumPy (1 file), pandas (1 file), SciPy (1 file)
Availability: 1 check, the latest on 28 September 2026: the link answers
  • 28 September 2026: the link answers
7 files

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 5 scripts, each with its path and the digest of its content;
  • 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data availability

Data are available from Roche upon reasonable request.

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 2, 28 September 2026

  • Funding: added F. Hoffmann-La Roche

Version 1, 28 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 13 authors, 5 keywords, 49 references.

Cite

This paper

De Meo, E., Jolly, A. E., Ganzetti, M., Prados Carrasco, F., Kanber, B., Stutters, J., McManus, D., Kazlauskaite, A., Craveiro, L., Eshaghi, A., Cole, J., Chard, D., & Barkhof, F. (2026). Disability profiles in progressive multiple sclerosis reflect pathology distribution, independent of clinical phenotype. Brain communications, 8(3), fcag162. https://doi.org/10.1093/braincomms/fcag162

BibTeX

@article{demeo2026disability,
author = {De Meo, Ermelinda and Jolly, Amy E and Ganzetti, Marco and Prados Carrasco, Ferran and Kanber, Baris and Stutters, Jonathan and McManus, David and Kazlauskaite, Agne and Craveiro, Licinio and Eshaghi, Arman and Cole, James and Chard, Declan and Barkhof, Frederik},
title = {{Disability profiles in progressive multiple sclerosis reflect pathology distribution, independent of clinical phenotype}},
journal = {Brain communications},
year = {2026},
month = may,
volume = {8},
number = {3},
pages = {fcag162},
publisher = {Oxford University Press},
issn = {2632-1297},
doi = {10.1093/braincomms/fcag162},
url = {https://doi.org/10.1093/braincomms/fcag162},
pmid = {42205160},
pmcid = {PMC13201091}
}

RIS

TY - JOUR
AU - De Meo, Ermelinda
AU - Jolly, Amy E
AU - Ganzetti, Marco
AU - Prados Carrasco, Ferran
AU - Kanber, Baris
AU - Stutters, Jonathan
AU - McManus, David
AU - Kazlauskaite, Agne
AU - Craveiro, Licinio
AU - Eshaghi, Arman
AU - Cole, James
AU - Chard, Declan
AU - Barkhof, Frederik
TI - Disability profiles in progressive multiple sclerosis reflect pathology distribution, independent of clinical phenotype
T2 - Brain communications
J2 - Brain Commun
PY - 2026
DA - 2026/05/02
VL - 8
IS - 3
SP - fcag162
SN - 2632-1297
PB - Oxford University Press
DO - 10.1093/braincomms/fcag162
UR - https://doi.org/10.1093/braincomms/fcag162
LA - en
ER -

CSL-JSON

{
"id": "10.1093/braincomms/fcag162",
"type": "article-journal",
"title": "Disability profiles in progressive multiple sclerosis reflect pathology distribution, independent of clinical phenotype",
"container-title": "Brain communications",
"author": [
{
"family": "De Meo",
"given": "Ermelinda"
},
{
"family": "Jolly",
"given": "Amy E"
},
{
"family": "Ganzetti",
"given": "Marco"
},
{
"family": "Prados Carrasco",
"given": "Ferran"
},
{
"family": "Kanber",
"given": "Baris"
},
{
"family": "Stutters",
"given": "Jonathan"
},
{
"family": "McManus",
"given": "David"
},
{
"family": "Kazlauskaite",
"given": "Agne"
},
{
"family": "Craveiro",
"given": "Licinio"
},
{
"family": "Eshaghi",
"given": "Arman"
},
{
"family": "Cole",
"given": "James"
},
{
"family": "Chard",
"given": "Declan"
},
{
"family": "Barkhof",
"given": "Frederik"
}
],
"container-title-short": "Brain Commun",
"volume": "8",
"issue": "3",
"page": "fcag162",
"DOI": "10.1093/braincomms/fcag162",
"PMID": "42205160",
"PMCID": "PMC13201091",
"ISSN": "2632-1297",
"publisher": "Oxford University Press",
"URL": "https://doi.org/10.1093/braincomms/fcag162",
"language": "en",
"issued": {
"date-parts": [
[
2026,
5,
2
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1136/jnnp-2025-335884 [code]
Diffusivity anisotropy signature of slowly expanding lesions predicts progression independent of relapse activity in multiple sclerosis.
Journal: Journal of neurology, neurosurgery, and psychiatry
In common: pandas, SciPy, NumPy, multiple sclerosis, structural MRI / diffusion, clinical / translational, 2 authors
[2] doi:10.1162/netn.a.545 [code]
Structure-function multilayer network integration and cognition in multiple sclerosis.
Journal: Network neuroscience (Cambridge, Mass.)
In common: NetworkX, SciPy, NumPy, multiple sclerosis, structural MRI / diffusion, 2 references, author Frederik Barkhof
[3] doi:10.1038/s43856-026-01707-2 [code]
Decreased amyloid-related structure-function coupling in preclinical Alzheimer's disease.
Journal: Communications medicine
In common: pandas, SciPy, NumPy, clinical / translational, 2 authors
[4] doi:10.1002/hbm.70425 [code]
Brain Age Estimation on T2-FLAIR Scans for Application to Multiple Sclerosis.
Journal: Human brain mapping
In common: pandas, SciPy, NumPy, multiple sclerosis, structural MRI / diffusion, clinical / translational, author James H Cole
[5] doi:10.1093/neuonc/noag128 [code]
Spatially-resolved single-cell imaging of melanoma brain metastases identifies localized immune patterns predictive of immune checkpoint blockade response.
Journal: Neuro-oncology
In common: circlize, ComplexHeatmap, NetworkX, 3 other tools, clinical / translational
[6] doi:10.1162/imag.a.1352 [code]
Brain-age in ultra-low-field MRI: How well does it work?
Journal: Imaging neuroscience (Cambridge, Mass.)
In common: pandas, SciPy, NumPy, structural MRI / diffusion, author James H Cole
[7] doi:10.1177/20552173261448282 [code]
The constrained brain in multiple sclerosis: Cognitive impairment is related to network-specific coupling of structural and functional connectivity.
Journal: Multiple sclerosis journal - experimental, translational and clinical
In common: multiple sclerosis, structural MRI / diffusion, 1 reference, author Frederik Barkhof
[8] doi:10.1038/s42003-026-10957-8 [code]
Brain defence by the extracellular matrix protein Cochlin.
Journal: Communications biology
In common: circlize, ComplexHeatmap, NetworkX, 3 other tools
[9] doi:10.1038/s41467-026-76676-0 [code]
Determinants of functional burden pleiotropy and gene dosage responses across human traits.
Journal: Nature communications
In common: circlize, ComplexHeatmap, NetworkX, 3 other tools
[10] doi:10.1093/bioinformatics/btag592 [code]
Network-based stratification of allele-specific expression reveals patient subgroups in Huntington's disease.
Journal: Bioinformatics (Oxford, England)
In common: circlize, ComplexHeatmap, NetworkX, 3 other tools

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.