Dynamic fMRI networks of human emotion.
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
Python · 124 lines · 3.7 KB · MIT
- import tkinter as tk
- from PIL import Image, ImageTk
- import glob
- import subprocess
- import os
- import sys
- def saveICs (indices, path, f):
- outfile = path + f
- with open(outfile, 'w') as file:
- for item in indices:
- file.write("{},".format(item))
- def handler (event):
- if event.char=='r':
- removers[i]=1
- root.destroy()
- elif event.char=='k':
- keepers[i]=1
- root.destroy()
- def quit (event):
- sys.exit()
- def displayICs (path, root, removers, keepers, rem_indices, keep_indices):
- root.title("IC num" + str(i))
- # pick an image file you have .bmp .jpg .gif. .png
- # load the file and covert it to a Tkinter image object
- ICfile = path + "IC_" + str(i) + "_thresh.png"
- image1 = Image.open(ICfile)
- #image1 = image.resize((689, 557), Image.ANTIALIAS) #The (250, 250) is (height, width)
- image1 = ImageTk.PhotoImage(image1)
- ts = path + "t" + str(i) + ".png"
- timeseries = Image.open(ts)
- #timeseries1 = timeseries.resize((622,118), Image.ANTIALIAS)
- timeseries1 = ImageTk.PhotoImage(timeseries)
- fs = path + "f" + str(i) + ".png"
- power = Image.open(fs)
- power1 = ImageTk.PhotoImage(power)
- # get the image size
- wic = image1.width()
- hic = image1.height()
- wt = timeseries1.width()
- ht = timeseries1.height()
- # position coordinates of root 'upper left corner'
- x = 0
- y = 0
- # make the root window the size of the image
- root.geometry("%dx%d+%d+%d" % (wic+wt, hic, x, y))
- # root has no image argument, so use a label as a panel
- panel1 = tk.Label(root, image=image1)
- panel1.grid(row=0, column=0, rowspan=4)
- panel2 = tk.Label(root, image=timeseries1)
- panel2.grid(row=1, column=1, sticky="NW")
- panel3 = tk.Label(root, image=power1)
- panel3.grid(row=2, column=1, sticky="NW")
- # save the panel's image from 'garbage collection'
- panel1.image = image1
- panel2.image = timeseries1
- panel3.image = power1
- root.bind('<k>', handler)
- root.bind('<r>', handler)
- root.bind('<q>', quit)
- # start the event loop
- root.mainloop()
- rem_indices = [a for a, x in enumerate(removers) if x == 1]
- keep_indices = [a for a, x in enumerate(keepers) if x == 1]
- return rem_indices, keep_indices
- if __name__ == "__main__":
- print("Display Melodics v0.01 (09-2014)")
- print("(c) Niels Janssen, [email hidden]")
- print("")
- print("Usage:")
- print("Press 'r' to remove IC, press 'k' to keep IC, and 'q' to quit")
- print("Decisions are saved in files 'to_remove.txt' and 'to_keep.txt' for further use (e.g., fsl_regfilt)\n")
- path = os.getcwd() + "/"
- ICfiles = glob.glob(path + 'IC_*_thresh.png')
- num_ics = len(ICfiles)
- if num_ics==0:
- print("*** No ICs found!")
- print("*** Run program in 'report' folder of melodic output")
- print("*** e.g., '/subject01/out.ica/report/python /my_python_scripts/display_melodics.py'")
- sys.exit()
- removers = [0] * (num_ics+1)
- keepers = [0] * (num_ics+1)
- rem_indices = []
- keep_indices = []
- f_rem = "to_remove.txt"
- f_keep ="to_keep.txt"
- #num_ics=10
- print("*** Found %d ICs in folder %s\n" % (num_ics, path))
- nb = raw_input("*** Continue (y/n)?:")
- if nb=='y':
- for i in range(1,num_ics+1):
- root = tk.Tk()
- rem_indices, keep_indices = displayICs(path, root, removers, keepers, rem_indices, keep_indices)
- saveICs(rem_indices, path, f_rem)
- saveICs(keep_indices, path, f_keep)
- print("*** Written %s" % (path + f_rem))
- print("*** Written %s" % (path + f_keep))
display_melodics.py at commit a349c4a, under MIT · at the source
Overview
- Department of Psychology, Universidad de la Laguna, La Laguna, Spain
- Institute of Biomedical Technologies, Universidad de La Laguna, La Laguna, Spain
- Institute of Neurosciences, Universidad de la Laguna, La Laguna, Spain
- Department of Child and Adolescent Psychiatry, Institute of Psychiatry and Mental Health, Hospital General Universitario Gregorio Marañón, Madrid, Spain
- Ciber del Área de Salud Mental, Instituto de Investigación Sanitaria Gregorio Marañón, Madrid, Spain
- Department of Psychiatry, UMCU Brain Center, University Medical Center Utrecht, Utrecht, Netherlands
- Clinical Translational Neuroscience Laboratory, Department of Psychiatry and Human Behavior, University of California, Irvine, Irvine, United States
- Center for the Neurobiology of Learning and Memory, University of California, Irvine, Irvine, United States
Abstract
The experience of emotions is that of dynamic, time-changing processes. Yet, many functional MRI (fMRI) studies of emotion average across time to focus on maps of static activations, overlooking the temporal dimension of emotional responses. In this study, we used time-resolved fMRI, group spatial independent component analysis (ICA), dual regression, and Gaussian curve fitting to examine both the spatial and temporal properties of whole-brain networks during a behavioral task. This task included trials that spanned over 25 s of watching short, emotionally evocative movie clips, making emotion-related decisions, and an intertrial rest period. We identified four whole-brain networks with unique spatial and temporal features that mapped onto different stages of the task. A network activated early in the course of the task included perceptual and affective evaluation regions, while two later networks supported semantic interpretation and decision-making, and a final network aligned with default mode activity. Both spatial and temporal properties of all four networks were modulated by the emotional content of the movie clips. Our findings extend current models of emotion by integrating temporal dynamics with large-scale network activity, offering a richer framework for understanding how emotions unfold across distributed circuits. Such temporal-spatial markers of emotional processing may prove valuable for identifying and tracking alterations in clinical populations.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above.
iamnielsjanssen/display_melodics
a349c4a940c4757585d83d631a35199c902b0a9f, 23 August 2022Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
3 files
- display_melodics.py, Python, 124 lines
- LICENSE, License, 22 lines
- README, Text, 28 lines
OSF xy43a
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 1 script, each with its path and the digest of its content;
- no match between paragraphs and code yet;
- 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 data and analysis code supporting the findings of this study are publicly available on the Open Science Framework at https://
The following dataset was generated:
Janssen N. 2025. Dynamic fMRI networks of emotion. Open Science Framework.
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, 27 September 2026: the first record
Recorded: type, language, journal, volume, pages, dates, 4 authors, 1 keyword, 10 MeSH terms, 1 funder, 76 references.
Cite
This paper
Janssen, N., Elvira, U. K., Janssen, J., & van Erp, T. G. (2026). Dynamic fMRI networks of human emotion. eLife, 14, RP106070. https://
BibTeX
@article{janssen2026dyna
author = {Janssen, Niels and Elvira, Uriel KA and Janssen, Joost and van Erp, Theo GM},
title = {{Dynamic fMRI networks of human emotion}},
journal = {eLife},
year = {2026},
month = aug,
volume = {14},
pages = {RP106070},
publisher = {eLife Sciences Publications, Ltd},
issn = {2050-084X},
doi = {10.7554/
url = {https://
pmid = {42663321},
pmcid = {PMC13524378}
}
RIS
TY - JOUR
AU - Janssen, Niels
AU - Elvira, Uriel KA
AU - Janssen, Joost
AU - van Erp, Theo GM
TI - Dynamic fMRI networks of human emotion
T2 - eLife
J2 - Elife
PY - 2026
DA - 2026/
VL - 14
SP - RP106070
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.7554/
"type": "article-journal",
"title": "Dynamic fMRI networks of human emotion",
"container-title": "eLife",
"author": [
{
"family": "Janssen",
"given": "Niels"
},
{
"family": "Elvira",
"given": "Uriel KA"
},
{
"family": "Janssen",
"given": "Joost"
},
{
"family": "van Erp",
"given": "Theo GM"
}
],
"container-title-short":
"volume": "14",
"page": "RP106070",
"DOI": "10.7554/
"PMID": "42663321",
"PMCID": "PMC13524378",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
28
]
]
}
}
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.1007/s00429-021-02442-1 [code]
- Medial temporal lobe contributions to resting-state networks.Journal: Brain structure & functionIn common: fMRI, 8 references, author Niels Janssen
- [2] doi:10.3389/fnhum.2022.790359
- Daily-Life Physical Activity of Healthy Young Adults Associates With Function and Structure of the Hippocampus.Journal: Frontiers in human neuroscienceIn common: fMRI, 6 references, author Niels Janssen
- [3] doi:10.1371/journal.pone.0278962
- Contributions of human amygdala nuclei to resting-state networks.Journal: PloS oneIn common: fMRI, cognitive, 5 references, author Niels Janssen
- [4] doi:10.1016/j.neuroimage.2021.118800 [code]
- Classification of emotion categories based on functional connectivity patterns of the human brain.Journal: NeuroImageIn common: fMRI, cognitive, 7 references
- [5] doi:10.1038/s41597-026-07065-x [code]
- "Dense Amygdala": Extensive Complex-valued Functional MRI of the Ventral and Medial Temporal Lobe during Passive Movie Watching in Three Individuals.Journal: Scientific dataIn common: Pillow, fMRI, 7 references
- [6] doi:10.7554/elife.108109 [code]
- Multimodal MRI marker of cognition explains the association between cognition and mental health in the UK Biobank.Journal: eLifeIn common: cognitive, 9 references
- [7] doi:10.7554/elife.85487 [code]
- Large-scale neural dynamics in a shared low-dimensional state space reflect cognitive and attentional dynamics.Journal: eLifeIn common: cognitive, 8 references
- [8] doi:10.1186/s12938-026-01542-5 [code]
- A review of decomposition methods for brain states estimation.Journal: Biomedical engineering onlineIn common: fMRI, 6 references
- [9] doi:10.1038/s41467-026-70708-5 [code]
- Common and distinct neurofunctional signatures of dynamic naturalistic emotion regulation strategies.Journal: Nature communicationsIn common: cognitive, 6 references
- [10] doi:10.1038/s41467-023-39862-y [code]
- The default network dominates neural responses to evolving movie stories.Journal: Nature communicationsIn common: cognitive, 7 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: 2 repositories of the authors' code, each at its verified commit and with its license, 1 script, and 0 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:163d0cd9af99e3a3…
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.7554/elife.106070)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.7554/elife.106070.svg
:target: https://openscicode.org/badge/doi/10.7554/elife.106070
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.7554/elife.106070"><img src="https://openscicode.org/badge/doi/10.7554/elife.106070.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.
