Skip to content

Commit

Permalink
ENH: Reconnect datasinks
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Nov 19, 2023
1 parent a08d9cf commit f7c4a35
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions smriprep/workflows/anatomical.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
from .outputs import (
init_anat_reports_wf,
init_ds_anat_volumes_wf,
init_ds_grayord_metrics_wf,
init_ds_surface_metrics_wf,
init_ds_surfaces_wf,
init_ds_template_wf,
Expand Down Expand Up @@ -374,6 +375,13 @@ def init_anat_preproc_wf(
grayord_density=cifti_output, omp_nthreads=omp_nthreads
)

ds_grayord_metrics_wf = init_ds_grayord_metrics_wf(

Check warning on line 378 in smriprep/workflows/anatomical.py

View check run for this annotation

Codecov / codecov/patch

smriprep/workflows/anatomical.py#L378

Added line #L378 was not covered by tests
bids_root=bids_root,
output_dir=output_dir,
metrics=['curv', 'sulc', 'thickness'],
cifti_output=cifti_output,
)

workflow.connect([

Check warning on line 385 in smriprep/workflows/anatomical.py

View check run for this annotation

Codecov / codecov/patch

smriprep/workflows/anatomical.py#L385

Added line #L385 was not covered by tests
(anat_fit_wf, hcp_morphometrics_wf, [
('outputnode.subject_id', 'inputnode.subject_id'),
Expand Down Expand Up @@ -407,6 +415,14 @@ def init_anat_preproc_wf(
(resample_midthickness_wf, morph_grayords_wf, [
('outputnode.midthickness_fsLR', 'inputnode.midthickness_fsLR'),
]),
(anat_fit_wf, ds_grayord_metrics_wf, [
('outputnode.t1w_valid_list', 'inputnode.source_files'),
]),
(morph_grayords_wf, ds_grayord_metrics_wf, [
('outputnode.curv', 'inputnode.curv'),
('outputnode.sulc', 'inputnode.sulc'),
('outputnode.thickness', 'inputnode.thickness'),
]),
]) # fmt:skip

return workflow
Expand Down

0 comments on commit f7c4a35

Please sign in to comment.