OSCR

Constructing mesoscale functionomics by neural dynamics subspace clustering.

Code ↔ Paper

1 match 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 1 match · it ties a paragraph to a whole file without given lines: a weak match, whose lines are not tinted
  1. [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

  1. function [U,labels,Z] = FRID(X,k,alpha,numanchor,ifnorm,nrepanch)
  2. % Input:
  3. % X: The neural activity, size of neuron number x time steps
  4. % k: number of clustering
  5. % alpha: sparisity penalty parameter
  6. % numanchor: anchor number
  7. % ifnorm: bool, if perform normalization
  8. % nrepanch: number of repetitions on finding anchor
  9. % Output:
  10. % U: The embedding of the neurons
  11. % labels: The clustering result of each neuron
  12. % Z: The affinity matrix
  13. num=size(X,1);
  14. % Normalization
  15. if ifnorm
  16. for t = 1:size(X,1)
  17. X(t,:)=X(t,:)./norm(X(t,:),'fro');
  18. end
  19. end
  20. X = double(X);
  21. % Find anchor
  22. [~, H] = litekmeans(X,numanchor,'MaxIter', 100,'Replicates',nrepanch);
  23. [numanchor,~]=size(H);
  24. % Do quadratic optization
  25. options = optimset( 'Algorithm','interior-point-convex','Display','off');
  26. A=2*alpha*eye(numanchor)+2*H*H';
  27. A=(A+A')/2;
  28. B=X';
  29. parfor ji=1:num
  30. ff=-2*B(:,ji)'*H';
  31. Z(:,ji)=quadprog(A,ff',[],[],[],[],-ones(numanchor,1),ones(numanchor,1),[],options);
  32. end
  33. % Get the affinity matrix
  34. Sbar=abs(Z);
  35. % Do spectral clustering
  36. [U,Sig,V] = mySVD(Sbar',k);
  37. labels=litekmeans(U, k, 'MaxIter', 100,'Replicates',10);

FRID.m at commit fd924f8, under Apache-2.0 · at the source

Overview

Authors: Yeyi Cai1,2, Xinhong Xu1,2, Guihua Xiao1,2,3, Huaming Ling4, Zuoqiang Shi4, Minghuan Wang5, Mingrui Wang6, Fenghua Chen2, Jiamin Wu1,2,7, Qionghai Dai1,2,7
  1. Department of Automation, Tsinghua University, Beijing 100084, China
  2. Institute for Brain and Cognitive Sciences, Tsinghua University, Beijing 100084, China
  3. Beijing National Research Center for Information Science and Technology, Tsinghua University, Beijing 100084, China
  4. Department of Mathematical Science, Tsinghua University, Beijing 100084, China
  5. Department of Neurology, Tongji Hospital, Tongji Medical College, Huazhong University of Science and Technology, Wuhan 430074, China
  6. Tsinghua Shenzhen International Graduate School, Tsinghua University, Shenzhen 518071, China
  7. IDG/McGovern Institute for Brain Research, Tsinghua University, Beijing 100084, China
Journal: National science review, volume 13, issue 15, article nwag420
Dates: received 27 April 2026; accepted 2 July 2026; published online 11 July 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1093/nsr/nwag420 · PMID 42592399 · PMCID PMC13463643 · OpenAlex W7168051293
Open access: gold, a free copy (OpenAlex)
Status: code verified (how the code is found and verified)
Categories: systems (subfield)
Methods: Machine learning, Single-unit activity, calcium imaging
Keywords: functionomics, subspace clustering, cortical dynamics
Topic: Single-cell and spatial transcriptomics (Molecular Biology, Biochemistry, Genetics and Molecular Biology), according to OpenAlex
Funding: National Natural Science Foundation of China (32400938, 62222508, 62525506, 62088102); Natural Science Foundation of Beijing Municipality (JR25021, Z240011)
Citations: not cited yet (Europe PMC); 77 references in the paper

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

License: Apache-2.0
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: fd924f8590d13a3832387f538c0741fd21b205b2, 18 January 2026
Languages: MATLAB (19)
Size: 25 files, 19 scripts
Software Heritage: not archived
Found in: “DATA AVAILABILITY”
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
21 files
At the source: github.com/Cai-yy/FRID

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://github.com/Cai-yy/FRID. Simulation datasets and GUI codes are all available at GitHub. The calcium dataset is available from the corresponding authors.

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://doi.org/10.1093/nsr/nwag420

BibTeX

@article{cai2026constructing,
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/nsr/nwag420},
url = {https://doi.org/10.1093/nsr/nwag420},
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/07/11
VL - 13
IS - 15
SP - nwag420
SN - 2095-5138
PB - Oxford University Press
DO - 10.1093/nsr/nwag420
UR - https://doi.org/10.1093/nsr/nwag420
LA - en
ER -

CSL-JSON

{
"id": "10.1093/nsr/nwag420",
"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": "Natl Sci Rev",
"volume": "13",
"issue": "15",
"page": "nwag420",
"DOI": "10.1093/nsr/nwag420",
"PMID": "42592399",
"PMCID": "PMC13463643",
"ISSN": "2095-5138",
"publisher": "Oxford University Press",
"URL": "https://doi.org/10.1093/nsr/nwag420",
"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 communications
In 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: Neurophotonics
In 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: Neuron
In 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 communications
In 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 neuroscience
In common: 10 references
[6] doi:10.1038/s41593-024-01783-4 [code]
Rastermap: a discovery method for neural population recordings.
Journal: Nature neuroscience
In 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: Neuron
In 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 communications
In 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 methods
In 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 biology
In 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.

Add the badge to the code's README

OSCR: the badge of this paper

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 -->
[![OSCR](https://openscicode.org/badge/doi/10.1093/nsr/nwag420.svg)](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:end
HTML
<!-- 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.