OSCR

Dynamic fMRI networks of human emotion.

Code ↔ Paper

The paper beside its authors' code: matches between them have not been computed for this paper yet.

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

  1. import tkinter as tk
  2. from PIL import Image, ImageTk
  3. import glob
  4. import subprocess
  5. import os
  6. import sys
  7. def saveICs (indices, path, f):
  8. outfile = path + f
  9. with open(outfile, 'w') as file:
  10. for item in indices:
  11. file.write("{},".format(item))
  12. def handler (event):
  13. if event.char=='r':
  14. removers[i]=1
  15. root.destroy()
  16. elif event.char=='k':
  17. keepers[i]=1
  18. root.destroy()
  19. def quit (event):
  20. sys.exit()
  21. def displayICs (path, root, removers, keepers, rem_indices, keep_indices):
  22. root.title("IC num" + str(i))
  23. # pick an image file you have .bmp .jpg .gif. .png
  24. # load the file and covert it to a Tkinter image object
  25. ICfile = path + "IC_" + str(i) + "_thresh.png"
  26. image1 = Image.open(ICfile)
  27. #image1 = image.resize((689, 557), Image.ANTIALIAS) #The (250, 250) is (height, width)
  28. image1 = ImageTk.PhotoImage(image1)
  29. ts = path + "t" + str(i) + ".png"
  30. timeseries = Image.open(ts)
  31. #timeseries1 = timeseries.resize((622,118), Image.ANTIALIAS)
  32. timeseries1 = ImageTk.PhotoImage(timeseries)
  33. fs = path + "f" + str(i) + ".png"
  34. power = Image.open(fs)
  35. power1 = ImageTk.PhotoImage(power)
  36. # get the image size
  37. wic = image1.width()
  38. hic = image1.height()
  39. wt = timeseries1.width()
  40. ht = timeseries1.height()
  41. # position coordinates of root 'upper left corner'
  42. x = 0
  43. y = 0
  44. # make the root window the size of the image
  45. root.geometry("%dx%d+%d+%d" % (wic+wt, hic, x, y))
  46. # root has no image argument, so use a label as a panel
  47. panel1 = tk.Label(root, image=image1)
  48. panel1.grid(row=0, column=0, rowspan=4)
  49. panel2 = tk.Label(root, image=timeseries1)
  50. panel2.grid(row=1, column=1, sticky="NW")
  51. panel3 = tk.Label(root, image=power1)
  52. panel3.grid(row=2, column=1, sticky="NW")
  53. # save the panel's image from 'garbage collection'
  54. panel1.image = image1
  55. panel2.image = timeseries1
  56. panel3.image = power1
  57. root.bind('<k>', handler)
  58. root.bind('<r>', handler)
  59. root.bind('<q>', quit)
  60. # start the event loop
  61. root.mainloop()
  62. rem_indices = [a for a, x in enumerate(removers) if x == 1]
  63. keep_indices = [a for a, x in enumerate(keepers) if x == 1]
  64. return rem_indices, keep_indices
  65. if __name__ == "__main__":
  66. print("Display Melodics v0.01 (09-2014)")
  67. print("(c) Niels Janssen, [email hidden]")
  68. print("")
  69. print("Usage:")
  70. print("Press 'r' to remove IC, press 'k' to keep IC, and 'q' to quit")
  71. print("Decisions are saved in files 'to_remove.txt' and 'to_keep.txt' for further use (e.g., fsl_regfilt)\n")
  72. path = os.getcwd() + "/"
  73. ICfiles = glob.glob(path + 'IC_*_thresh.png')
  74. num_ics = len(ICfiles)
  75. if num_ics==0:
  76. print("*** No ICs found!")
  77. print("*** Run program in 'report' folder of melodic output")
  78. print("*** e.g., '/subject01/out.ica/report/python /my_python_scripts/display_melodics.py'")
  79. sys.exit()
  80. removers = [0] * (num_ics+1)
  81. keepers = [0] * (num_ics+1)
  82. rem_indices = []
  83. keep_indices = []
  84. f_rem = "to_remove.txt"
  85. f_keep ="to_keep.txt"
  86. #num_ics=10
  87. print("*** Found %d ICs in folder %s\n" % (num_ics, path))
  88. nb = raw_input("*** Continue (y/n)?:")
  89. if nb=='y':
  90. for i in range(1,num_ics+1):
  91. root = tk.Tk()
  92. rem_indices, keep_indices = displayICs(path, root, removers, keepers, rem_indices, keep_indices)
  93. saveICs(rem_indices, path, f_rem)
  94. saveICs(keep_indices, path, f_keep)
  95. print("*** Written %s" % (path + f_rem))
  96. print("*** Written %s" % (path + f_keep))

display_melodics.py at commit a349c4a, under MIT · at the source

Overview

Authors: Niels Janssen1,2,3, Uriel KA Elvira1, Joost Janssen4,5,6, Theo GM van Erp7,8
  1. Department of Psychology, Universidad de la Laguna, La Laguna, Spain
  2. Institute of Biomedical Technologies, Universidad de La Laguna, La Laguna, Spain
  3. Institute of Neurosciences, Universidad de la Laguna, La Laguna, Spain
  4. Department of Child and Adolescent Psychiatry, Institute of Psychiatry and Mental Health, Hospital General Universitario Gregorio Marañón, Madrid, Spain
  5. Ciber del Área de Salud Mental, Instituto de Investigación Sanitaria Gregorio Marañón, Madrid, Spain
  6. Department of Psychiatry, UMCU Brain Center, University Medical Center Utrecht, Utrecht, Netherlands
  7. Clinical Translational Neuroscience Laboratory, Department of Psychiatry and Human Behavior, University of California, Irvine, Irvine, United States
  8. Center for the Neurobiology of Learning and Memory, University of California, Irvine, Irvine, United States
Journal: eLife, volume 14, article RP106070
Dates: published online 28 August 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.7554/elife.106070 · PMID 42663321 · PMCID PMC13524378 · OpenAlex W4411540762
Open access: gold, a free copy (OpenAlex)
Status: code verified
Categories: fMRI (modality), human (organism), cognitive (subfield)
Methods: Statistics, Smoothing, state filtering, decompositions, Evoked potentials, fMRI & imaging, Preprocessing
Keywords: Human
MeSH: Brain*, Emotions*, Magnetic Resonance Imaging*, Nerve Net*, Adult, Brain Mapping, Female, Humans, Male, Young Adult (* major topic)
Topic: Functional Brain Connectivity Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Ministerio de Ciencia e Innovación (PID2021-127611NB-I00)
Citations: not cited yet (Europe PMC); 79 references in the paper

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

License: MIT
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: a349c4a940c4757585d83d631a35199c902b0a9f, 23 August 2022
Languages: Python (1)
Size: 4 files, 1 script
Software Heritage: archived
Found in: the references
Holds: README, license file
Not found: CITATION.cff, environment file, tests, continuous integration, documentation
Tools: Pillow (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
3 files

OSF xy43a

License: none: the authors keep all their rights
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Size: 0 files, 0 scripts
Software Heritage: not checked
Found in: “Data availability”
Not found: README, license file, CITATION.cff, environment file, tests, continuous integration, documentation
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://doi.org/10.17605/OSF.IO/XY43A.

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://doi.org/10.7554/elife.106070

BibTeX

@article{janssen2026dynamic,
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/elife.106070},
url = {https://doi.org/10.7554/elife.106070},
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/08/28
VL - 14
SP - RP106070
SN - 2050-084X
PB - eLife Sciences Publications, Ltd
DO - 10.7554/elife.106070
UR - https://doi.org/10.7554/elife.106070
LA - en
ER -

CSL-JSON

{
"id": "10.7554/elife.106070",
"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": "eLife",
"volume": "14",
"page": "RP106070",
"DOI": "10.7554/elife.106070",
"PMID": "42663321",
"PMCID": "PMC13524378",
"ISSN": "2050-084X",
"publisher": "eLife Sciences Publications, Ltd",
"URL": "https://doi.org/10.7554/elife.106070",
"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: eLife
In 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 brain
Journal: 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 communications
In 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 communications
In 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 neuroscience
In 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 communications
In 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 reports
In 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 communications
In 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.

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.