SIMEXP / niak

GNU Octave library for connectivity analysis in large fMRI datasets
http://niak.simexp-lab.org
Other
27 stars 21 forks source link

Slice timing correction from time list #374

Closed poquirion closed 5 years ago

poquirion commented 6 years ago

So we can read scan metadata and apply directly the correction found there. in the fmri pipeline:

pipeline.slice_timing_subXXX_sessInitialMRI_taskrestrun001.command
ans = niak_brick_slice_timing(files_in,files_out,opt);

pipeline.slice_timing_sub108779_sessInitialMRI_taskrestrun001.opt
ans =

  scalar structure containing the fields:

    folder_out = /home/poquirion/simexp/dev_script/folder_out/intermediate/sub108779/slice_timing/
    flag_test = 0
    iter_nu_correct =  3
    arg_nu_correct = -distance 200
    flag_nu_correct = 0
    flag_center = 0
    type_scanner =
    flag_history = 0
    flag_even_odd = 0
    flag_regular =  1
    flag_skip = 0
    flag_variance =  1
    suppress_vol = 0
    interpolation = linear
    slice_order = [](0x0)
    type_acquisition = manual
    first_number = odd
    step = [](0x0)
    ref_slice = [](0x0)
    timing = [](0x0)
    nb_slices = [](0x0)
    tr = [](0x0)
    delay_in_tr = 0
    flag_verbose =  1

@pbellec you suggest adding the chage (in the opt) when the pipline is buid but before it is ran, did I got that right?

poquirion commented 6 years ago

I will rewrite niak_brick_slice_timing so in manual mode it can take a list of float and the scanning direction.

poquirion commented 6 years ago

The correction needs to be done directly in niak_slice_timing