Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add language localizer #14

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

Conversation

vborghe
Copy link
Contributor

@vborghe vborghe commented Jul 19, 2021

First iteration, still needs work, but I did not want to slow things down.

Here are the notes and details, including comments on choices we might want to make.

@bpinsard bpinsard self-requested a review July 27, 2021 19:19
Copy link
Contributor

@bpinsard bpinsard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The Audio localizer task seems to only play a single audio file. It seems from the design that the task (what is presented during a fMRI run) should include multiple stimuli/events, with predetermined timings (maybe preset as tsv files, unless randomized on the fly). The save function should be rewritten to output the events.tsv file.

  • All the large binary files are indexed in git, the data/language/localizer/ folder should be initialized as a separate datalad dataset, which will be installed here as a submodule, and in the fMRI dataset as stimuli.

def _run(self, exp_win, ctl_win):
recording = sound.Sound(self.filepath)

win = visual.Window()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why you create a window here. The way the script works is that a window exp_win is created at the beginning and use throughout the script (and is passed to _instruction, _run, ...) .

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I am getting super lost with the 2 audio versions - I can't tell if it's my setupt/mac or if I am simply doing something wrong. I might need to ask your help

@bpinsard
Copy link
Contributor

Why in the text localizer, there is an s or n displayed at then end of each sentence/block? Is that a placeholder for the participant to respond?

@vborghe
Copy link
Contributor Author

vborghe commented Oct 18, 2021

I've fixed

Why in the text localizer, there is an s or n displayed at then end of each sentence/block? Is that a placeholder for the participant to respond?

Fixed making it clear what is "response time" and what is "fixation". We need to decide if we want to show an image for the response or not.

@vborghe vborghe marked this pull request as draft October 19, 2021 12:42
@vborghe
Copy link
Contributor Author

vborghe commented Oct 19, 2021

  • All the large binary files are indexed in git, the data/language/localizer/ folder should be initialized as a separate datalad dataset, which will be installed here as a submodule, and in the fMRI dataset as stimuli.

Does this look OK as separate datalad dataset? https:/courtois-neuromod/langlocalizer.stimuli/tree/master

Copy link
Contributor

@bpinsard bpinsard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR and sorry for the long delay.
For the listening localizers, there seems to be a mis-understanding of what is supposed to be a Task, see inline comments.

(Please remove the .DS_Store from the commits, you can also add a pattern to the .gitignore to avoid including these in the future. Thanks)

@@ -14,3 +14,7 @@
path = data/retinotopy
url = [email protected]:courtois-neuromod/retino.stimuli.git
datalad-id = 52140b46-63c8-45a7-a03f-2f2cab0db23f
[submodule "data/langauge/localizer"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo for "language"

STIM_LIST = get_audios_alice(C_LIST)

TASKS = []
for run_N in range(1, 3):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if that's you meant to implement such design.
Each item TASK is supposed to be a separate fMRI run, each waiting for a start trigger.
For now it seems that each trial is made into a separate fMRI run.

degr_idx = degr_idx+1
return STIM_LIST

TASKS = []
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as for the other localizer

_draw_instr()
yield

def _run(self, exp_win, ctl_win):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like the run here should present more than one stimuli. That function is supposed to host the task logic (timing, ISI, keypresses of responses, ....)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants