Closed shnizzedy closed 2 years ago
If I add print(regressors)
here, we can see the first regressor gets a new pipe_num
, but the second is repeated, causing the crash.
nuisance_regressors_1-aCompCor-GSR-no-spike-regression_177
nuisance_regressors_2-aCompCor-no-GSR-no-spike-regression_128
nuisance_regressors_3-No-aCompCor-GSR-no-spike-regression_128
nuisance_regressors_4-No-aCompCor-no-GSR-no-spike-regression_128
nuisance_regressors_5-aCompCor-GSR-spike-regression_128
nuisance_regressors_6-aCompCor-no-GSR-spike-regression_128
nuisance_regressors_7-No-aCompCor-GSR-spike-regression_128
nuisance_regressors_8-No-aCompCor-no-GSR-spike-regression_128
nuisance_regressors_1-aCompCor-GSR-no-spike-regression_190
nuisance_regressors_2-aCompCor-no-GSR-no-spike-regression_128
Printing opt
here shows the same pattern (custom regressor 1 is different, 2 is the same):
{'Bandpass': {'bottom_frequency': 0.01, 'top_frequency': 0.1}, 'GlobalSignal': {'summary': 'Mean'}, 'Motion': {'include_delayed': True, 'include_delayed_squared': True, 'include_squared': True}, 'Name': '1-aCompCor-GSR-no-spike-regression', 'PolyOrt': {'degree': 2}, 'aCompCor': {'extraction_resolution': 2, 'summary': {'components': 5, 'method': 'DetrendPC'}, 'tissues': ['WhiteMatter', 'CerebrospinalFluid']}}
{'Bandpass': {'bottom_frequency': 0.01, 'top_frequency': 0.1}, 'Motion': {'include_delayed': True, 'include_delayed_squared': True, 'include_squared': True}, 'Name': '2-aCompCor-no-GSR-no-spike-regression', 'PolyOrt': {'degree': 2}, 'aCompCor': {'extraction_resolution': 2, 'summary': {'components': 5, 'method': 'DetrendPC'}, 'tissues': ['WhiteMatter', 'CerebrospinalFluid']}}
{'Bandpass': {'bottom_frequency': 0.01, 'top_frequency': 0.1}, 'GlobalSignal': {'summary': 'Mean'}, 'Motion': {'include_delayed': True, 'include_delayed_squared': True, 'include_squared': True}, 'Name': '3-No-aCompCor-GSR-no-spike-regression', 'PolyOrt': {'degree': 2}}
{'Bandpass': {'bottom_frequency': 0.01, 'top_frequency': 0.1}, 'Motion': {'include_delayed': True, 'include_delayed_squared': True, 'include_squared': True}, 'Name': '4-No-aCompCor-no-GSR-no-spike-regression', 'PolyOrt': {'degree': 2}}
{'Bandpass': {'bottom_frequency': 0.01, 'top_frequency': 0.1}, 'Censor': {'method': 'SpikeRegression', 'number_of_previous_trs_to_censor': 0, 'number_of_subsequent_trs_to_censor': 0, 'thresholds': [{'type': 'FD_J', 'value': 0.2}]}, 'GlobalSignal': {'summary': 'Mean'}, 'Motion': {'include_delayed': True, 'include_delayed_squared': True, 'include_squared': True}, 'Name': '5-aCompCor-GSR-spike-regression', 'PolyOrt': {'degree': 2}, 'aCompCor': {'extraction_resolution': 2, 'summary': {'components': 5, 'method': 'DetrendPC'}, 'tissues': ['WhiteMatter', 'CerebrospinalFluid']}}
{'Bandpass': {'bottom_frequency': 0.01, 'top_frequency': 0.1}, 'Censor': {'method': 'SpikeRegression', 'number_of_previous_trs_to_censor': 0, 'number_of_subsequent_trs_to_censor': 0, 'thresholds': [{'type': 'FD_J', 'value': 0.2}]}, 'Motion': {'include_delayed': True, 'include_delayed_squared': True, 'include_squared': True}, 'Name': '6-aCompCor-no-GSR-spike-regression', 'PolyOrt': {'degree': 2}, 'aCompCor': {'extraction_resolution': 2, 'summary': {'components': 5, 'method': 'DetrendPC'}, 'tissues': ['WhiteMatter', 'CerebrospinalFluid']}}
{'Bandpass': {'bottom_frequency': 0.01, 'top_frequency': 0.1}, 'Censor': {'method': 'SpikeRegression', 'number_of_previous_trs_to_censor': 0, 'number_of_subsequent_trs_to_censor': 0, 'thresholds': [{'type': 'FD_J', 'value': 0.2}]}, 'GlobalSignal': {'summary': 'Mean'}, 'Motion': {'include_delayed': True, 'include_delayed_squared': True, 'include_squared': True}, 'Name': '7-No-aCompCor-GSR-spike-regression', 'PolyOrt': {'degree': 2}}
{'Bandpass': {'bottom_frequency': 0.01, 'top_frequency': 0.1}, 'Censor': {'method': 'SpikeRegression', 'number_of_previous_trs_to_censor': 0, 'number_of_subsequent_trs_to_censor': 0, 'thresholds': [{'type': 'FD_J', 'value': 0.2}]}, 'Motion': {'include_delayed': True, 'include_delayed_squared': True, 'include_squared': True}, 'Name': '8-No-aCompCor-no-GSR-spike-regression', 'PolyOrt': {'degree': 2}}
{'Bandpass': {'bottom_frequency': 0.01, 'top_frequency': 0.1}, 'GlobalSignal': {'summary': {'filter': 'Mean', 'method': 'Mean'}}, 'Motion': {'include_delayed': True, 'include_delayed_squared': True, 'include_squared': True}, 'Name': '1-aCompCor-GSR-no-spike-regression', 'PolyOrt': {'degree': 2}, 'aCompCor': {'extraction_resolution': 2, 'summary': {'components': 5, 'method': 'DetrendPC'}, 'tissues': ['WhiteMatter', 'CerebrospinalFluid']}}
{'Bandpass': {'bottom_frequency': 0.01, 'top_frequency': 0.1}, 'Motion': {'include_delayed': True, 'include_delayed_squared': True, 'include_squared': True}, 'Name': '2-aCompCor-no-GSR-no-spike-regression', 'PolyOrt': {'degree': 2}, 'aCompCor': {'extraction_resolution': 2, 'summary': {'components': 5, 'method': 'DetrendPC'}, 'tissues': ['WhiteMatter', 'CerebrospinalFluid']}}
With https://github.com/shnizzedy/C-PAC/blob/7413998587fcaf745ddc529161b0e7d27e8330df/CPAC/pipeline/engine.py#L1167-L1169 we see several warnings
Duplicate node name "nuisance_regressors_2-aCompCor-no-GSR-no-spike-regression_128" found.
Duplicate node name "nuisance_regressors_3-No-aCompCor-GSR-no-spike-regression_128" found.
Duplicate node name "nuisance_regressors_4-No-aCompCor-no-GSR-no-spike-regression_128" found.
Duplicate node name "nuisance_regressors_5-aCompCor-GSR-spike-regression_128" found.
Duplicate node name "nuisance_regressors_6-aCompCor-no-GSR-spike-regression_128" found.
Duplicate node name "nuisance_regressors_7-No-aCompCor-GSR-spike-regression_128" found.
Duplicate node name "nuisance_regressors_8-No-aCompCor-no-GSR-spike-regression_128" found.
Duplicate node name "nuisance_regressors_2-aCompCor-no-GSR-no-spike-regression_129" found.
Duplicate node name "nuisance_regressors_3-No-aCompCor-GSR-no-spike-regression_129" found.
Duplicate node name "nuisance_regressors_4-No-aCompCor-no-GSR-no-spike-regression_129" found.
Duplicate node name "nuisance_regressors_5-aCompCor-GSR-spike-regression_129" found.
Duplicate node name "nuisance_regressors_6-aCompCor-no-GSR-spike-regression_129" found.
Duplicate node name "nuisance_regressors_7-No-aCompCor-GSR-spike-regression_129" found.
Duplicate node name "nuisance_regressors_8-No-aCompCor-no-GSR-spike-regression_129" found.
but the pipeline runs
Describe the bug
Trying to test https://github.com/FCP-INDI/C-PAC/pull/1524 (cpac-singularity-image.simg) with prelim_forks_ses_test.yml, I get
C-PAC seems to be duplicating at least that one regressor somehow?
To Reproduce Steps to reproduce the behavior:
Versions
Additional context
The regressor section of the pipeline file: