Narrative "twist" shifts within-individual neural representations of dissociable story features.
A correction to this paper has been published: the notice, 42150088, from Europe PMC.
The 2 matches
- [1] § Results › Representations of the Narrative Model. ↔ code/Fig2._narrativemodel/1.4._compute_samples_matched_length_set_up_df.ipynb, lines 30–88 · score 0.52 · intra SC, matched length, post twist, pretwist, timepoint, median
- [2] § Results › Representations of the Narrative Model. › Greater neural shifts in the pre-twist segment. ↔ code/Fig2._narrativemodel/1.1._prepost_lmer_set_up_LMER_pre_post_twist.ipynb, lines 10–47 · score 0.51 · intra SC, post twist, pre twist, timepoint, hippocampus, correlation
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
Jupyter notebook · 96 lines · 2.8 KB · no license · 1 match
- # %% [markdown]
- # ### The goal of this code is to generate the matched length iterations of the pre and post-twist segments
- # %%
- import pandas as pd
- import numpy as np
- import os
- # %%
- timepoints_cut_off = 20
- timepoints_cut_off_end = 10
- stim_end = 1107 #because it is 1105 seconds + 2 seconds!
- pre_twist = 552
- post_twist = 752
- node = 1
- sub = 0
- sub_corr_reint = np.load(f'../../../darkend/data/_multivariate_intraSC/intraSC_pattern_all_node{node}_pearsonr.npy',allow_pickle=True).item()
- pre_length = len(sub_corr_reint[sub][timepoints_cut_off:pre_twist])
- post_length = len(sub_corr_reint[sub][post_twist:])
- # %%
- nodes = list(range(1,101)) + ['hippocampus_L','hippocampus_R']
- node = nodes[0]
- # %%
- sub_list = []
- r_val = [] #actually adding in the Fisher z-transformed valued
- node_list = []
- iteration_list = []
- label = []
- node = nodes[0]
- sub_corr_reint = np.load(f'../../../darkend/data/_multivariate_intraSC/intraSC_pattern_all_node{node}_pearsonr.npy', allow_pickle=True).item()
- sample_pretwist = sub_corr_reint[0][timepoints_cut_off:pre_twist]
- sample_posttwist = sub_corr_reint[0][post_twist:stim_end]
- pre_length = len(sample_pretwist)
- post_length = len(sample_posttwist)
- # Calculate the number of possible iterations
- num_iterations = pre_length - post_length + 1
- print(f"Number of possible iterations: {num_iterations}")
- # Iterate through nodes
- for node in nodes:
- sub_corr_reint = np.load(f'../../../darkend/data/_multivariate_intraSC/intraSC_pattern_all_node{node}_pearsonr.npy', allow_pickle=True).item()
- for sub in range(len(sub_corr_reint.keys())):
- pretwist_this_sub = sub_corr_reint[sub][timepoints_cut_off:pre_twist]
- posttwist_this_sub = sub_corr_reint[sub][post_twist:stim_end]
- for i in range(num_iterations):
- pre_segment = pretwist_this_sub[i:i + post_length]
- post_segment = posttwist_this_sub
- pre_segment = [np.arctanh(r) for r in pre_segment]
- post_segment = [np.arctanh(r) for r in post_segment]
- # Append results for pre-twist
- sub_list.append(sub)
- r_val.append(np.median(pre_segment))
- node_list.append(node)
- iteration_list.append(i + 1) # Iteration number
- label.append('pre')
- # Append results for post-twist (same iteration)
- sub_list.append(sub)
- r_val.append(np.median(post_segment))
- node_list.append(node)
- iteration_list.append(i + 1) # Iteration number
- label.append('post')
- # Create DataFrame
- results_df = pd.DataFrame({
- 'Node': node_list,
- 'Subject': sub_list,
- 'Iteration': iteration_list,
- 'Median_R_Value': r_val,
- 'Label': label
- })
- results_df
- # %%
- results_df.to_csv('1.6._pretwist_posttwist_matched_length_median_segments_subcortical_new.csv', index=False)
- # %%
1.4._compute_samples_matched_length_set_up_df.ipynb at commit 7c37a04, no license · at the source
Overview
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 2 matches between paragraphs and lines of code.
thefinnlab/darkend_narrative_rep
7c37a048bc3e80abdca0a85ae1e26db31b2ed45e, 16 May 2026Availability: 1 check, the latest on 30 September 2026: the link answers
- 30 September 2026: the link answers
25 files
- code/
Fig2._narrativemodel/ , Jupyter, 73 lines.ipynb_checkpoints/ 1.1._prepost_lmer_set_up _LMER_pre_post_twist-che ckpoint.ipynb - code/
Fig2._narrativemodel/ , Jupyter, 96 lines.ipynb_checkpoints/ 1.4._compute_samples_mat ched_length_set_up_df-ch eckpoint.ipynb - code/
Fig2._narrativemodel/ , Jupyter, 93 lines.ipynb_checkpoints/ 1.5._compute_samples_mat ched_length_set_up_df-nu isance_regressors_subcor tical-checkpoint.ipynb - code/
Fig2._narrativemodel/ , Jupyter, 258 lines.ipynb_checkpoints/ 1.7._plotting_pre-post_t wist-checkpoint.ipynb - code/
Fig2._narrativemodel/ , Jupyter, 220 lines.ipynb_checkpoints/ 1.8._plotting_pre-post_t wist-checkpoint.ipynb - code/
Fig2._narrativemodel/ , Python, 113 lines1.0._prepost_pattern_int raSC_full_pearsonr_subco rtical.py - code/
Fig2._narrativemodel/ , Jupyter, 75 lines, 1 match1.1._prepost_lmer_set_up _LMER_pre_post_twist.ipy nb - code/
Fig2._narrativemodel/ , R, 105 lines1.3._prepost_lmer_run_mo del.Rmd - code/
Fig2._narrativemodel/ , Jupyter, 96 lines, 1 match1.4._compute_samples_mat ched_length_set_up_df.ip ynb - code/
Fig2._narrativemodel/ , R, 85 lines1.6._lmer_run_model_matc hed_length.Rmd - code/
Fig2._narrativemodel/ , Jupyter, 246 lines1.7._plotting_pre-post_t wist.ipynb - code/
Fig3._episodes/ , Jupyter, 312 lines.ipynb_checkpoints/ 2.1._reappraisal_computi ng_r_from_betas-checkpoi nt.ipynb - code/
Fig3._episodes/ , Jupyter, 124 lines.ipynb_checkpoints/ 2.2._reappraisal_computi ng_r_from_betas-checkpoi nt.ipynb - code/
Fig3._episodes/ , Jupyter, 213 lines.ipynb_checkpoints/ 2.4._plotting_reappraisa l_versus_null-checkpoint .ipynb - code/
Fig3._episodes/ , Jupyter, 180 lines.ipynb_checkpoints/ 2.4._plotting_reevaluate d_versus_null-checkpoint .ipynb - code/
Fig3._episodes/ , Jupyter, 312 lines2.1._reappraisal_computi ng_r_from_betas.ipynb - code/
Fig3._episodes/ , R, 103 lines2.3._reevaluated_episode _lmer.Rmd - code/
Fig3._episodes/ , Jupyter, 170 lines2.4._plotting_reevaluate d_versus_null.ipynb - code/
Fig4._characters/ , Jupyter, 442 lines.ipynb_checkpoints/ 01._plotting_character_t emplate_analysis_FINALIZ ED-checkpoint.ipynb - code/
Fig4._characters/ , Jupyter, 471 lines.ipynb_checkpoints/ 03._plotting_Lucy_templa te_FINALIZED-checkpoint. ipynb - code/
Fig4._characters/ , Jupyter, 470 lines.ipynb_checkpoints/ 03._plotting_Steve_templ ate_FINALIZED-checkpoint .ipynb - code/
Fig4._characters/ , Jupyter, 425 lines.ipynb_checkpoints/ 102._plotting_lucy_versu s_steve_byListen-checkpo int.ipynb - code/
Fig4._characters/ , Jupyter, 442 lines01._plotting_character_t emplate_analysis_FINALIZ ED.ipynb - code/
general_functions/ , Python, 593 linesplotting_brains_surfplot .py - README.md, Text, 24 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;
- 24 scripts, each with its path and the digest of its content;
- 2 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
- openneuro:ds007407, at OpenNeuro; found in “Data, Materials, and Software 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: OpenNeuro ds007407
- it points to the authors' code: thefinnlab/
darkend_narrative_rep
Read it in the paper: doi.org/10.1073/pnas.2512071123.
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, 3 authors, 4 keywords, 12 MeSH terms, 2 funders, 59 references, 1 integrity notice.
Cite
This paper
Sava-Segal, C., Grall, C., & Finn, E. S. (2026). Narrative "twist" shifts within-individual neural representations of dissociable story features. Proceedings of the National Academy of Sciences of the United States of America, 123(11), e2512071123. https://
BibTeX
@article{savasegal2026na
author = {Sava-Segal, Clara and Grall, Clare and Finn, Emily S.},
title = {{Narrative "twist" shifts within-individual neural representations of dissociable story features}},
journal = {Proceedings of the National Academy of Sciences of the United States of America},
year = {2026},
month = mar,
volume = {123},
number = {11},
pages = {e2512071123},
publisher = {National Academy of Sciences},
issn = {0027-8424},
doi = {10.1073/
url = {https://
pmid = {41824498},
pmcid = {PMC12994196}
}
RIS
TY - JOUR
AU - Sava-Segal, Clara
AU - Grall, Clare
AU - Finn, Emily S.
TI - Narrative "twist" shifts within-individual neural representations of dissociable story features
T2 - Proceedings of the National Academy of Sciences of the United States of America
J2 - Proc Natl Acad Sci U S A
PY - 2026
DA - 2026/
VL - 123
IS - 11
SP - e2512071123
SN - 0027-8424
PB - National Academy of Sciences
DO - 10.1073/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1073/
"type": "article-journal",
"title": "Narrative \"twist\" shifts within-individual neural representations of dissociable story features",
"container-title": "Proceedings of the National Academy of Sciences of the United States of America",
"author": [
{
"family": "Sava-Segal",
"given": "Clara"
},
{
"family": "Grall",
"given": "Clare"
},
{
"family": "Finn",
"given": "Emily S."
}
],
"container-title-short":
"volume": "123",
"issue": "11",
"page": "e2512071123",
"DOI": "10.1073/
"PMID": "41824498",
"PMCID": "PMC12994196",
"ISSN": "0027-8424",
"publisher": "National Academy of Sciences",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
3,
13
]
]
}
}
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-71428-6 [code]
- Binding items to contexts through conjunctive neural representations with the method of loci.Journal: Nature communicationsIn common: lmerTest, Nilearn, lme4, 8 other tools, 7 references
- [2] doi:10.1038/s41467-026-73914-3 [code]
- Cortical reinstatement of causally related events sparks narrative insights by updating neural representation patterns.Journal: Nature communicationsIn common: lmerTest, Nilearn, lme4, 6 other tools, cognitive, 7 references
- [3] doi:10.1038/s44271-026-00481-0 [code]
- Natural language processing captures memory content associated with shared neural patterns at encoding and retrieval.Journal: Communications psychologyIn common: lmerTest, lme4, tidyverse, cognitive, 9 references
- [4] doi:10.1038/s41467-026-73895-3 [code]
- Sign language narrative reveals universal and modality-specific features of cortical timescale hierarchy.Journal: Nature communicationsIn common: Nilearn, NiBabel, statsmodels, 5 other tools, fMRI, cognitive, 7 references
- [5] 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: Nilearn, NiBabel, statsmodels, 5 other tools, cognitive, 5 references
- [6] doi:10.1371/journal.pbio.3003684 [code]
- The retrieval of previously learned motor memories is facilitated by the reinstatement of default mode network manifold structures.Journal: PLoS biologyIn common: neuromaps, BrainSpace, Nilearn, 6 other tools, fMRI, cognitive, 3 references
- [7] doi:10.1038/s41467-026-76452-0 [code]
- Music evokes shared neural representations of imagined narratives across sensory modalities.Journal: Nature communicationsIn common: Nilearn, NiBabel, statsmodels, 5 other tools, cognitive, 5 references
- [8] doi:10.1038/s42003-026-09794-6 [code]
- The role of dorsal anterior cingulate cortex in dynamic attitude changes in naturalistic settings.Journal: Communications biologyIn common: Nilearn, NiBabel, statsmodels, 5 other tools, 5 references
- [9] doi:10.1162/imag.a.1278 [code]
- Young and old adult brains experience opposite effects of acute sleep restriction on the functional connectivity network.Journal: Imaging neuroscience (Cambridge, Mass.)In common: neuromaps, Nilearn, lme4, 8 other tools, fMRI, 1 reference
- [10] doi:10.1002/agm2.70073 [code]
- Foreign Language Learning in Older Adults Modifies Resting-State Functional Connectivity Between the Subcortical Structures and the Cortex.Journal: Aging medicine (Milton (N.S.W))In common: neuromaps, BrainSpace, Nilearn, 7 other tools, fMRI, 1 reference
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, 24 scripts, and 2 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:6ec4972c915600b7…
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.
