@@ -649,7 +649,7 @@ def init_ica_aroma_wf(metadata, mem_gb, omp_nthreads,
649
649
650
650
outputnode = pe .Node (niu .IdentityInterface (
651
651
fields = ['aroma_confounds' , 'aroma_noise_ics' , 'melodic_mix' ,
652
- 'nonaggr_denoised_file' ]), name = 'outputnode' )
652
+ 'nonaggr_denoised_file' , 'aroma_metadata' ]), name = 'outputnode' )
653
653
654
654
select_std = pe .Node (KeySelect (
655
655
fields = ['bold_mask_std' , 'bold_std' ]),
@@ -688,6 +688,12 @@ def _getusans_func(image, thresh):
688
688
ica_aroma_confound_extraction = pe .Node (ICAConfounds (err_on_aroma_warn = err_on_aroma_warn ),
689
689
name = 'ica_aroma_confound_extraction' )
690
690
691
+ ica_aroma_metadata_fmt = pe .Node (
692
+ TSV2JSON (index_column = 'IC' , output = None , enforce_case = True ,
693
+ additional_metadata = {'Method' :
694
+ {'Name' : 'ICA-AROMA' , 'Version' : '0.3-beta' }}),
695
+ name = 'ica_aroma_metadata_fmt' )
696
+
691
697
ds_report_ica_aroma = pe .Node (
692
698
DerivativesDataSink (desc = 'aroma' , keep_dtype = True ),
693
699
name = 'ds_report_ica_aroma' , run_without_submitting = True ,
@@ -733,10 +739,13 @@ def _getbtthresh(medianval):
733
739
(ica_aroma , ica_aroma_confound_extraction , [('out_dir' , 'in_directory' )]),
734
740
(inputnode , ica_aroma_confound_extraction , [
735
741
('skip_vols' , 'skip_vols' )]),
742
+ (ica_aroma_confound_extraction , ica_aroma_metadata_fmt , [
743
+ ('aroma_metadata' , 'in_file' )]),
736
744
# output for processing and reporting
737
745
(ica_aroma_confound_extraction , outputnode , [('aroma_confounds' , 'aroma_confounds' ),
738
746
('aroma_noise_ics' , 'aroma_noise_ics' ),
739
747
('melodic_mix' , 'melodic_mix' )]),
748
+ (ica_aroma_metadata_fmt , outputnode , [('output' , 'aroma_metadata' )]),
740
749
(ica_aroma , add_non_steady_state , [
741
750
('nonaggr_denoised_file' , 'bold_cut_file' )]),
742
751
(select_std , add_non_steady_state , [
0 commit comments