Dynamic fMRI networks of human emotion.
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
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.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
- [2] doi:10.21203/rs.3.rs-9326213/v1 [code]
- Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brainJournal: Research Square (preprint)In common: Pillow, fMRI, cognitive, 6 references
- [3] doi:10.1038/s41467-026-71568-9 [code]
- Convergent and selective representations of pain, appetitive processes, aversive processes, and cognitive control in the insula.Journal: Nature communicationsIn common: Pillow, cognitive, 5 references
- [4] doi:10.1038/s41467-026-73153-6 [code]
- Latent neural architecture organising shared aesthetic evaluations of visual artworks.Journal: Nature communicationsIn common: Pillow, fMRI, cognitive, 5 references
- [5] doi:10.1111/ejn.70543 [code]
- Neural Oscillations Track Subjective and Pupillary Arousal During Naturalistic Movie Viewing.Journal: The European journal of neuroscienceIn common: cognitive, 5 references
- [6] doi:10.1162/netn.a.571 [code]
- Regional activity and interregional functional connectivity uniquely contribute to social cognitive judgments during movie-watching.Journal: Network neuroscience (Cambridge, Mass.)In common: fMRI, 5 references
- [7] doi:10.1162/netn.a.549 [code]
- Distributed cortical network dynamics of binocular convergent eye movements in humans.Journal: Network neuroscience (Cambridge, Mass.)In common: fMRI, 5 references
- [8] doi:10.1038/s41467-026-75841-9 [code]
- Model-based semantic distance reveals adaptive coordination of distinct cognitive systems in flexible knowledge retrieval.Journal: Nature communicationsIn common: Pillow, cognitive, 4 references
- [9] doi:10.1038/s41598-026-49157-z
- Supportive neural mechanisms underlying successful emotion regulation for reappraisal success.Journal: Scientific reportsIn common: 5 references
- [10] doi:10.1038/s41467-026-75745-8 [code]
- A language network in the individualized functional connectomes of 1199 human brains doing arbitrary tasks.Journal: Nature communicationsIn common: Pillow, cognitive, 4 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:a08e1a2aba929d04…
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.
