Impairment of brain short association fibers across clinical stages in amyotrophic lateral sclerosis: a new biomarker mirroring disease progression.
The 4 matches
- [1] § Methods › Data processing ↔ scripts/gibbs.py, lines 127–168 · score 0.72 · local subvoxel shifts, Gibbs ringing, artifacts, removal
- [2] § Methods › Data processing ↔ scripts/pnl_epi.py, lines 17–150 · score 0.67 · distortion correction, rigid registration, FSL, transformation, affine, mask
- [3] § Methods › MRI data acquisition ↔ scripts/gibbs.py, lines 226–303 · score 0.65 · matrix dimensions, gradient directions, slice, weighted, MRI, diffusion
- [4] § Methods › Data processing ↔ scripts/fsl_eddy.py, lines 85–190 · score 0.54 · brain mask, FSL, rotated, eddy, BET, space
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 · 303 lines · 9.9 KB · other · 2 matches
- # https://raw.githubusercontent.com/dipy/dipy/160b202e7cd0ed821e5e1bfc4cf14815700430f3/dipy/denoise/gibbs.py
- from __future__ import division, print_function, absolute_import
- import numpy as np
- def _image_tv(x, axis=0, n_points=3):
- """ Computes total variation (TV) of matrix x across a given axis and
- along two directions.
- Parameters
- ----------
- x : 2D ndarray
- matrix x
- axis : int (0 or 1)
- Axis which TV will be calculated. Default a is set to 0.
- n_points : int
- Number of points to be included in TV calculation.
- Returns
- -------
- ptv : 2D ndarray
- Total variation calculated from the right neighbours of each point.
- ntv : 2D ndarray
- Total variation calculated from the left neighbours of each point.
- """
- xs = x.copy() if axis else x.T.copy()
- # Add copies of the data so that data extreme points are also analysed
- xs = np.concatenate((xs[:, (-n_points-1):], xs, xs[:, 0:(n_points+1)]),
- axis=1)
- ptv = np.absolute(xs[:, (n_points+1):(-n_points-1)] -
- xs[:, (n_points+2):(-n_points)])
- ntv = np.absolute(xs[:, (n_points+1):(-n_points-1)] -
- xs[:, (n_points):(-n_points-2)])
- for n in range(1, n_points):
- ptv = ptv + np.absolute(xs[:, (n_points+1+n):(-n_points-1+n)] -
- xs[:, (n_points+2+n):(-n_points+n)])
- ntv = ntv + np.absolute(xs[:, (n_points+1-n):(-n_points-1-n)] -
- xs[:, (n_points-n):(-n_points-2-n)])
- if axis:
- return ptv, ntv
- else:
- return ptv.T, ntv.T
- def _gibbs_removal_1d(x, axis=0, n_points=3):
- """Suppresses Gibbs ringing along a given axis using fourier sub-shifts.
- Parameters
- ----------
- x : 2D ndarray
- Matrix x.
- axis : int (0 or 1)
- Axis in which Gibbs oscillations will be suppressed.
- Default is set to 0.
- n_points : int, optional
- Number of neighbours to access local TV (see note).
- Default is set to 3.
- Returns
- -------
- xc : 2D ndarray
- Matrix with suppressed Gibbs oscillations along the given axis.
- Notes
- -----
- This function suppresses the effects of Gibbs oscillations based on the
- analysis of local total variation (TV). Although artefact correction is
- done based on two adjacent points for each voxel, total variation should be
- accessed in a larger range of neighbours. The number of neighbours to be
- considered in TV calculation can be adjusted using the parameter n_points.
- """
- ssamp = np.linspace(0.02, 0.9, num=45)
- xs = x.copy() if axis else x.T.copy()
- # TV for shift zero (baseline)
- tvr, tvl = _image_tv(xs, axis=1, n_points=n_points)
- tvp = np.minimum(tvr, tvl)
- tvn = tvp.copy()
- # Find optimal shift for gibbs removal
- isp = xs.copy()
- isn = xs.copy()
- sp = np.zeros(xs.shape)
- sn = np.zeros(xs.shape)
- N = xs.shape[1]
- c = np.fft.fftshift(np.fft.fft2(xs))
- k = np.linspace(-N/2, N/2-1, num=N)
- k = (2.0j * np.pi * k) / N
- for s in ssamp:
- # Access positive shift for given s
- img_p = abs(np.fft.ifft2(np.fft.fftshift(c * np.exp(k*s))))
- tvsr, tvsl = _image_tv(img_p, axis=1, n_points=n_points)
- tvs_p = np.minimum(tvsr, tvsl)
- # Access negative shift for given s
- img_n = abs(np.fft.ifft2(np.fft.fftshift(c * np.exp(-k*s))))
- tvsr, tvsl = _image_tv(img_n, axis=1, n_points=n_points)
- tvs_n = np.minimum(tvsr, tvsl)
- # Update positive shift params
- isp[tvp > tvs_p] = img_p[tvp > tvs_p]
- sp[tvp > tvs_p] = s
- tvp[tvp > tvs_p] = tvs_p[tvp > tvs_p]
- # Update negative shift params
- isn[tvn > tvs_n] = img_n[tvn > tvs_n]
- sn[tvn > tvs_n] = s
- tvn[tvn > tvs_n] = tvs_n[tvn > tvs_n]
- # check non-zero sub-voxel shifts
- idx = np.nonzero(sp + sn)
- # use positive and negative optimal sub-voxel shifts to interpolate to
- # original grid points
- xs[idx] = (isp[idx] - isn[idx])/(sp[idx] + sn[idx])*sn[idx] + isn[idx]
- return xs if axis else xs.T
- def _weights(shape):
- """ Computes the weights necessary to combine two images processed by
- the 1D Gibbs removal procedure along two different axes [1]_.
- Parameters
- ----------
- shape : tuple
- shape of the image.
- Returns
- -------
- G0 : 2D ndarray
- Weights for the image corrected along axis 0.
- G1 : 2D ndarray
- Weights for the image corrected along axis 1.
- References
- ----------
- .. [1] Kellner E, Dhital B, Kiselev VG, Reisert M. Gibbs-ringing artifact
- removal based on local subvoxel-shifts. Magn Reson Med. 2016
- doi: 10.1002/mrm.26054.
- """
- G0 = np.zeros(shape)
- G1 = np.zeros(shape)
- k0 = np.linspace(-np.pi, np.pi, num=shape[0])
- k1 = np.linspace(-np.pi, np.pi, num=shape[1])
- # Middle points
- K1, K0 = np.meshgrid(k1[1:-1], k0[1:-1])
- cosk0 = 1.0 + np.cos(K0)
- cosk1 = 1.0 + np.cos(K1)
- G1[1:-1, 1:-1] = cosk0 / (cosk0 + cosk1)
- G0[1:-1, 1:-1] = cosk1 / (cosk0 + cosk1)
- # Boundaries
- G1[1:-1, 0] = G1[1:-1, -1] = 1
- G1[0, 0] = G1[-1, -1] = G1[0, -1] = G1[-1, 0] = 1/2
- G0[0, 1:-1] = G0[-1, 1:-1] = 1
- G0[0, 0] = G0[-1, -1] = G0[0, -1] = G0[-1, 0] = 1/2
- return G0, G1
- def _gibbs_removal_2d(image, n_points=3, G0=None, G1=None):
- """ Suppress Gibbs ringing of a 2D image.
- Parameters
- ----------
- image : 2D ndarray
- Matrix containing the 2D image.
- n_points : int, optional
- Number of neighbours to access local TV (see note). Default is
- set to 3.
- G0 : 2D ndarray, optional.
- Weights for the image corrected along axis 0. If not given, the
- function estimates them using the function :func:`_weights`.
- G1 : 2D ndarray
- Weights for the image corrected along axis 1. If not given, the
- function estimates them using the function :func:`_weights`.
- Returns
- -------
- imagec : 2D ndarray
- Matrix with Gibbs oscillations reduced along axis a.
- Notes
- -----
- This function suppresses the effects of Gibbs oscillations based on the
- analysis of local total variation (TV). Although artefact correction is
- done based on two adjacent points for each voxel, total variation should be
- accessed in a larger range of neighbours. The number of neighbours to be
- considered in TV calculation can be adjusted the using the parameter.
- n_points.
- References
- ----------
- Please cite the following articles
- .. [1] Neto Henriques, R., 2018. Advanced Methods for Diffusion MRI Data
- Analysis and their Application to the Healthy Ageing Brain
- (Doctoral thesis). https://doi.org/10.17863/CAM.29356
- .. [2] Kellner E, Dhital B, Kiselev VG, Reisert M. Gibbs-ringing artifact
- removal based on local subvoxel-shifts. Magn Reson Med. 2016
- doi: 10.1002/mrm.26054.
- """
- if np.any(G0) is None or np.any(G1) is None:
- G0, G1 = _weights(image.shape)
- img_c1 = _gibbs_removal_1d(image, axis=1, n_points=n_points)
- img_c0 = _gibbs_removal_1d(image, axis=0, n_points=n_points)
- C1 = np.fft.fft2(img_c1)
- C0 = np.fft.fft2(img_c0)
- imagec = abs(np.fft.ifft2(np.fft.fftshift(C1)*G1 + np.fft.fftshift(C0)*G0))
- return imagec
- def gibbs_removal(vol, slice_axis=2, n_points=3):
- """Suppresses Gibbs ringing artefacts of images volumes.
- Parameters
- ----------
- vol : ndarray ([X, Y]), ([X, Y, Z]) or ([X, Y, Z, g])
- Matrix containing one volume (3D) or multiple (4D) volumes of images.
- slice_axis : int (0, 1, or 2)
- Data axis corresponding to the number of acquired slices.
- Default is set to the third axis.
- n_points : int, optional
- Number of neighbour points to access local TV (see note).
- Default is set to 3.
- Returns
- -------
- vol : ndarray ([X, Y]), ([X, Y, Z]) or ([X, Y, Z, g])
- Matrix containing one volume (3D) or multiple (4D) volumes of corrected
- images.
- Notes
- -----
- For 4D matrix last element should always correspond to the number of
- diffusion gradient directions.
- References
- ----------
- Please cite the following articles
- .. [1] Neto Henriques, R., 2018. Advanced Methods for Diffusion MRI Data
- Analysis and their Application to the Healthy Ageing Brain
- (Doctoral thesis). https://doi.org/10.17863/CAM.29356
- .. [2] Kellner E, Dhital B, Kiselev VG, Reisert M. Gibbs-ringing artifact
- removal based on local subvoxel-shifts. Magn Reson Med. 2016
- doi: 10.1002/mrm.26054.
- """
- nd = vol.ndim
- # check the axis corresponding to different slices
- # 1) This axis cannot be larger than 2
- if slice_axis > 2:
- raise ValueError("Different slices have to be organized along" +
- "one of the 3 first matrix dimensions")
- # 2) If this is not 2, swap axes so that different slices are ordered
- # along axis 2. Note that swapping is not required if data is already a
- # single image
- elif slice_axis < 2 and nd > 2:
- vol = np.swapaxes(vol, slice_axis, 2)
- # check matrix dimension
- if nd == 4:
- inishap = vol.shape
- vol = vol.reshape((inishap[0], inishap[1], inishap[2] * inishap[3]))
- elif nd > 4:
- raise ValueError("Data have to be a 4D, 3D or 2D matrix")
- elif nd < 2:
- raise ValueError("Data is not an image")
- # Produce weigthing functions for 2D Gibbs removal
- shap = vol.shape
- G0, G1 = _weights(shap[:2])
- # Run Gibbs removal of 2D images
- if nd == 2:
- vol = _gibbs_removal_2d(vol, n_points=n_points, G0=G0, G1=G1)
- else:
- for vi in range(shap[2]):
- vol[:, :, vi] = _gibbs_removal_2d(vol[:, :, vi], n_points=n_points,
- G0=G0, G1=G1)
- # Reshape data to original format
- if nd == 4:
- vol = vol.reshape(inishap)
- if slice_axis < 2 and nd > 2:
- vol = np.swapaxes(vol, slice_axis, 2)
- return vol
gibbs.py at commit 7c09432, under other · at the source
Overview
- Department of Radiology, Fujian Medical University Union Hospital, Fuzhou, 350001 China
- School of Medical Imaging, Fujian Medical University, Fuzhou, 350122 China
- Department of Neurology, Fujian Medical University Union Hospital, Fuzhou, 350001 China
- School of Computer Science and Engineering, Nanjing University of Science and Technology, Nanjing, 210094 China
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above, with 4 matches between paragraphs and lines of code.
pnlbwh/pnlNipype
7c094328e9470a078f2d6e5540c6ceb9817258c3, 10 July 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
28 files
- scripts/
DWIqc/ , Python, 349 linesdwi_quality.py - scripts/
DWIqc/ , Python, 157 linesdwi_quality_batch.py - scripts/
DWIqc/ , Python, 137 linesvisualize_bvecs.py - scripts/
_eddy_config.py , Python, 22 lines - scripts/
activateTensors.py , Python, 39 lines - scripts/
align.py , Python, 186 lines - scripts/
antsApplyTransformsDWI.p , Python, 88 linesy - scripts/
antsRegistrationSyNMI.sh , Shell, 667 lines - scripts/
atlas.py , Python, 378 lines - scripts/
bet_mask.py , Python, 90 lines - scripts/
bse.py , Python, 119 lines - scripts/
fs.py , Python, 167 lines - scripts/
fs2dwi.py , Python, 313 lines - scripts/
fsl_eddy.py , Python, 195 lines, 1 match - scripts/
fsl_topup_epi_eddy.py , Python, 573 lines - scripts/
gibbs.py , Python, 303 lines, 2 matches - scripts/
makeAlignedMask.py , Python, 55 lines - scripts/
maskfilter.py , Python, 76 lines - scripts/
masking.py , Python, 37 lines - scripts/
pnl_eddy.py , Python, 144 lines - scripts/
pnl_epi.py , Python, 154 lines, 1 match - scripts/
resample.py , Python, 115 lines - scripts/
ukf.py , Python, 116 lines - scripts/
unring.py , Python, 89 lines - scripts/
util.py , Python, 47 lines - scripts/
wmql.py , Python, 91 lines - scripts/
wmqlqc.py , Python, 57 lines - LICENSE, License, 195 lines
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:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 27 scripts, each with its path and the digest of its content;
- 4 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 statement
The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it says that the data are available on request
Read it in the paper: doi.org/10.1186/s12916-026-04770-7.
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 1, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 8 authors, 5 keywords, 13 MeSH terms, 4 funders, 56 references.
Cite
This paper
Huang, N.-X., Cai, Z.-W., Zhuang, S.-P., Lin, H.-Y., Chen, S., Zou, Z.-Y., Wu, Y., & Chen, H.-J. (2026). Impairment of brain short association fibers across clinical stages in amyotrophic lateral sclerosis: a new biomarker mirroring disease progression. BMC medicine, 24(1), 241. https://
BibTeX
@article{huang2026impair
author = {Huang, Nao-Xin and Cai, Zi-Wei and Zhuang, Shao-Peng and Lin, Hong-Yu and Chen, Sheng and Zou, Zhang-Yu and Wu, Ye and Chen, Hua-Jun},
title = {{Impairment of brain short association fibers across clinical stages in amyotrophic lateral sclerosis: a new biomarker mirroring disease progression}},
journal = {BMC medicine},
year = {2026},
month = mar,
volume = {24},
number = {1},
pages = {241},
publisher = {BioMed Central},
issn = {1741-7015},
doi = {10.1186/
url = {https://
pmid = {41792723},
pmcid = {PMC13077863}
}
RIS
TY - JOUR
AU - Huang, Nao-Xin
AU - Cai, Zi-Wei
AU - Zhuang, Shao-Peng
AU - Lin, Hong-Yu
AU - Chen, Sheng
AU - Zou, Zhang-Yu
AU - Wu, Ye
AU - Chen, Hua-Jun
TI - Impairment of brain short association fibers across clinical stages in amyotrophic lateral sclerosis: a new biomarker mirroring disease progression
T2 - BMC medicine
J2 - BMC Med
PY - 2026
DA - 2026/
VL - 24
IS - 1
SP - 241
SN - 1741-7015
PB - BioMed Central
DO - 10.1186/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1186/
"type": "article-journal",
"title": "Impairment of brain short association fibers across clinical stages in amyotrophic lateral sclerosis: a new biomarker mirroring disease progression",
"container-title": "BMC medicine",
"author": [
{
"family": "Huang",
"given": "Nao-Xin"
},
{
"family": "Cai",
"given": "Zi-Wei"
},
{
"family": "Zhuang",
"given": "Shao-Peng"
},
{
"family": "Lin",
"given": "Hong-Yu"
},
{
"family": "Chen",
"given": "Sheng"
},
{
"family": "Zou",
"given": "Zhang-Yu"
},
{
"family": "Wu",
"given": "Ye"
},
{
"family": "Chen",
"given": "Hua-Jun"
}
],
"container-title-short":
"volume": "24",
"issue": "1",
"page": "241",
"DOI": "10.1186/
"PMID": "41792723",
"PMCID": "PMC13077863",
"ISSN": "1741-7015",
"publisher": "BioMed Central",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
6
]
]
}
}
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.1016/j.isci.2026.116671 [code]
- A high-resolution functional network-organized atlas of human superficial white matter from ultra-high-field diffusion MRI.Journal: iScienceIn common: DIPY, ANTs, FSL, 5 other tools, structural MRI / diffusion, 6 references
- [2] doi:10.1126/sciadv.aec2348 [code]
- Congenital blindness reduces myelination in human visual cortex.Journal: Science advancesIn common: FreeSurfer, NiBabel, pandas, 1 other tool, structural MRI / diffusion, other condition, 9 references
- [3] doi:10.1162/imag.a.1341 [code]
- Massively parallelized brain tractography using compute clusters, supercomputers, and graphics processing units.Journal: Imaging neuroscience (Cambridge, Mass.)In common: DIPY, FSL, NiBabel, 4 other tools, structural MRI / diffusion, 6 references
- [4] doi:10.1038/s41467-026-73366-9 [code]
- Cortical and white matter myelination proceed in concert during early infancy.Journal: Nature communicationsIn common: DIPY, FreeSurfer, scikit-image, 5 other tools, 5 references
- [5] doi:10.1093/cercor/bhag132 [code]
- Spatiotemporal white-matter development across early childhood.Journal: Cerebral cortex (New York, N.Y. : 1991)In common: DIPY, ANTs, FSL, 5 other tools, structural MRI / diffusion, 3 references
- [6] doi:10.1038/s41467-026-71918-7 [code]
- Developmental disinhibition gates language lateralization in childhood.Journal: Nature communicationsIn common: ANTs, FreeSurfer, FSL, 5 other tools, 5 references
- [7] doi:10.1002/nbm.70353 [code]
- Automated Surface-Based Segmentation of Deep Gray Matter Regions Based on Diffusion Tensor Images Reveals Unique Age Trajectories Over the Healthy Lifespan.Journal: NMR in biomedicineIn common: DIPY, ANTs, FreeSurfer, 5 other tools, structural MRI / diffusion, 2 references
- [8] doi:10.1162/imag.a.1153 [code]
- TRAMFIX: TRavelling Across Melbourne for FIXel-based analysis (a reproducibility and reliability study).Journal: Imaging neuroscience (Cambridge, Mass.)In common: ANTs, FSL, pandas, 3 other tools, structural MRI / diffusion, 6 references
- [9] doi:10.1162/imag.a.1325 [code]
- Decoding everyday levels of musical training from subcortical white-matter architecture.Journal: Imaging neuroscience (Cambridge, Mass.)In common: FreeSurfer, FSL, pandas, 3 other tools, structural MRI / diffusion, 6 references
- [10] doi:10.1038/s41598-026-51531-w [code]
- Multimodal age-dependent diffusion-MRI analysis of the neocortex in a rat model of cortical dysplasia.Journal: Scientific reportsIn common: DIPY, FSL, scikit-image, 5 other tools, structural MRI / diffusion, 3 references
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.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 27 scripts, and 4 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:7462f2a41be12a10…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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.
