1+ # Copyright (C) 2021-2025 C-PAC Developers
2+
3+ # This file is part of C-PAC.
4+
5+ # C-PAC is free software: you can redistribute it and/or modify it under
6+ # the terms of the GNU Lesser General Public License as published by the
7+ # Free Software Foundation, either version 3 of the License, or (at your
8+ # option) any later version.
9+
10+ # C-PAC is distributed in the hope that it will be useful, but WITHOUT
11+ # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12+ # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
13+ # License for more details.
14+
15+ # You should have received a copy of the GNU Lesser General Public
16+ # License along with C-PAC. If not, see <https://www.gnu.org/licenses/>.
117"""
218Generate XCP-stype quality control files.
319
@@ -439,7 +455,7 @@ def get_entity_part(key):
439455 "space-bold_desc-brain_mask" ,
440456 ["T1w-brain-template-mask" , "EPI-template-mask" ],
441457 ["space-template_desc-bold_mask" , "space-EPItemplate_desc-bold_mask" ],
442- "regressors " ,
458+ "desc-confounds_timeseries " ,
443459 ["T1w-brain-template-funcreg" , "EPI-brain-template-funcreg" ],
444460 [
445461 "desc-movementParametersUnfiltered_motion" ,
@@ -458,7 +474,7 @@ def qc_xcp(wf, cfg, strat_pool, pipe_num, opt=None):
458474 # pylint: disable=invalid-name, unused-argument
459475 if cfg [
460476 "nuisance_corrections" , "2-nuisance_regression" , "run"
461- ] and not strat_pool .check_rpool ("regressors " ):
477+ ] and not strat_pool .check_rpool ("desc-confounds_timeseries " ):
462478 return wf , {}
463479 bids_info = pe .Node (
464480 Function (
@@ -501,8 +517,8 @@ def qc_xcp(wf, cfg, strat_pool, pipe_num, opt=None):
501517 )
502518 qc_file .inputs .desc = "preproc"
503519 qc_file .inputs .regressors = (
504- strat_pool .node_data ("regressors " )
505- .node .name .split ("regressors_ " )[- 1 ][::- 1 ]
520+ strat_pool .node_data ("desc-confounds_timeseries " )
521+ .node .name .split ("desc-confounds_timeseries_ " )[- 1 ][::- 1 ]
506522 .split ("_" , 1 )[- 1 ][::- 1 ]
507523 )
508524 bold_to_T1w_mask = pe .Node (
0 commit comments