-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Termination of the pipeline via aaq_qsubVeiwerClass is correctly detected by aaq_qsub and aa_doprocessing - aamod_fieldmapfromnifti now correctly outputs TEs from specified header - Reporting includes distributions of (both the first- and second-level) contrasts
- Loading branch information
Tibor Auer
committed
Mar 18, 2016
1 parent
3dd8045
commit 4a61770
Showing
8 changed files
with
97 additions
and
41 deletions.
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
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
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
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,29 @@ | ||
function aap = aa_convert_subjects(aap) | ||
aap0 = aarecipe('aap_parameters_defaults.xml','aap_tasklist_fmri.xml'); | ||
fields=fieldnames(aap0.schema.acq_details.subjects); | ||
fields(strcmp(fields,'ATTRIBUTE')) = []; | ||
for field=fields' | ||
newsubj.(field{1})={[]}; | ||
end | ||
fields(strcmp(fields,'subjname')) = []; | ||
newsubj.subjname = ''; | ||
|
||
newsubj(1:numel(aap.acq_details.subjects)) = newsubj; | ||
|
||
oldsubj = aap.acq_details.subjects; | ||
for s = 1:numel(oldsubj) | ||
for field=fields' | ||
if isfield(oldsubj(s),field{1}) | ||
newsubj(s).(field{1})={oldsubj(s).(field{1})}; | ||
else | ||
newsubj(s).(field{1})={[]}; | ||
end | ||
end | ||
end | ||
|
||
aap.acq_details.subjects = newsubj; | ||
aap.aap_beforeuserchanges.acq_details.subjects = newsubj; | ||
for s = 1:numel(aap.acq_details.subjects) | ||
aap = aamod_evaluatesubjectnames(aap,'doit',s); | ||
end | ||
aap.internal.aap_initial.acq_details.subjects = aap.acq_details.subjects; |