Skip to content

Commit

Permalink
🐛 Set subject ID for longitudinal workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shnizzedy committed Oct 22, 2024
1 parent 12daee2 commit f8e09b1
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions CPAC/longitudinal_pipeline/longitudinal_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
create_wf_calculate_ants_warp,
)
from CPAC.registration.registration import apply_transform
from CPAC.utils.configuration.configuration import Configuration
from CPAC.utils.datasource import (
resolve_resolution,
)
Expand Down Expand Up @@ -380,24 +381,25 @@ def warp_longitudinal_seg_to_T1w(wf, cfg, strat_pool, pipe_num, opt=None):
return (wf, outputs)


def anat_longitudinal_wf(subject_id, sub_list, config):
def anat_longitudinal_wf(
subject_id: str, sub_list: list[dict], config: Configuration
) -> None:
"""
Create and run anatomical longitudinal workflow(s).
Parameters
----------
subject_id : str
subject_id
the id of the subject
sub_list : list of dict
sub_list
this is a list of sessions for one subject and each session if the same dictionary as the one given to
prep_workflow
config : configuration
config
a configuration object containing the information of the pipeline config. (Same as for prep_workflow)
Returns
-------
None
"""
# list of lists for every strategy
session_id_list = []
config["subject_id"] = subject_id
session_id_list: list[list] = []
"""List of lists for every strategy"""
session_wfs = {}

cpac_dirs = []
Expand Down

0 comments on commit f8e09b1

Please sign in to comment.