Skip to content

Commit

Permalink
🐛 Use C-PAC Function node
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Jul 8, 2024
1 parent 7d6f0ee commit b19907a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion CPAC/alff/alff.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# -*- coding: utf-8 -*-
# Copyright (C) 2012-2024 C-PAC Developers

# This file is part of C-PAC.

# C-PAC is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.

# C-PAC is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.

# You should have received a copy of the GNU Lesser General Public
# License along with C-PAC. If not, see <https://www.gnu.org/licenses/>.
import os

from nipype.interfaces.afni import preprocess
Expand All @@ -9,6 +24,7 @@
from CPAC.pipeline import nipype_pipeline_engine as pe
from CPAC.pipeline.nodeblock import nodeblock
from CPAC.registration.registration import apply_transform
from CPAC.utils.interfaces import Function
from CPAC.utils.utils import check_prov_for_regtool


Expand Down Expand Up @@ -177,7 +193,7 @@ def create_alff(wf_name="alff_workflow"):
wf.connect(input_node, "rest_res", bandpass, "in_file")

get_option_string = pe.Node(
util.Function(
Function(
input_names=["mask"],
output_names=["option_string"],
function=get_opt_string,
Expand Down

0 comments on commit b19907a

Please sign in to comment.