NeuroStream: an interactive platform for exploratory visualization and harmonization of multicohort brain MRI data.
The 4 matches
- [1] § 3 Results › 3.1 Performance and usability ↔ deta.py, lines 75–134 · score 0.64 · log transformation, intracranial volume, log1p, ComBat, score, ICV
- [2] § 3 Results › 3.1 Performance and usability ↔ app.py, lines 25–82 · score 0.61 · log transformation, intracranial volume, log1p, score, Selection, ComBat
- [3] § 2 Methods › 2.3 Data handling and preprocessing ↔ deta.py, lines 75–134 · score 0.52 · Log transformation, log1p, score
- [4] § 2 Methods › 2.3 Data handling and preprocessing ↔ app.py, lines 25–82 · score 0.52 · Log transformation, log1p, score, preprocessing
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 · 152 lines · 5 KB · no license · 2 matches
- import os
- import numpy as np
- import pandas as pd
- import streamlit as st
- from sklearn.preprocessing import (
- OneHotEncoder,
- PowerTransformer,
- StandardScaler
- )
- from pycombat import Combat
- from PIL.Image import open
- path='./assets'
- ind=[
- 'C_ID','epid','session_id','R_ID','session','ck_dcode','AS_DATA_CLASS','AS_EDATE'
- ]
- exotic=["cretn_tr1","cretn_tr2"]
- grouper="cohort"
- @st.cache_data
- def read(deta_path=path) -> pd.DataFrame:
- deta_files = [q.path for q in os.scandir(deta_path) if q.name.endswith(".f")]
- if not deta_files:
- raise FileNotFoundError("No .f files found in assets directory.")
- df = pd.concat([pd.read_feather(p) for p in deta_files], axis=0)
- cols_to_drop = [c for c in ind if c in df.columns]
- if cols_to_drop:
- df = df.drop(columns=cols_to_drop)
- return df
- @st.cache_data
- def get_col(deta) -> tuple:
- deta_site = deta.loc[:, grouper].unique()
- deta_cov_col = [q for q in deta.columns if q.startswith('cov_') or q.lower() == 'age']
- deta_contigous_col = deta.select_dtypes(include=[float, int]).columns.to_list()
- deta_vol_col = [
- q for q in deta_contigous_col
- if str(q)[-1].isnumeric() and q not in exotic and q not in deta_cov_col
- ]
- deta_categorical_col = [
- c for c in deta.columns
- if c not in deta_vol_col and c.lower() != 'age' and c.lower() != 'cov_age'
- ]
- if grouper not in deta_categorical_col:
- deta_categorical_col.append(grouper)
- return deta_site, deta_categorical_col, deta_contigous_col, deta_vol_col
- @st.cache_data
- def get_var(deta=None) -> tuple:
- if deta is None:
- deta = read()
- deta.index = range(deta.shape[0])
- site, cat, cont, vol = get_col(deta)
- return deta, site, cat, cont, vol
- @st.cache_data
- def safe_log1p(df: pd.DataFrame, cols, eps=1e-6, do_zscore=False):
- X = df.loc[:, cols].to_numpy(dtype=float)
- mins = X.min(axis=0)
- shift = np.where(mins <= 0, -mins + eps, 0.0)
- X_log = np.log1p(X + shift)
- if do_zscore:
- X_log = StandardScaler().fit_transform(X_log)
- return pd.DataFrame(X_log, columns=cols)
- @st.cache_data
- def transform(
- deta: pd.DataFrame,
- how: str,
- deta_contigous_col: list,
- deta_vol_col: list,
- covariates: list = None
- ) -> pd.DataFrame:
- final = deta.copy()
- if how == "Log Transform (log1p)":
- final[deta_vol_col] = np.log1p(deta[deta_vol_col])
- elif how == "Log Transform + Z-score":
- logged = np.log1p(deta[deta_vol_col])
- final[deta_vol_col] = pd.DataFrame(
- StandardScaler().fit_transform(logged),
- columns=deta_vol_col,
- index=deta.index
- )
- elif how == "Scale (Z-score)":
- final[deta_vol_col] = pd.DataFrame(
- StandardScaler().fit_transform(deta[deta_vol_col]),
- columns=deta_vol_col,
- index=deta.index
- )
- elif "Combat" in how:
- if not covariates:
- Xc = None
- else:
- cov_t_list = []
- for col in covariates:
- if deta[col].dtype in ['int64', 'int32'] or deta[col].nunique() < 10:
- coder = OneHotEncoder(sparse_output=False, drop='first')
- encoded = coder.fit_transform(deta[[col]])
- cov_t_list.append(encoded)
- else:
- pt = PowerTransformer()
- scaled = pt.fit_transform(deta[[col]].astype(float))
- cov_t_list.append(scaled)
- Xc = np.concatenate(cov_t_list, axis=1).astype("f4") if cov_t_list else None
- stabiliser = Combat()
- X = deta.loc[:, deta_vol_col].to_numpy(dtype=float)
- Xb = deta.loc[:, grouper].to_numpy(dtype="U16")
- Xt = PowerTransformer().fit_transform(X)
- Xts = stabiliser.fit_transform(Xt, Xb, None, Xc)
- final[deta_vol_col] = Xts
- elif how == "divided by intracranial volume":
- icv_cols = [c for c in deta.columns if "icv" in c.lower()]
- if not icv_cols:
- raise ValueError("ICV column not found")
- icv_col = icv_cols[0]
- vol_no_icv = [c for c in deta_vol_col if c != icv_col]
- final[vol_no_icv] = deta.loc[:, vol_no_icv].div(deta[icv_col], axis=0)
- final.index = deta.index
- return final
- @st.cache_data
- def get_noe_image(deta_path=path)->dict:
- return {q.name.replace('.png',''):open(q.path) for q in os.scandir(deta_path) if q.name.endswith('.png')}
- @st.cache_data
- def trim(deta, deta_vol_col, gizun=.001) -> pd.DataFrame:
- final = deta.copy()
- deta_vol_col = [q for q in final.columns if q in deta_vol_col]
- for col in deta_vol_col:
- lower = final[col].quantile(gizun)
- upper = final[col].quantile(1 - gizun)
- final.loc[(final[col] < lower) | (final[col] > upper), col] = np.nan
- return final.dropna(subset=deta_vol_col)
deta.py at commit 1874414, no license · at the source
Overview
- Division of Healthcare and Artificial Intelligence, Department of Precision Medicine, National Institute of Health, Korea Disease Control and Prevention Agency, Cheongju-si 28159, Republic of Korea
- Department of Precision Medicine, National Institute of Health, Korea Disease Control and Prevention Agency, Cheongju-si 28159, Republic of Korea
Abstract
Motivation: Large-scale neuroimaging studies increasingly integrate brain MRI data from multiple cohorts and acquisition sites. Exploratory visualization and harmonization are essential for identifying batch effects, assessing preprocessing strategies, and preserving biologically meaningful variation. However, existing tools are often cohort-specific, rely on static visualizations, or separate harmonization from data exploration.
Results: We present NeuroStream, an interactive application for real-time visualization and harmonization of multicohort brain MRI quantitative data. Built using the Streamlit framework, NeuroStream enables the exploration of quantitative imaging features derived from structural MRI along with demographic and clinical variables. The platform supports preprocessing and harmonization options, including log transformation, intracranial volume normalization, and ComBat-based batch correction, which can be compared interactively using dynamic visualizations. NeuroStream provides principal component analysis, distributional plots, and group comparison statistics. In addition, the platform supports covariate-adjusted regression-based evaluation of site effects and residual diagnostics, enabling quantitative and visual assessment of cohort-related variability across preprocessing settings. All visualizations presented in this manuscript were generated using transformed example datasets designed to illustrate the functionality of the platform, rather than to report original subject-level measurements, while NeuroStream itself supports direct analysis of user-provided tabular data. Using transformed example datasets derived from BICWALZS and KoGES multicohort MRI data, we demonstrate intuitive inspection of batch-related variance and harmonization outcomes without custom scripting.
Availability and implementation: NeuroStream is implemented in Python and freely available at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
Repository
Its files are read in the Code ↔ Paper reader above, with 4 matches between paragraphs and lines of code.
NIHxAI/NeuroStream
187441493b919f2f13243b250c08ca070d6d14f7, 16 March 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
4 files
Availability and implementation
NeuroStream is implemented in Python and freely available at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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;
- 3 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
The NeuroStream source code and documentation are publicly available at: https://
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 1, 30 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 1 funder, 6 references.
Cite
This paper
Cho, M., Park, B. S., Nam, H. R., Jeon, J. P., & Kim, S. C. (2026). NeuroStream: an interactive platform for exploratory visualization and harmonization of multicohort brain MRI data. Bioinformatics advances, 6(1), vbag117. https://
BibTeX
@article{cho2026neurostr
author = {Cho, Myeongji and Park, Byung Soo and Nam, Hye Ryeong and Jeon, Jae Pil and Kim, Sang Cheol},
title = {{NeuroStream: an interactive platform for exploratory visualization and harmonization of multicohort brain MRI data}},
journal = {Bioinformatics advances},
year = {2026},
month = apr,
volume = {6},
number = {1},
pages = {vbag117},
publisher = {Oxford University Press},
issn = {2635-0041},
doi = {10.1093/
url = {https://
pmid = {42109578},
pmcid = {PMC13152653}
}
RIS
TY - JOUR
AU - Cho, Myeongji
AU - Park, Byung Soo
AU - Nam, Hye Ryeong
AU - Jeon, Jae Pil
AU - Kim, Sang Cheol
TI - NeuroStream: an interactive platform for exploratory visualization and harmonization of multicohort brain MRI data
T2 - Bioinformatics advances
J2 - Bioinform Adv
PY - 2026
DA - 2026/
VL - 6
IS - 1
SP - vbag117
SN - 2635-0041
PB - Oxford University Press
DO - 10.1093/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1093/
"type": "article-journal",
"title": "NeuroStream: an interactive platform for exploratory visualization and harmonization of multicohort brain MRI data",
"container-title": "Bioinformatics advances",
"author": [
{
"family": "Cho",
"given": "Myeongji"
},
{
"family": "Park",
"given": "Byung Soo"
},
{
"family": "Nam",
"given": "Hye Ryeong"
},
{
"family": "Jeon",
"given": "Jae Pil"
},
{
"family": "Kim",
"given": "Sang Cheol"
}
],
"container-title-short":
"volume": "6",
"issue": "1",
"page": "vbag117",
"DOI": "10.1093/
"PMID": "42109578",
"PMCID": "PMC13152653",
"ISSN": "2635-0041",
"publisher": "Oxford University Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
26
]
]
}
}
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.1162/imag.a.1269 [code]
- From early to contemporary normative modeling: Mapping individual differences in neurophysiological signals.Journal: Imaging neuroscience (Cambridge, Mass.)In common: Pingouin, Plotly, statsmodels, 6 other tools, 2 references
- [2] doi:10.1002/alz.71649 [code]
- Postmortem brain MRI reveals differential associations of subcortical and limbic volumes with cortical thinning and neurodegenerative pathologies.Journal: Alzheimer's & dementia : the journal of the Alzheimer's AssociationIn common: Pingouin, Plotly, Pillow, 7 other tools, structural MRI / diffusion
- [3] doi:10.1016/j.isci.2026.116825 [code]
- Social hierarchy shapes behavioral and transcriptional responses to chronic stress and ketamine in male mice.Journal: iScienceIn common: Pingouin, Plotly, Pillow, 7 other tools
- [4] doi:10.1523/eneuro.0041-26.2026 [code]
- Ocular Speech Tracking Persists in Blindness, but Its Dynamics and Oculo-Cerebral Connectivity Depend on Visual Status.Journal: eNeuroIn common: Pingouin, Plotly, Pillow, 7 other tools
- [5] doi:10.7554/elife.103097 [code]
- Canonical neurodevelopmental trajectories of structural and functional manifolds.Journal: eLifeIn common: Pingouin, Plotly, statsmodels, 4 other tools, structural MRI / diffusion, 2 references
- [6] doi:10.1371/journal.pmed.1004809 [code]
- Brain morphology in Anorexia Nervosa and its subtypes: A multi-cohort study of individual participant data.Journal: PLoS medicineIn common: Plotly, Pillow, statsmodels, 6 other tools, structural MRI / diffusion, 1 reference
- [7] doi:10.1038/s41467-026-74462-6 [code]
- Neural similarity between choice options predicts group-level context effects.Journal: Nature communicationsIn common: Pingouin, Pillow, statsmodels, 6 other tools, 1 reference
- [8] doi:10.1038/s41598-026-48496-1 [code]
- A unified FLAIR hyperintensity segmentation model for various CNS tumor types and acquisition time points.Journal: Scientific reportsIn common: Plotly, Pillow, statsmodels, 6 other tools, methods / tools, structural MRI / diffusion
- [9] doi:10.1002/ana.78203 [code]
- AI-Driven Mapping of Seizure Spread Patterns.Journal: Annals of neurologyIn common: Pingouin, Pillow, statsmodels, 6 other tools, structural MRI / diffusion
- [10] doi:10.1186/s13059-026-04125-8 [code]
- MLMarker: a machine learning framework for tissue inference and biomarker discovery.Journal: Genome biologyIn common: Plotly, Pillow, statsmodels, 6 other tools, methods / 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.
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, 3 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:d01a8b851a310f02…
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.
