OSCR

Tetrix: A novel Tetris-based paradigm for neuroimaging research and clinical applications.

Code ↔ Paper

5 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 5 matches · 2 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § A neuroimaging pilot study › Methods ↔ instructions.py, the whole file · a weak match · score 0.74 · fixation cross, motor control, game mechanics, watch tetris, button presses, tetris gameplay
  2. [2] § A neuroimaging pilot study › Methods ↔ instructions.py, the whole file · a weak match · score 0.65 · fixation cross, motor control, Button Presses, instructed, symbol, Tetris
  3. [3] § A neuroimaging pilot study › Methods ↔ main_trials.py, lines 5–61 · score 0.61 · fixation cross, motor control, watch tetris, crosshair, eye, button
  4. [4] § Tetrix: Implementation of a Tetris-based paradigm › Technical structure and file organization ↔ PyGame_Tetris_Code/game.py, lines 13–18 · score 0.56 · PyGame_Tetris_Code, config_tetris_game.txt
  5. [5] § Tetrix: Implementation of a Tetris-based paradigm › Technical structure and file organization ↔ Tetrix_PsychoPy.py, lines 242–313 · score 0.53 · Tetrix_Psychopy, psyexp, log, game

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 · 99 lines · 8.1 KB · Apache · 2 matches

  1. # This file contains the class for instructions based on the language defined in "config_paradigm_psychopy.txt"
  2. # Is executed as a python script, so it if necessary alter the instruction texts inside the '...' but not the structure of the code!
  3. class Instructions:
  4. ## Check what is given in the config files and set instuctions accordingly.
  5. ## naming is so that a "font" is used in a text stimulus in PsychoPy while stimuli that are used as images are "img" here
  6. def set_instructions(self,
  7. language,
  8. N_repeats,
  9. play_Tetris_Duration,
  10. motor_control_duration,
  11. watch_Tetris_duration,
  12. fixation_cross_duration):
  13. # since "font_explain_trials's" f-string uses interger calculation, if "main_trials" are disabled in the config N_repeats must be "0" instead of "None"...
  14. if N_repeats == None:
  15. N_repeats = 0
  16. # get amount of enabled conditions
  17. enabled_conditions = len([condition for condition in [play_Tetris_Duration, motor_control_duration, watch_Tetris_duration, fixation_cross_duration] if condition != 0 and condition is not None])
  18. # Language-specific instruction dictionaries
  19. instructions_dict = {
  20. 'German': {
  21. 'font_check_response': 'Bitte drücken Sie jede Taste der Responsebox zwei mal!',
  22. 'font_check_response_2': 'Responsebox erfolgreich gecheckt!',
  23. 'font_Intro_2': 'Willkommen zum Tetris-Experiment!',
  24. 'font_continue': 'Beliebige Taste drücken, um fortzufahren!',
  25. 'font_explanation_pretrial': 'Während diesem ersten Teil des Experiments werden Sie Tetris spielen und sich an das Setup gewöhnen! Die Level, die Sie in diesen ersten Runden erreichen, legen fest, welches Level Sie im Hauptteil spielen!',
  26. 'font_how_to_play': 'Wie man Tetris spielt:',
  27. 'img_explain_game_mechanics_1': 'Images/explain_game_mechanics_1_de.png',
  28. 'img_explain_game_mechanics_2': 'Images/explain_game_mechanics_2_de.png',
  29. 'img_explain_game_mechanics_3': 'Images/explain_game_mechanics_3_de.png',
  30. 'font_explain_staircase': 'Bitte beachten Sie, dass in diesen ersten Runden das LEVEL, auf das Sie nach GAME OVER zurückgesetzt werden VARIIERT!',
  31. 'img_explain_controls': 'Images/explain_controls_de.png',
  32. 'font_Controls': 'So bewegen Sie die Tetris-Blöcke:',
  33. 'font_start_pretrial': 'Beliebige Taste drücken, um das erste TETRIS-Spiel zu starten!',
  34. 'font_pause_n_sec': 'Pause!',
  35. 'font_intro_main': 'Jetzt beginnt der Hauptteil des Experiments!',
  36. 'font_intro_structure': 'So ist das Experiment aufgebaut:',
  37. 'font_Announcement': f'Während des Experiments werden Sie {enabled_conditions} verschiedene Symbole sehen:',
  38. 'font_play_Tetris': 'Controller: Spielen Sie Tetris! Versuchen Sie vor Ihrem INNEREN AUGE zu VISUALISISEREN, wo der DERZEITIGE Tetris-Block und die NEXT (nächsten) Blöcke am besten hinpassen! Zwischen zwei Tetris-Teilen wird das Spiel IM HINTERGRUND PAUSIERT!',
  39. 'font_explain_comp_load': 'Achtung! In jedem Tetris-Teil wird zufällig gewählt, ob es EIN oder DREI "Next-Blöcke" gibt.',
  40. 'font_explain_comp_speed': 'Achtung! In jedem Tetris-Teil wird zufällig gewählt, ob in einem HÖHEREN (schnelleren) oder TIEFEREN (langsameren) Level gespielt wird!',
  41. 'font_motor': 'Tastendruck: Drücken Sie die Tasten ABWECHSELND zum Rhythmus, der auf dem Bildschirm zu sehen ist!',
  42. 'font_watch': 'Auge: Schauen Sie Tetris zu! Schauen Sie einfach nur zu, während eine Spiel-Aufzeichnung für Sie gespielt wird. Bitte Drücken Sie KEINE Tasten!',
  43. 'font_cross': 'Fixationskreuz: Schauen Sie einfach das Kreuz in der Bildschirmmitte an und machen Sie nichts Anderes!',
  44. 'font_explain_trials_equal': f'Jede Wiederholung startet mit einem Teil TETRIS SPIELEN, gefolgt von einem zufällig gewählten Teil TETRIS ZUZUSCHAUEN, TASTENDRÜCKEN oder FIXATIONSKREUZ! Jeder Teil dauert {play_Tetris_Duration} Sekunden und es gibt {int(N_repeats) * 3} Wiederholungen!',
  45. 'font_explain_trials_unequal': f'Jede Wiederholung startet mit einem Teil TETRIS SPIELEN\n({play_Tetris_Duration} Sekunden), gefolgt von einem zufällig gewählten Teil TETRIS ZUZUSCHAUEN ({watch_Tetris_duration} Sekunden), TASTENDRÜCKEN\n({motor_control_duration} Sekunden) oder FIXATIONSKREUZ ({fixation_cross_duration} Sekunden)! Es gibt {int(N_repeats) * 3} Wiederholungen!',
  46. 'font_start': 'Jetzt beginnt das Experiment!',
  47. 'font_condition_ended': 'Teil beendet',
  48. 'font_end': 'Vielen Dank für Ihre Teilnahme!',
  49. },
  50. 'English': {
  51. 'font_check_response': 'Please press each button on the responsebox twice!',
  52. 'font_check_response_2': 'Responses checked successfully',
  53. 'font_Intro_2': 'Welcome to the Tetris experiment!',
  54. 'font_continue': 'Press any button to continue!',
  55. 'font_explanation_pretrial': 'During this first part of the experiment, you will play Tetris and get used to the setup! The levels you reach in these first rounds will determine the level you play in the main part of the experiment!',
  56. 'font_how_to_play': 'Here is how to play Tetris:',
  57. 'img_explain_game_mechanics_1': 'Images/explain_game_mechanics_1_en.png',
  58. 'img_explain_game_mechanics_2': 'Images/explain_game_mechanics_2_en.png',
  59. 'img_explain_game_mechanics_3': 'Images/explain_game_mechanics_3_en.png',
  60. 'font_explain_staircase': 'Please note that in these first rounds, the LEVEL that you will be put back to after GAME OVER VARIES!',
  61. 'img_explain_controls': 'Images/explain_controls_en.png',
  62. 'font_Controls': 'This is how you move the Tetris-Blocks:',
  63. 'font_start_pretrial': 'Press any button to start the first TETRIS-GAME!',
  64. 'font_pause_n_sec': 'Rest!',
  65. 'font_intro_main': 'Now the main part of the experiment begins!',
  66. 'font_intro_structure': 'This is how the experiment is structured:',
  67. 'font_Announcement': f'During the experiment you will encounter {enabled_conditions} different symbols:',
  68. 'font_play_Tetris': "Controller: Play Tetris! Try to VISUALIZE in your MIND'S EYE where the CURRENT Tetris block and the NEXTs blocks fit best! Between two Tetris parts the game is PAUSED in the BACKGROUND!",
  69. 'font_explain_comp_load': 'Note! In each Tetris part, it is randomly chosen, whether there will be ONE or THREE "Next" blocks.',
  70. 'font_explain_comp_speed': 'Note! In each Tetris part, it is randomly chosen, whether you will play in a HIGHER (faster) or LOWER (slower) level!',
  71. 'font_motor': 'Button press: Press the Buttons ALTERNATELY (one after another) to the rhythm displayed on the screen!',
  72. 'font_watch': 'Eye: Watch Tetris! Just watch while a game recording is played for you. Please DO NOT press any buttons!',
  73. 'font_cross': 'Fixation Cross: Just look at the cross in the middle of the screen and do nothing else!',
  74. 'font_explain_trials_equal': f'Each repetition starts with a round of PLAYING TETRIS followed by a randomly chosen part of WATCHING TETRIS GAMEPLAY, BUTTON PRESSES or FIXATION CROSS! Each part lasts {play_Tetris_Duration} seconds and there are {N_repeats * 3} repetitions!',
  75. 'font_explain_trials_unequal': f'Each repetition starts with a round of PLAYING TETRIS\n({play_Tetris_Duration} seconds) followed by a randomly chosen part of WATCHING TETRIS GAMEPLAY ({watch_Tetris_duration} seconds), BUTTON PRESSES\n({motor_control_duration} seconds) or FIXATION CROSS ({fixation_cross_duration} seconds)! There are {N_repeats * 3} repetitions!',
  76. 'font_start': 'Now, the experiment starts!',
  77. 'font_condition_ended': 'Part ended',
  78. 'font_end': 'Thank you for your Participation!',
  79. }
  80. }
  81. # Select appropriate language dictionary (default to English if not found)
  82. lang_dict = instructions_dict.get(language, instructions_dict['English'])
  83. # Set all attributes from the language dictionary
  84. for attr_name, attr_value in lang_dict.items():
  85. setattr(self, attr_name, attr_value)
  86. # Choose the correct explain_trials based on whether durations are equal
  87. if play_Tetris_Duration == watch_Tetris_duration == motor_control_duration == fixation_cross_duration:
  88. self.font_explain_trials = self.font_explain_trials_equal
  89. else:
  90. self.font_explain_trials = self.font_explain_trials_unequal
  91. # Clean up temporary attributes
  92. del self.font_explain_trials_equal, self.font_explain_trials_unequal

instructions.py at commit 0f14f79, under Apache · at the source

Overview

Authors: Julius Grote1,2, Julia Elina Stocker1,3, Jens Sommer4, Anna-Maria Hamm5, Henrik Kessler5, Andreas Jansen1,4,3
ORCID iDs: Julius Grote
  1. Laboratory for Multimodal Neuroimaging, Department of Psychiatry and Psychotherapy, University of Marburg,Marburg, Germany
  2. Graduate Training Center for Neuroscience (GTC), University of Tübingen,Tübingen, Germany
  3. Center for Mind, Brain and Behavior (CMBB), University of Marburg and Justus Liebig University Giessen,Marburg, Germany
  4. Core-Facility Brainimaging, Faculty of Medicine, University of Marburg,Marburg, Germany
  5. Department of Psychosomatic Medicine and Psychotherapy, University of Marburg,Campus Fulda, Fulda, Germany
Journal: Behavior research methods, volume 58, issue 10, article 279
Dates: received 15 September 2025; accepted 17 July 2026; published online 24 August 2026; in print 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.3758/s13428-026-03150-6 · PMID 42637970 · PMCID PMC13503407 · OpenAlex W7204075055
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: fMRI (modality), human (organism), cognitive (subfield)
Keywords: Tetris, fMRI, PsychoPy, Visuospatial working memory, Mental imagery, Cognitive paradigm
MeSH: Brain*, Magnetic Resonance Imaging*, Neuroimaging*, Video Games*, Adult, Attention, Brain Mapping, Female, Humans, Male, Memory, Short-Term, Young Adult (* major topic)
Journal subjects: Original Manuscript
Topic: Neural and Behavioral Psychology Studies (Cognitive Neuroscience, Neuroscience), according to OpenAlex
Funding: Philipps-Universität Marburg, Forschungsförderung Campus Fulda (15/2023); Deutsche Forschungsgemeinschaft (DFG) (EXC 3066/1 “The Adaptive Mind”, Project No. 53, SFB/TRR "Trajectories of Affective Disorders" (Pro); Philipps-Universität Marburg (1009)
Citations: not cited yet (Europe PMC); 54 references in the paper

Abstract

Tetris is a widely used computer game, not only for entertainment purposes but increasingly in cognitive and clinical neuroscience research. Despite its frequent application in experiments, the neural mechanisms underlying gameplay remain insufficiently understood. Prior work suggests that cognitive control during complex visuospatial tasks, like Tetris, engages the attention network as well as regions supporting visuospatial working memory, mental imagery, and motor planning. However, researchers currently lack a standardized paradigm to investigate these processes. To address this gap, we introduce Tetrix, a novel and flexible Tetris-based paradigm designed for use in behavioral and functional magnetic resonance imaging (fMRI) experiments. With a broad range of customizable features, Tetrix can be adapted to specific experimental requirements or used in its default configuration. To validate the paradigm’s feasibility for neuroimaging applications, we conducted a proof-of-concept fMRI study with six participants. Results revealed robust bilateral activity in the frontal eye fields and posterior parietal cortex – key nodes of the dorsal attention network. Additional activation was found in the cerebellum and occipital cortex. These regions are thought to support rapid spatial orienting, the encoding and maintenance of visuospatial working memory, and motor planning. The observed activation patterns therefore align with theoretical expectations and confirm Tetrix’s utility for probing relevant cognitive functions in fMRI. Moreover, the pilot dataset and corresponding effect size maps provide a valuable resource for estimating statistical power in future research. In summary, this article introduces Tetrix as a standardized and validated paradigm for functional neuroimaging and beyond. It is available at: https://github.com/JuliusGrote/Tetrix_Psychopy.

Supplementary Information: The online version contains supplementary material available at 10.3758/s13428-026-03150-6.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 5 matches between paragraphs and lines of code.

JuliusGrote/Tetrix_Psychopy

License: Apache
State: the link answers, verified on 27 September 2026
Evidence: files inventoried
Commit: 0f14f79b24e0c5ad9b5b98db73d9eff6517c8f87, 24 August 2026
Languages: Python (14)
Size: 33 files, 14 scripts
Software Heritage: not archived
Found in: the text, “Tetrix: Implementation of a Tetris-based paradig”
Holds: README
Not found: license file, CITATION.cff, environment file, tests, continuous integration, documentation
Tools: NumPy (4 files), PsychoPy (1 file), SciPy (1 file)
Availability: 1 check, the latest on 27 September 2026: the link answers
  • 27 September 2026: the link answers
15 files

Code availability

Code for data analysis and stimulus presentation can be found on the same OSF website.

Reproduced under the paper's license (CC BY), from the paper cited above.

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;
  • 14 scripts, each with its path and the digest of its content;
  • 5 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

Data availability

All data and other materials are available on the Open Science Framework (OSF) at https://osf.io/6hzbj/.

Reproduced under the paper's license (CC BY), from the paper cited above.

Open practices statement

All data, analysis procedures, and code are available on OSF at https://osf.io/6hzbj/. Our study was preregistered within this OSF project (https://osf.io/b8kr5). Data analysis matched the procedure we outlined in our preregistration. Due to the pilot nature of this study, no additional exploratory or follow-up analyses described in the preregistration were conducted.

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 2, 28 September 2026

  • Publisher: n/a → Springer Science+Business Media

Version 1, 27 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 6 keywords, 12 MeSH terms, 3 funders, 46 references.

Cite

This paper

Grote, J., Stocker, J. E., Sommer, J., Hamm, A.-M., Kessler, H., & Jansen, A. (2026). Tetrix: A novel Tetris-based paradigm for neuroimaging research and clinical applications. Behavior research methods, 58(10), 279. https://doi.org/10.3758/s13428-026-03150-6

BibTeX

@article{grote2026tetrix,
author = {Grote, Julius and Stocker, Julia Elina and Sommer, Jens and Hamm, Anna-Maria and Kessler, Henrik and Jansen, Andreas},
title = {{Tetrix: A novel Tetris-based paradigm for neuroimaging research and clinical applications}},
journal = {Behavior research methods},
year = {2026},
month = aug,
volume = {58},
number = {10},
pages = {279},
publisher = {Springer Science+Business Media},
issn = {1554-351X},
doi = {10.3758/s13428-026-03150-6},
url = {https://doi.org/10.3758/s13428-026-03150-6},
pmid = {42637970},
pmcid = {PMC13503407}
}

RIS

TY - JOUR
AU - Grote, Julius
AU - Stocker, Julia Elina
AU - Sommer, Jens
AU - Hamm, Anna-Maria
AU - Kessler, Henrik
AU - Jansen, Andreas
TI - Tetrix: A novel Tetris-based paradigm for neuroimaging research and clinical applications
T2 - Behavior research methods
J2 - Behav Res Methods
PY - 2026
DA - 2026/08/24
VL - 58
IS - 10
SP - 279
SN - 1554-351X
PB - Springer Science+Business Media
DO - 10.3758/s13428-026-03150-6
UR - https://doi.org/10.3758/s13428-026-03150-6
LA - en
ER -

CSL-JSON

{
"id": "10.3758/s13428-026-03150-6",
"type": "article-journal",
"title": "Tetrix: A novel Tetris-based paradigm for neuroimaging research and clinical applications",
"container-title": "Behavior research methods",
"author": [
{
"family": "Grote",
"given": "Julius"
},
{
"family": "Stocker",
"given": "Julia Elina"
},
{
"family": "Sommer",
"given": "Jens"
},
{
"family": "Hamm",
"given": "Anna-Maria"
},
{
"family": "Kessler",
"given": "Henrik"
},
{
"family": "Jansen",
"given": "Andreas"
}
],
"container-title-short": "Behav Res Methods",
"volume": "58",
"issue": "10",
"page": "279",
"DOI": "10.3758/s13428-026-03150-6",
"PMID": "42637970",
"PMCID": "PMC13503407",
"ISSN": "1554-351X",
"publisher": "Springer Science+Business Media",
"URL": "https://doi.org/10.3758/s13428-026-03150-6",
"language": "en",
"issued": {
"date-parts": [
[
2026,
8,
24
]
]
}
}

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.1093/cercor/bhag058 [code]
Visual field inhomogeneities and the architectonics of early visual cortex shape visual working memory.
Journal: Cerebral cortex (New York, N.Y. : 1991)
In common: PsychoPy, NumPy, cognitive, 3 references
[2] doi:10.1162/nol.a.271 [code]
Compositional Complexity in Text and Images.
Journal: Neurobiology of language (Cambridge, Mass.)
In common: PsychoPy, SciPy, NumPy, fMRI, 2 references
[3] doi:10.1017/s0033291726104309 [code]
A visual cortex origin of trauma memory intrusions: integrated evidence from TMS and fMRI.
Journal: Psychological medicine
In common: NumPy, fMRI, 3 references
[4] doi:10.1162/imag.a.1034 [code]
Top-down selection of visual working memory contents is supported by alpha-band phase-synchronized oscillatory networks
Journal: n/a
In common: SciPy, NumPy, cognitive, 3 references
[5] doi:10.1038/s41467-026-73865-9 [code]
Histamine shapes the neurocomputational dynamics of human learning.
Journal: Nature communications
In common: PsychoPy, SciPy, NumPy, cognitive, 1 reference
[6] doi:10.1167/jov.26.8.4 [code]
The neural processes of illusory occlusion in object recognition.
Journal: Journal of vision
In common: PsychoPy, SciPy, NumPy, cognitive, 1 reference
[7] doi:10.1038/s41598-026-53525-0 [code]
Timing-induced illusory percepts of pitch.
Journal: Scientific reports
In common: PsychoPy, SciPy, NumPy, cognitive, 1 reference
[8] doi:10.1038/s41467-026-75705-2 [code]
Redundant prefrontal hemispheres adapt storage strategy to working memory demands.
Journal: Nature communications
In common: SciPy, NumPy, cognitive, 2 references
[9] doi:10.1016/j.isci.2026.116287 [code]
Neural selectivity for social interactions in the infant brain.
Journal: iScience
In common: SciPy, NumPy, 3 references
[10] doi:10.1186/s40708-026-00300-6 [code]
Anatomical-connectivity-guided functional connectivity reveals task-relevant pathways during proactive task-switching via recurrent graph neural networks.
Journal: Brain informatics
In common: NumPy, cognitive, 3 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.