Constructing mesoscale functionomics by neural dynamics subspace clustering.
The 1 match · it ties a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
- [1] § RESULTS › Principle of FRID ↔ FRID/FRID.m, the whole file · a weak match · score 0.64 · spectral cluster, neural activities, affinity matrix, quadratic, anchors, algorithm · Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
MATLAB · 48 lines · 1.1 KB · Apache-2.0 · 1 match
- function [U,labels,Z] = FRID(X,k,alpha,numanchor,ifnorm,nrepanch)
- % Input:
- % X: The neural activity, size of neuron number x time steps
- % k: number of clustering
- % alpha: sparisity penalty parameter
- % numanchor: anchor number
- % ifnorm: bool, if perform normalization
- % nrepanch: number of repetitions on finding anchor
- % Output:
- % U: The embedding of the neurons
- % labels: The clustering result of each neuron
- % Z: The affinity matrix
- num=size(X,1);
- % Normalization
- if ifnorm
- for t = 1:size(X,1)
- X(t,:)=X(t,:)./norm(X(t,:),'fro');
- end
- end
- X = double(X);
- % Find anchor
- [~, H] = litekmeans(X,numanchor,'MaxIter', 100,'Replicates',nrepanch);
- [numanchor,~]=size(H);
- % Do quadratic optization
- options = optimset( 'Algorithm','interior-point-convex','Display','off');
- A=2*alpha*eye(numanchor)+2*H*H';
- A=(A+A')/2;
- B=X';
- parfor ji=1:num
- ff=-2*B(:,ji)'*H';
- Z(:,ji)=quadprog(A,ff',[],[],[],[],-ones(numanchor,1),ones(numanchor,1),[],options);
- end
- % Get the affinity matrix
- Sbar=abs(Z);
- % Do spectral clustering
- [U,Sig,V] = mySVD(Sbar',k);
- labels=litekmeans(U, k, 'MaxIter', 100,'Replicates',10);
FRID.m at commit fd924f8, under Apache-2.0 · at the source
Overview
- Department of Automation, Tsinghua University, Beijing 100084, China
- Institute for Brain and Cognitive Sciences, Tsinghua University, Beijing 100084, China
- Beijing National Research Center for Information Science and Technology, Tsinghua University, Beijing 100084, China
- Department of Mathematical Science, Tsinghua University, Beijing 100084, China
- Department of Neurology, Tongji Hospital, Tongji Medical College, Huazhong University of Science and Technology, Wuhan 430074, China
- Tsinghua Shenzhen International Graduate School, Tsinghua University, Shenzhen 518071, China
- IDG/McGovern Institute for Brain Research, Tsinghua University, Beijing 100084, China
Abstract
Building a fine-grained functional atlas of the brain is crucial for deciphering bio-intelligence. However, the intricate and non-linear interactions at single-neuron level lead to asynchronous and heterogeneous firing patterns among closely interacting neural populations, thereby challenging correlated-firing-based clustering methods. Here, we present Functional subspace clustering based on sparse Representation of Intrinsic Dynamics (FRID), an unsupervised approach for identifying neurons with shared microcircuit connectivity and information encoding properties (referred to as ‘Functionomics’) from mesoscale neural recordings. FRID significantly outperforms correlated-firing-based methods in both simulated complex networks and empirical calcium recordings. The accuracy and utility of FRID are validated across sensory integration and decision-making tasks to produce functionomic clusters with improved resolution and coding specificity than those defined by anatomical functional areas. As representative findings, we demonstrate single-cell level functional remapping during recovery from ischemic stroke and the learning-induced reorganization of functional modularization. Together with large-scale neural recordings, FRID could serve as a general data-driven paradigm to accelerate the understanding of mesoscale brain functions.
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 1 match between paragraphs and lines of code.
Cai-yy/FRID
fd924f8590d13a3832387f538c0741fd21b205b2, 18 January 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
21 files
- FRID/
FRID.m , MATLAB, 48 lines, 1 match - FRID/
litekmeans.m , MATLAB, 457 lines - FRID/
mySVD.m , MATLAB, 118 lines - GUI/
utils/ , MATLAB, 85 linesextractUniqueBases.m - GUI/
utils/ , MATLAB, 9 linesextract_unique_bases_mul tiple_k.m - GUI/
utils/ , MATLAB, 21 linesfrid_edit.m - GUI/
utils/ , MATLAB, 23 linesfrid_edit_multiple_k.m - GUI/
utils/ , MATLAB, 11 linesfrid_total.m - GUI/
utils/ , MATLAB, 457 lineslitekmeans.m - GUI/
utils/ , MATLAB, 118 linesmySVD.m - demo_FRID.m, MATLAB, 58 lines
- util/
Clustering8Measure.m , MATLAB, 607 lines - util/
Contingency.m , MATLAB, 12 lines - util/
MutualInfo.m , MATLAB, 52 lines - util/
RandIndex.m , MATLAB, 43 lines - util/
bestMap.m , MATLAB, 36 lines - util/
compute_f.m , MATLAB, 33 lines - util/
compute_nmi.m , MATLAB, 55 lines - util/
hungarian.m , MATLAB, 465 lines - LICENSE.txt, License, 13 lines
- README.txt, Text, 17 lines
The paper's code and data availability statement is in the Data section.
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;
- 19 scripts, each with its path and the digest of its content;
- 1 match 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
A demonstration of FRID framework could be found 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 2, 28 September 2026
- Funding: added National Natural Science Foundation of China: 32400938, 62222508, 62525506, 62088102; Natural Science Foundation of Beijing Municipality: JR25021, Z240011
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 10 authors, 3 keywords, 72 references.
Cite
This paper
Cai, Y., Xu, X., Xiao, G., Ling, H., Shi, Z., Wang, M., Wang, M., Chen, F., Wu, J., & Dai, Q. (2026). Constructing mesoscale functionomics by neural dynamics subspace clustering. National science review, 13(15), nwag420. https://
BibTeX
@article{cai2026construc
author = {Cai, Yeyi and Xu, Xinhong and Xiao, Guihua and Ling, Huaming and Shi, Zuoqiang and Wang, Minghuan and Wang, Mingrui and Chen, Fenghua and Wu, Jiamin and Dai, Qionghai},
title = {{Constructing mesoscale functionomics by neural dynamics subspace clustering}},
journal = {National science review},
year = {2026},
month = jul,
volume = {13},
number = {15},
pages = {nwag420},
publisher = {Oxford University Press},
issn = {2095-5138},
doi = {10.1093/
url = {https://
pmid = {42592399},
pmcid = {PMC13463643}
}
RIS
TY - JOUR
AU - Cai, Yeyi
AU - Xu, Xinhong
AU - Xiao, Guihua
AU - Ling, Huaming
AU - Shi, Zuoqiang
AU - Wang, Minghuan
AU - Wang, Mingrui
AU - Chen, Fenghua
AU - Wu, Jiamin
AU - Dai, Qionghai
TI - Constructing mesoscale functionomics by neural dynamics subspace clustering
T2 - National science review
J2 - Natl Sci Rev
PY - 2026
DA - 2026/
VL - 13
IS - 15
SP - nwag420
SN - 2095-5138
PB - Oxford University Press
DO - 10.1093/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1093/
"type": "article-journal",
"title": "Constructing mesoscale functionomics by neural dynamics subspace clustering",
"container-title": "National science review",
"author": [
{
"family": "Cai",
"given": "Yeyi"
},
{
"family": "Xu",
"given": "Xinhong"
},
{
"family": "Xiao",
"given": "Guihua"
},
{
"family": "Ling",
"given": "Huaming"
},
{
"family": "Shi",
"given": "Zuoqiang"
},
{
"family": "Wang",
"given": "Minghuan"
},
{
"family": "Wang",
"given": "Mingrui"
},
{
"family": "Chen",
"given": "Fenghua"
},
{
"family": "Wu",
"given": "Jiamin"
},
{
"family": "Dai",
"given": "Qionghai"
}
],
"container-title-short":
"volume": "13",
"issue": "15",
"page": "nwag420",
"DOI": "10.1093/
"PMID": "42592399",
"PMCID": "PMC13463643",
"ISSN": "2095-5138",
"publisher": "Oxford University Press",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
11
]
]
}
}
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.1038/s41467-024-54346-3 [code]
- Mesoscale neuronal granular trial variability in vivo illustrated by nonlinear recurrent network in silico.Journal: Nature communicationsIn common: Statistics and Machine Learning Toolbox, 16 references, author Qionghai Dai
- [2] doi:10.1117/1.nph.13.s2.s23202 [code]
- Voltage imaging as a window into neural computation.Journal: NeurophotonicsIn common: Statistics and Machine Learning Toolbox, 11 references
- [3] doi:10.1016/j.neuron.2025.08.030 [code]
- Ultra-high-density Neuropixels probes improve detection and identification in neuronal recordings.Journal: NeuronIn common: Optimization Toolbox, Statistics and Machine Learning Toolbox, systems, 8 references
- [4] doi:10.1038/s41467-026-71725-0 [code]
- Interactions across hemispheres in prefrontal cortex reflect global cognitive processing.Journal: Nature communicationsIn common: Optimization Toolbox, Statistics and Machine Learning Toolbox, 8 references
- [5] doi:10.1038/s41593-022-01245-9 [code]
- Pyramidal cell types drive functionally distinct cortical activity patterns during decision-making.Journal: Nature neuroscienceIn common: 10 references
- [6] doi:10.1038/s41593-024-01783-4 [code]
- Rastermap: a discovery method for neural population recordings.Journal: Nature neuroscienceIn common: 10 references
- [7] doi:10.1016/j.neuron.2026.07.016 [code]
- Inferring brain-wide interactions using data-constrained recurrent neural network models.Journal: NeuronIn common: Statistics and Machine Learning Toolbox, systems, 8 references
- [8] doi:10.1038/s41467-024-50563-y [code]
- Flexible neural population dynamics govern the speed and stability of sensory encoding in mouse visual cortex.Journal: Nature communicationsIn common: Optimization Toolbox, Statistics and Machine Learning Toolbox, systems, 7 references
- [9] doi:10.1038/s41592-023-01838-7 [code]
- Rapid detection of neurons in widefield calcium imaging datasets after training with synthetic data.Journal: Nature methodsIn common: Optimization Toolbox, Statistics and Machine Learning Toolbox, 3 references, author Qionghai Dai
- [10] doi:10.1371/journal.pcbi.1012000 [code]
- What does the mean mean? A simple test for neuroscience.Journal: PLoS computational biologyIn common: 8 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, 19 scripts, and 1 match 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:9368a1b54c1e0b3c…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1093/nsr/nwag420)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1093/nsr/nwag420.svg
:target: https://openscicode.org/badge/doi/10.1093/nsr/nwag420
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1093/nsr/nwag420"><img src="https://openscicode.org/badge/doi/10.1093/nsr/nwag420.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge 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: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
