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

L1 glm and new dask #79

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
test.ipynb
test*.ipynb
*dask-worker*
*.idea
*DS_Store
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
Currently, **launchcontainers** works along with [anatROIs](https://github.com/garikoitz/anatROIs), [RTP-preproc](https://github.com/garikoitz/rtp-preproc), and [RTP2-pipeline](https://github.com/garikoitz/rtp-pipeline).

## NEW FEATURES 0.3.x
Now you can `pip install launchcontainers==0.3.16 ` and use it in the command line!
Now you can `pip install launchcontainers==0.3.18 ` and use it in the command line!
* Changed rtp/rtp2-preproc multishell option to separateed_shell_files
* Edited lc_config.yaml comment about dask_worker options
* Fixed error message by dask progress (0.3.18)
* launchcontainers --copy_configs "~/path/to/working_directory" will copy the corresponding config files to your specified directory!
* We updated the lc_config.yaml for RTP2-pipelines, please have a look!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ general:
print_command_only: False
# Log directory to store launchcontainers logging
# VALID OPTIONS: analysis_dir or full path you want
# This log dir will be used for dask_log and launchcontainer log
log_dir: analysis_dir
# Name of launchcontainers log file
log_filename: lc_log
Expand Down Expand Up @@ -57,8 +58,8 @@ container_specific:
# Analysis name
anat_analysis_name: fMRIprep_brainmask
# optional
# if your encoding direction DWI is multishell sequence
multishell: True
# if your encoding direction DWI is multishell sequence and they are in seperate files
separated_shell_files: False
# If reverse phase encoding is applied in the sequence
# It checks if there is a reverse phase encoding acquisition
# Old dcm2nixx will not create empty bvec and bval files if there was an acquisition with just b0-s
Expand Down Expand Up @@ -106,8 +107,8 @@ container_specific:
# Analysis name
anat_analysis_name: control_points_02
# optional
# if your encoding direction DWI is multishell sequence
multishell: True
# if your encoding direction DWI is multishell sequence and they are in seperate files
separated_shell_files: False
# If reverse phase encoding is applied in the sequence
# It checks if there is a reverse phase encoding acquisition
# if not, launchcontainers will create mock files
Expand Down Expand Up @@ -188,7 +189,7 @@ host_options:
# Copy the example list: for BCBL we need ['/bcbl', '/tmp', '/export']; for okazaki we need ['/fileserver', '/tmp']
bind_options: ['/bcbl', '/tmp', '/scratch', '/export']
manager: 'local'
# This can only be serial or parallel, any other options will make it fail.
# This can only be serial, parallel, or dask_worker any other options will make it fail.
launch_mode: 'serial'
# Arguments below only affect to parallel launch mode
njobs: 5
Expand Down
132 changes: 0 additions & 132 deletions example_configs/0.3.0/new_lc_config.yaml

This file was deleted.

166 changes: 166 additions & 0 deletions example_configs/0.4.0/l1_glm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@

experiment:
task: fLoc
# Runs to process
run_nums: ["01", "02", "03", "04", "05", "06"]
# dummy scan of your experiment
dummy_scans: 6
model:
# fMRI time-series space: volumetric or surface based
# valid options: EPI, MNI, fsnative, fsaverage. Currently only valid for fsnative and fsaverage
space: fsnative

# if is surface based, choose which hemisphere, input is a list, by default it would be both hemisphere because it is fast
hemis: ['lh','rh']

# TODO: whether mask the image to conduct the GLM only on some part to increase power
mask_EPI: False

# Valid option: fslabel, bimap.nii
# if mask EPI is true, then you need to choose mask method: either binary mask xx.nii or freesurfer label
mask_method: fslabel

# The things between ?h.xx.label
# if space is freesurfer space, give the label name, TODO: if space is individual T1,
fslabel_name: votc

# full path or simply the name of this file,
# if it is not full path, then you need to put it under the default place /basedir/bidsdir/derivatives/l1_glm/analysis-xxx/
# if mask_methods is bimap.nii this option will be used
# please, put this nii file under the analysis folder of the l1_glm,
maskfile_nii_path: /path/to/nii

# From the fMRIPrep command, align slice time correction to start of TR
slice_time_ref: 0.5 #0.5 or 0

# HRF model to use
hrf_model: spm

# Do not high_pass since we use fMRIPrep's cosine regressors
drift_model: None # Do not high_pass since we use fMRIPrep's cosine regressors

# Do not high_pass since we use fMRIPrep's cosine regressors
drift_order: 0 # Do not high_pass since we use fMRIPrep's cosine regressors

# Do not high_pass since we use fMRIPrep's cosine regressors
high_pass: None # Do not high_pass since we use fMRIPrep's cosine regressors

# Motion regressors to use
motion_regressors: [
"framewise_displacement",
"rot_x",
"rot_y",
"rot_z",
"trans_x",
"trans_y",
"trans_z",
]

# currently don't know how to use the following three
use_acompcor: True
use_non_steady_state: True
use_consine_regressors: True

contrast_groups:
All:
- adult
- child
- body
- limb
- ES_word
- ES_FF
- ES_CB
- ES_CS
- ES_SC
AllnoLimbs:
- adult
- child
- ES_word
- ES_FF
- ES_CB
- ES_CS
- ES_SC
AllnoWord:
- adult
- child
- body
- limb
- ES_FF
- ES_CB
- ES_CS
- ES_SC
AllnoWordnoLEX:
- adult
- child
- body
- limb
- ES_CB
- ES_SC
AllnoFace:
- body
- limb
- ES_word
- ES_FF
- ES_CB
- ES_CS
- ES_SC
LEXPER:
- ES_FF
- ES_CB
- ES_CS
- ES_SC
PER:
- ES_CB
- ES_SC
LEX:
- ES_CS
- ES_FF
Faces:
- adult
- child
Word:
- ES_word
Limbs:
- body
- limb
CB:
- ES_CB
SC:
- ES_SC
CS:
- ES_CS
FF:
- ES_FF
Adult:
- adult
Child:
- child
Limb:
- limb
Body:
- body
contrasts:
- AllvsNull
- PERvsNull
- LEXvsNull
- PERvsLEX
- WordvsLEX
- WordvsPER
- WordvsLEXPER
- WordvsAllnoWordnoLEX
- WordvsAllnoWord
- LEXvsAllnoWordnoLEX
- SCvsCB
- CSvsFF
- FacesvsNull
- FacesvsLEX
- FacesvsPER
- FacesvsLEXPER
- FacesvsAllnoFace
- AdultvsChild
- LimbsvsNull
- LimbsvsLEX
- LimbsvsPER
- LimbsvsLEXPER
- LimbsvsAllnoLimbs
- BodyvsLimb
Loading