Giter Site home page Giter Site logo

nbackexpsampling's Introduction

Two Force Choice N-back Paradigm

Based on the task developed by Konish et al., I am working on a enhanced verison of the task. The task uses a n-back memory paradigm intending to induce mind-wandering.

Reference:

Konishi, M., McLaren, D. G., Engen, H., & Smallwood, J. (2015). Shaped by the past: the default mode network supports cognition that is independent of immediate perceptual input. PloS One, 10(6), e0132209. http://doi.org/10.1371/journal.pone.0132209

Please see the summary of the paradigmn here

Project Organization

├── LICENSE
├── README.md          <- The top-level README for developers using this project.
├── settings.py        <- Enviromnetal setting of the task.
├── run.py             <- The main experiment program.
├── example_trial_generator.py
|                      <- The example of the trial generator.
├── instructions       <- Instructions .txt files.
├── data               <- Data generated from the task. Read-only.
├── parameters         <- Trial generation specification files.
├── references         <- Supplemental details of the paradigmn.
├── src                <- Source code for use in this project.
└── stimuli            <- stimulus photos and experience sampling questions

Dependency

The current version was tested on: Python 3.7.5 Psychopy 2020.2.4post1

Running the task

Execute run.py through commend line: python run.py

Modifying the length of the experiment

Currently the experiment length, probe number, condition order are set through files in parameters and module datastructure. The content of parameters/ConditionsSpecifications_ES.csv determine the condition switching structure. The current file populate a design of two blocks, starting with a zero-back block, and two type of go trials. Please see example_trial_generator.py for details related to the module datastructure.

Modifying experience sampling questions

Change the questions/scales/lable in stimuli/ES_questions.csv. Please leave the headers untouch.

Modifying instructions

'#' is used as page breaker. The text in between curly breackates {} changes in the experiment. Please do not modify the text inside the breakets.

Modifying MRI related setting

This script supports the buttom boxes set-up in York Neuroimaging Centre. The two buttom boxes are mapped to number 1 to 4 and 6 to 9 on a regular keyboard. Number 5 is linked to MRI trigger setting.

If your neuroimaging centre uses the same set up, there's no need to modify the code. If you use parallel port, please contact your local support to find out the setting and modify the code yourself.

The dummy volumes are accounted for in the scanner used at York. If you require manual set up, please modify the variable in run.py accordingly. Or write a parallel port module fitting your own setup to map respond buttons to key 1 to 9. (Highly recommended.)

nbackexpsampling's People

Contributors

htwangtw avatar

Stargazers

 avatar Jingqing Nian avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

nian-jingqing

nbackexpsampling's Issues

Code Crashes

Hello, I have a problem of running the code. It crashed after a couple of non-target trials presented, besides I couldn't use the keyboard to skip the instruction but the key "Enter" worked. The output showed "Experiment ended with exit code 1 [pid:11916]".

data structure module

Currently, this is a dumpster fire.
The module input and organisation are both too complicated.
Need to rethink and simplify the structure and add test.

Code Crashes

I have downloaded the code and attempted to use it in the latest version of Psychopy (2020.2.10). When I run the code it opens the instructions and when I press '1' to continue it crashes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.