forked from automaticanalysis/automaticanalysis
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tiborauer
committed
Jul 2, 2017
1 parent
6bda156
commit 334d46a
Showing
5 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
function [aap,resp]=aamod_MPM(aap,task,subj) | ||
|
||
resp=''; | ||
|
||
switch task | ||
case 'report' | ||
|
||
case 'doit' | ||
|
||
mpmfns = cellstr(aas_getfiles_bystream(aap,'special_session',[subj,cell_index({aap.acq_details.special_sessions.name},'MPM')],'MPM')); | ||
|
||
job.b1_type = '3D_EPI_v2b'; | ||
|
||
job.data_spec.subj.raw_fld.b0 = [... | ||
mpmfns(cell_index(mpmfns,'serie01')),... | ||
{''},... | ||
mpmfns(cell_index(mpmfns,'serie02')),... | ||
]; | ||
job.data_spec.subj.raw_fld.b1 = mpmfns(cell_index(mpmfns,'serie03'))'; | ||
job.data_spec.subj.raw_mpm.MT = mpmfns(cell_index(mpmfns,'serie04'))'; | ||
job.data_spec.subj.raw_mpm.PD = mpmfns(cell_index(mpmfns,'serie05'))'; | ||
job.data_spec.subj.raw_mpm.T1 = mpmfns(cell_index(mpmfns,'serie06'))'; | ||
|
||
aas_makedir(aap,fullfile(aas_getsubjpath(aap,subj),'MPM')); | ||
job.data_spec.subj.output.outdir = cellstr(fullfile(aas_getsubjpath(aap,subj),'MPM')); | ||
|
||
out = vbq_mpr_b0_b1(job); | ||
|
||
aap=aas_desc_outputs(aap,'subject',subj,'mt',out.MT{1}); | ||
aap=aas_desc_outputs(aap,'subject',subj,'pd',strrep(out.A{1},'_A.nii','_PDw.nii')); | ||
aap=aas_desc_outputs(aap,'subject',subj,'r1',out.R1{1}); | ||
aap=aas_desc_outputs(aap,'subject',subj,'r2star',out.R2s{1}); | ||
aap=aas_desc_outputs(aap,'subject',subj,'t1',out.T1w{1}); | ||
|
||
case 'checkrequirements' | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<aap> | ||
<tasklist> | ||
<currenttask domain='subject' desc='Calculate MP maps using VBQ toolbox' modality='X'> | ||
|
||
<b1_type>3D_EPI_v2b</b1_type> | ||
|
||
<inputstreams> | ||
<stream>MPM</stream> | ||
</inputstreams> | ||
|
||
<outputstreams> | ||
<stream isrenameable='1'>mt</stream> | ||
<stream isrenameable='1'>pd</stream> | ||
<stream isrenameable='1'>r1</stream> | ||
<stream isrenameable='1'>r2star</stream> | ||
<stream isrenameable='1'>t1</stream> | ||
</outputstreams> | ||
|
||
</currenttask> | ||
</tasklist> | ||
</aap> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters