A week in the life of the human brain reveals stable states punctuated by chaotic-like transitions.
The 8 matches
- [1] § Methods › Seizure network removal ↔ PCA_SeizureNetwork_Removal.m, lines 1–122 · score 0.81 · seizure network, seizure related areas, electrodes part, principal component, PCA, removal
- [2] § Methods › Robust principal components analysis ↔ RandomConsensus_PCA.m, lines 1–34 · score 0.59 · consensus PCA, RANSAC PCA, covary, bands, network
- [3] § Methods › Robust principal components analysis ↔ PCA_SeizureNetwork_Removal.m, lines 1–122 · score 0.59 · seizure network, RANSAC PCA, components, bands
- [4] § Methods › Intracranial EEG data collection ↔ FilterElectrodes.py, lines 18–116 · score 0.58 · bandpass filter, 115 Hz, EEG, 0.2 Hz, Electrodes
- [5] § Results › Functional parcels showed consistent fluctuations over days that could be linked to behavior and physiology with consistent anatomic trends governing their dynamics ↔ PCA_SeizureNetwork_Removal.m, lines 145–201 · score 0.52 · seizure onset zones, gamma, theta, beta, alpha, 30 Hz
- [6] § Results › Sleep deprivation affects both the stable and chaotic components of neural kinematics ↔ Fig6_Generation.m, lines 436–489 · score 0.51 · outwardly oriented, wakeful rest, Center manifold, baseline, Figure 6, sleep
- [7] § Methods › Neurocognitive states form an hourglass-like shape with a center manifold that separates stages of consciousness (Fig. 5) ↔ Fig5_Generation.m, lines 356–386 · score 0.51 · center manifold, N1, N2, N3, REM, sleep
- [8] § Results › Brain network transitions were circuitous, unpredictable, and chaotic ↔ Fig3_Generation.m, lines 469–499 · score 0.51 · error bounds, late behavioral, ratio, 0–1, displacement, chaos
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
MATLAB · 201 lines · 6 KB · no license · 3 matches
- % Compare principal components to seizure networks
- % Created on 20210811 by Max B Wang
- % LIST OF SUBJECT IDs TO PROCESS
- subjList={'EP1155','EP1156'};
- snetSimilarity=cell(length(subjList),1);
- simCutoff=zeros(length(subjList),1);
- for sInd=1:length(subjList)
- disp(sInd)
- subjID=subjList{sInd};
- featClass=2;
- bandSelector=1;
- useFixed=1;
- aCorr=3;
- if aCorr==1
- append='';
- elseif aCorr==2
- append='_ECorr';
- elseif aCorr==3
- append='_Fixed_SACorr_Mean';
- end
- ECOG_Dir='/media/mwang/easystore/Processed_Data/';
- bandNames={'Theta','Alpha','Beta_l','Beta_u','Gamma'};
- figurePath=[ECOG_Dir subjID '/'];
- % Load in a variable universalElectrodes which has a list of all electrodes part of the patient's seizure related areas that you want to remove
- electrodeName_Data=load([figurePath 'electrodeIndexing.mat']);
- universalElectrodes=cellstr(electrodeName_Data.universalElectrodes);
- PCA_Data=load([figurePath 'RANSAC_PCA' append '.mat'],'useScores','useCoefs','feature_coefs','mu');
- useCoefs=PCA_Data.useCoefs;
- %
- % FOR EACH SUBJECT, LABEL ALL ELECTRODES BELONGING TO THE SEIZURE NETWORK
- if strcmp(subjID,'EP1155')
- snet={'LAMY4','LAMY5','LAMY6','LAMY7','LHH1','LHH2','RHH1','RHH2','RAMY1','RAMY2'};
- elseif strcmp(subjID,'EP1156')
- snet={'LHH1','LHH2','LHH3','LHT1','LHT2','LBT1'};
- end
- [~,ia,~] = intersect(universalElectrodes,snet);
- snetVec=zeros(length(universalElectrodes),1);
- snetVec(ia)=1;
- snetVec=snetVec/sqrt(snetVec.'*snetVec);
- % Store diagonals of feature coefs
- numBands=5;
- numElectrodes=size(VAR_Data.feature_coefs,3);
- numFeats=size(VAR_Data.feature_coefs,1);
- diag_coefs=zeros(numBands,numFeats,numElectrodes);
- for bInd=1:5
- for fInd=1:numFeats
- diag_coefs(bInd,fInd,:)=diag(squeeze(VAR_Data.feature_coefs(fInd,bInd,:,:)));
- end
- end
- numPCs=size(useCoefs,2);
- snetSims=zeros(numPCs,1);
- for plotInd=1:numPCs
- plot_Feat_Coefs=useCoefs(:,plotInd);
- if sum(plot_Feat_Coefs)<0
- plot_Feat_Coefs=-1*plot_Feat_Coefs;
- end
- bandMat=zeros(numElectrodes,5);
- for bInd=1:5
- bandMat(:,bInd)=(plot_Feat_Coefs.'*squeeze(diag_coefs(bInd,:,:))).';
- end
- pcaVec=mean(abs(bandMat),2);
- pcaVec=pcaVec./sqrt(pcaVec.'*pcaVec);
- snetSims(plotInd,1)=abs(snetVec.'*pcaVec);
- end
- % Permutation testing to assess significance
- numTrials=1000;
- maxSims=zeros(numTrials,1);
- for tInd=1:numTrials
- randBandSims=zeros(numPCs,1);
- for plotInd=1:numPCs
- coefsVec=rand(numFeats,1);
- randMat=zeros(numElectrodes,5);
- for bInd=1:5
- randMat(:,bInd)=(coefsVec.'*squeeze(diag_coefs(bInd,:,:))).';
- end
- randVec=mean(abs(randMat),2);
- randVec=randVec./sqrt(randVec.'*randVec);
- randBandSims(plotInd)=abs(snetVec.'*randVec);
- end
- maxSims(tInd)=max(randBandSims);
- end
- subplot(5,4,sInd)
- plot(snetSims,'-o','LineWidth',2); hold on
- plot([1 numPCs],[quantile(maxSims,0.95) quantile(maxSims,0.95)],'r','LineWidth',2)
- xlabel('Component')
- ylabel('Similarity')
- set(gca,'FontSize',15)
- title(subjID,'FontSize',20)
- snetSimilarity{sInd}=snetSims;
- simCutoff(sInd)=quantile(maxSims,0.95);
- end
- set(gcf,'color','w');
- % save('Data/20220421_SozSimilarity.mat','subjList','snetSimilarity','simCutoff')
- %%
- load('Data/20220421_SozSimilarity.mat','subjList','snetSimilarity','simCutoff')
- % figure('units','normalized','outerposition',[0 0 1 1])
- for sInd=1:length(subjList)
- snetSims=snetSimilarity{sInd};
- plotCutoff=simCutoff(sInd);
- numPCs=length(snetSims);
- subplot(5,4,sInd)
- plot(snetSims,'-o','LineWidth',2); hold on
- plot([1 numPCs],[plotCutoff plotCutoff],'r','LineWidth',2)
- xlabel('Subnetwork')
- ylabel('Similarity')
- set(gca,'FontSize',11)
- title(subjList{sInd},'FontSize',13)
- end
- set(gcf,'color','w');
- % orient(gcf,'landscape')
- % print('/home/mwang/SevenDayFigures/SOZ_Similarity','-dpdf','-fillpage')
- %%
- load('Data/20220421_SozSimilarity.mat','subjList','snetSimilarity','simCutoff')
- for sInd=1:length(subjList)
- disp(sInd)
- % subplot(5,4,sInd)
- % plot(snetSimilarity{sInd},'-o','LineWidth',2); hold on
- % plot([1 length(snetSimilarity{sInd})],[simCutoff(sInd) simCutoff(sInd)],'r','LineWidth',2)
- % xlabel('Component')
- % ylabel('Similarity')
- % set(gca,'FontSize',15)
- % % title(['Eigenmode Similarity to Seizure Onset Zone: ' subjID],'FontSize',30)
- % title(subjList{sInd},'FontSize',20)
- subjID=subjList{sInd};
- featClass=2;
- bandSelector=1;
- useFixed=1;
- aCorr=3;
- if aCorr==1
- append='';
- elseif aCorr==2
- append='_ECorr';
- elseif aCorr==3
- append='_Fixed_SACorr_Mean';
- end
- ECOG_Dir='/media/mwang/easystore/Processed_Data/';
- bandNames={'Theta','Alpha','Beta_l','Beta_u','Gamma'};
- figurePath=[ECOG_Dir subjID '/'];
- PCA_Data=load([figurePath 'RANSAC_PCA' append '_Trimmed.mat'],'trimScores','useCoefs','mu','feature_coefs','allScores','allCoefs','allMu');
- OG_PC_Data=load([figurePath 'RANSAC_PCA' append '.mat'],'feature_coefs');
- % allScores=PCA_Data.trimScores;
- % allCoefs=PCA_Data.useCoefs;
- % allMu=PCA_Data.mu;
- allScores=PCA_Data.allScores;
- allCoefs=PCA_Data.allCoefs;
- allMu=PCA_Data.allMu;
- if ~isnan(simCutoff(sInd))
- passCoefs=snetSimilarity{sInd}<simCutoff(sInd);
- else
- passCoefs=true(size(allScores,2),1);
- end
- trimScores=allScores(:,passCoefs);
- useCoefs=allCoefs(:,passCoefs);
- mu=allMu(passCoefs);
- feature_coefs=OG_PC_Data.feature_coefs;
- save([figurePath 'RANSAC_PCA' append '_Trimmed.mat'],'trimScores',...
- 'useCoefs','feature_coefs','mu','allScores','allCoefs','allMu');
- end
- % set(gcf,'color','w');
PCA_SeizureNetwork_Removal.m at commit 8e95b3c, no license · at the source
Overview
- Neuroscience Institute, Carnegie Mellon University,Pittsburgh, PA USA
- Machine Learning Department, Carnegie Mellon University,Pittsburgh, PA USA
- Department of Neurological Surgery, University of Pittsburgh,Pittsburgh, PA USA
- Department of Neurological Surgery, University of California San Francisco,San Francisco, CA USA
- Center for the Neural Basis of Cognition, University of Pittsburgh and Carnegie Mellon University,Pittsburgh, PA USA
- Department of Statistics and Data Science, Carnegie Mellon University,Pittsburgh, PA USA
- Department of Neurology, University of Pittsburgh,Pittsburgh, PA USA
- Department of Neurosurgery, Massachusetts General Hospital,Boston, MA USA
- Harvard Medical School,Boston, MA USA
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.
Repositories
Its files are read in the Code ↔ Paper reader above, with 8 matches between paragraphs and lines of code.
MNobodyWang/WeekLongBrain
8e95b3c9d8628e036a150169d00b931aafcc8646, 3 March 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
35 files
- BinarySegmentationDriver
.py , Python, 49 lines - Coherence_Compressor.py, Python, 198 lines
- ElectrodeIndexer.py, Python, 71 lines
- ExtractElectrodes.py, Python, 69 lines
- Extract_Batch.sh, Shell, 14 lines
- Fig1_Generation.m, MATLAB, 194 lines
- Fig2_Generation.m, MATLAB, 191 lines
- Fig3_Generation.m, MATLAB, 907 lines, 1 match
- Fig4_Generation.m, MATLAB, 306 lines
- Fig5_Generation.m, MATLAB, 753 lines, 1 match
- Fig6_Generation.m, MATLAB, 581 lines, 1 match
- FilterElectrodes.py, Python, 116 lines, 1 match
- FilterElectrodes_Batch.s
h , Shell, 15 lines - GenCohMats.py, Python, 155 lines
- GenCohMats_Batch.sh, Shell, 14 lines
- GenSpatialCorrs.sh, Shell, 13 lines
- Gen_ICA_Comps.py, Python, 71 lines
- Gen_SpatialAutocorrelati
on.py , Python, 86 lines - ICA_Analyzer.py, Python, 221 lines
- ICA_Cleaner.py, Python, 97 lines
- Main_Driver.ipynb, Jupyter, 75 lines
- PCA_SeizureNetwork_Remov
al.m , MATLAB, 201 lines, 3 matches - PcaSeizureTrim_EP1109.m, MATLAB, 99 lines
- RandomConsensus_PCA.m, MATLAB, 98 lines, 1 match
- RawLASSO_Classifier.py, Python, 122 lines
- RecurrentKOP_SaveState.p
y , Python, 76 lines - Save_ICA_Mats.py, Python, 189 lines
- distinguishable_colors.m
, MATLAB, 147 lines - fdr_bh.m, MATLAB, 211 lines
- koopman_model.py, Python, 111 lines
- recurrent_kop_mdl.py, Python, 125 lines
- state_kop_mdl.py, Python, 132 lines
- test_model.py, Python, 83 lines
- universal_Leiden.py, Python, 134 lines
- Readme.md, Text, 101 lines
Zenodo 18718538
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
35 files
- BinarySegmentationDriver
.py , Python, 49 lines - Coherence_Compressor.py, Python, 198 lines
- ElectrodeIndexer.py, Python, 71 lines
- ExtractElectrodes.py, Python, 69 lines
- Extract_Batch.sh, Shell, 14 lines
- Fig1_Generation.m, MATLAB, 194 lines
- Fig2_Generation.m, MATLAB, 191 lines
- Fig3_Generation.m, MATLAB, 907 lines
- Fig4_Generation.m, MATLAB, 306 lines
- Fig5_Generation.m, MATLAB, 753 lines
- Fig6_Generation.m, MATLAB, 581 lines
- FilterElectrodes.py, Python, 116 lines
- FilterElectrodes_Batch.s
h , Shell, 15 lines - GenCohMats.py, Python, 155 lines
- GenCohMats_Batch.sh, Shell, 14 lines
- GenSpatialCorrs.sh, Shell, 13 lines
- Gen_ICA_Comps.py, Python, 71 lines
- Gen_SpatialAutocorrelati
on.py , Python, 86 lines - ICA_Analyzer.py, Python, 221 lines
- ICA_Cleaner.py, Python, 97 lines
- Main_Driver.ipynb, Jupyter, 75 lines
- PCA_SeizureNetwork_Remov
al.m , MATLAB, 201 lines - PcaSeizureTrim_EP1109.m, MATLAB, 99 lines
- RandomConsensus_PCA.m, MATLAB, 98 lines
- RawLASSO_Classifier.py, Python, 122 lines
- RecurrentKOP_SaveState.p
y , Python, 76 lines - Save_ICA_Mats.py, Python, 189 lines
- distinguishable_colors.m
, MATLAB, 147 lines - fdr_bh.m, MATLAB, 211 lines
- koopman_model.py, Python, 111 lines
- recurrent_kop_mdl.py, Python, 125 lines
- state_kop_mdl.py, Python, 132 lines
- test_model.py, Python, 83 lines
- universal_Leiden.py, Python, 134 lines
- Readme.md, Text, 101 lines
Code availability statement
The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: MNobodyWang/
WeekLongBrain , Zenodo 18718538
Read it in the paper: doi.org/10.1038/s41467-026-73347-y.
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;
- 68 scripts, each with its path and the digest of its content;
- 8 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
Datasets cited
- figshare:30716378, at figshare; found in “Data availability”
Code and data availability statement
The paper has a code and 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 points to a dataset: figshare 30716378
- it points to the authors' code: MNobodyWang/
WeekLongBrain , Zenodo 18718538
Read it in the paper: doi.org/10.1038/s41467-026-73347-y.
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, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 5 authors, 2 keywords, 12 MeSH terms, 2 funders, 69 references.
Cite
This paper
Wang, M. B., G’Sell, M., Castellano, J. F., Richardson, R. M., & Ghuman, A. S. (2026). A week in the life of the human brain reveals stable states punctuated by chaotic-like transitions. Nature communications, 17(1), 7215. https://
BibTeX
@article{wang2026week,
author = {Wang, Maxwell B. and G’Sell, Max and Castellano, James F. and Richardson, R. Mark and Ghuman, Avniel Singh},
title = {{A week in the life of the human brain reveals stable states punctuated by chaotic-like transitions}},
journal = {Nature communications},
year = {2026},
month = jun,
volume = {17},
number = {1},
pages = {7215},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42248858},
pmcid = {PMC13396633}
}
RIS
TY - JOUR
AU - Wang, Maxwell B.
AU - G’Sell, Max
AU - Castellano, James F.
AU - Richardson, R. Mark
AU - Ghuman, Avniel Singh
TI - A week in the life of the human brain reveals stable states punctuated by chaotic-like transitions
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 7215
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "A week in the life of the human brain reveals stable states punctuated by chaotic-like transitions",
"container-title": "Nature communications",
"author": [
{
"family": "Wang",
"given": "Maxwell B."
},
{
"family": "G’Sell",
"given": "Max"
},
{
"family": "Castellano",
"given": "James F."
},
{
"family": "Richardson",
"given": "R. Mark"
},
{
"family": "Ghuman",
"given": "Avniel Singh"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "7215",
"DOI": "10.1038/
"PMID": "42248858",
"PMCID": "PMC13396633",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
5
]
]
}
}
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-026-74466-2 [code]
- Neuromorphic hierarchical modular reservoirs.Journal: Nature communicationsIn common: statsmodels, scikit-learn, SciPy, 2 other tools, computational, 6 references
- [2] doi:10.1038/s41467-026-75959-w [code]
- Charting higher-order models of brain function beyond pairwise interactions.Journal: Nature communicationsIn common: fdr_bh (Benjamini-Hochberg FDR), h5py, statsmodels, 5 other tools, 2 references
- [3] doi:10.1038/s41467-026-75455-1 [code]
- Shared latent representations of speech production for cross-patient speech decoding.Journal: Nature communicationsIn common: Keras, TensorFlow, h5py, 6 other tools, 1 reference
- [4] doi:10.1038/s42003-026-10957-8 [code]
- Brain defence by the extracellular matrix protein Cochlin.Journal: Communications biologyIn common: Keras, igraph, TensorFlow, 6 other tools
- [5] doi:10.1002/advs.202523009 [code]
- Personalized Network-Guided Neuromodulation Enhances Human Working Memory.Journal: Advanced science (Weinheim, Baden-Wurttemberg, Germany)In common: TensorFlow, statsmodels, Statistics and Machine Learning Toolbox, 4 other tools, 3 references
- [6] doi:10.1038/s41467-026-71151-2 [code]
- Common and distinct neural correlates of social interaction processing and theory of mind in narratives.Journal: Nature communicationsIn common: fdr_bh (Benjamini-Hochberg FDR), statsmodels, Statistics and Machine Learning Toolbox, 4 other tools, 2 references
- [7] doi:10.1093/cercor/bhag077 [code]
- The longitudinal development of intrinsic timescales in infancy and their relation to alpha brain rhythm.Journal: Cerebral cortex (New York, N.Y. : 1991)In common: MNE-Python, statsmodels, scikit-learn, 3 other tools, 3 references
- [8] doi:10.7554/elife.106081 [code]
- Heritability of movie-evoked brain activity and connectivity.Journal: eLifeIn common: fdr_bh (Benjamini-Hochberg FDR), h5py, statsmodels, 3 other tools, 2 references
- [9] doi:10.1038/s41593-026-02376-z [code]
- A framework for comparative analysis of human and mouse cortical neuron dendrites in corresponding brain regions.Journal: Nature neuroscienceIn common: Keras, h5py, statsmodels, 5 other tools, 1 reference
- [10] doi:10.1016/j.xcrm.2026.102766 [code]
- A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.Journal: Cell reports. MedicineIn common: Keras, igraph, TensorFlow, 5 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.
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: 2 repositories of the authors' code, each at its verified commit and with its license, 68 scripts, and 8 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:9e600f3f40e7ae82…
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.
