Skip to content

Commit

Permalink
Add a node for selecting specific shells from preprocessed dwis (#194)
Browse files Browse the repository at this point in the history

---------

Co-authored-by: Taylor Salo <[email protected]>
  • Loading branch information
mattcieslak and tsalo authored Dec 6, 2024
1 parent 9bd2036 commit f95211a
Show file tree
Hide file tree
Showing 15 changed files with 454 additions and 36 deletions.
28 changes: 28 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,25 @@ jobs:
- store_artifacts:
path: /src/qsirecon/.circleci/out/multises_post1_qsiprep_reportsession/

Recon_Interfaces:
<<: *dockersetup
steps:
- checkout
- restore_cache:
key: multishell_output-01
- run: *runinstall
- run:
name: Pytest the recon interfaces
no_output_timeout: 1h
command: |
pytest -rP -o log_cli=true -m "interfaces" --cov-config=/src/qsirecon/pyproject.toml --cov-append --cov-report term-missing --cov=qsirecon --data_dir=/src/qsirecon/.circleci/data --output_dir=/src/qsirecon/.circleci/out --working_dir=/src/qsirecon/.circleci/work qsirecon
mkdir /src/coverage
mv /src/qsirecon/.coverage /src/coverage/.coverage.recon_interfaces
- persist_to_workspace:
root: /src/coverage/
paths:
- .coverage.recon_interfaces

Recon_MRtrix3:
<<: *dockersetup
steps:
Expand Down Expand Up @@ -632,6 +651,13 @@ workflows:
tags:
only: /.*/

- Recon_Interfaces:
requires:
- download_multishell_output
filters:
tags:
only: /.*/

- Recon_AutoTrack:
requires:
- download_multishell_output
Expand Down Expand Up @@ -693,6 +719,7 @@ workflows:
- Recon_3Tissue_Singleshell_ACT
- Recon_3Tissue_Singleshell_NoACT
- Recon_MRtrix3
- Recon_Interfaces
- Recon_AutoTrack
- Recon_Tortoise
- Recon_DIPY_MAPMRI
Expand All @@ -717,6 +744,7 @@ workflows:
- Recon_3Tissue_Singleshell_ACT
- Recon_3Tissue_Singleshell_NoACT
- Recon_MRtrix3
- Recon_Interfaces
- Recon_msmt_Multishell_HSVS
- Recon_AutoTrack
- Recon_Tortoise
Expand Down
12 changes: 11 additions & 1 deletion qsirecon/data/pipelines/mrtrix_singleshell_ss3t_ACT-fast.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,18 @@ anatomical:
- mrtrix_5tt_fast
name: mrtrix_singleshell_ss3t_fast
nodes:
- action: csd

- action: select_gradients
input: qsirecon
name: select_single_shell
parameters:
requested_shells:
- 0
- highest
bval_distance_cutoff: 100

- action: csd
input: select_single_shell
name: ss3t_csd
parameters:
fod:
Expand Down
10 changes: 9 additions & 1 deletion qsirecon/data/pipelines/mrtrix_singleshell_ss3t_ACT-hsvs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@ anatomical:
- mrtrix_5tt_hsvs
name: mrtrix_singleshell_ss3_hsvst
nodes:
- action: csd
- action: select_gradients
input: qsirecon
name: select_single_shell
parameters:
requested_shells:
- 0
- highest
bval_distance_cutoff: 100
- action: csd
input: select_single_shell
name: ss3t_csd
parameters:
fod:
Expand Down
12 changes: 11 additions & 1 deletion qsirecon/data/pipelines/mrtrix_singleshell_ss3t_noACT.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
anatomical: []
name: mrtrix_singleshell_ss3t_noACT
nodes:
- action: csd

- action: select_gradients
input: qsirecon
name: select_single_shell
parameters:
requested_shells:
- 0
- highest
bval_distance_cutoff: 100

- action: csd
input: select_single_shell
name: ss3t_csd
parameters:
fod:
Expand Down
1 change: 1 addition & 0 deletions qsirecon/data/schemes/DSIQ5.bval
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0 0 195 200 195 395 390 390 395 395 395 590 590 590 0 590 785 790 800 995 995 980 985 980 985 980 995 995 0 985 985 980 1180 1185 1180 1180 1180 1180 1185 1185 1185 1180 0 1180 1180 1575 1585 1575 1585 1585 1585 1780 1780 1780 1780 1770 0 1780 1770 1770 1775 1780 1780 1795 1780 1770 1780 1970 1970 1970 0 1980 1990 1975 1970 1990 1990 1975 1980 1990 2170 2170 2185 2170 0 2170 2185 2170 2170 2170 2185 2170 2185 2370 2370 2370 2370 2575 0 2575 2580 2565 2565 2565 2580 2575 2575 2580 2580 2565 2770 2770 0 2775 2775 2765 2760 2760 2760 2770 2775 2770 2765 2765 2775 2775 0 2760 2775 2775 2765 2770 2770 2775 2770 2770 3165 3170 3190 3365 0 3365 3365 3365 3360 3385 3365 3385 3360 3360 3360 3360 3360 3360 0 3360 3365 3385 3360 3365 3365 3360 3360 3385 3360 3570 3560 3560 0 3560 3570 3570 3555 3560 3560 3580 3555 3560 3580 3560 3580 3570 0 3560 3580 3755 3765 3765 3765 3765 3765 3755 3765 3765 3755 3765 0 3755 3955 3975 3965 3965 3975 3950 3955 3965 3950 3975 3965 3975 0 4155 4155 4150 4170 4155 4160 4155 4150 4150 4170 4150 4170 4170 0 4170 4150 4170 4150 4160 4160 4150 4160 4170 4150 4170 4355 4350 0 4355 4350 4355 4350 4355 4355 4355 4355 4350 4355 4760 4760 4750 0 4760 4760 4750 4750 4750 4750 4750 4750 4750 4960 4955 4965 0 4960 4965 4985 4940 4965 4960 4940 4940 4960 4950 4940 4965 0
3 changes: 3 additions & 0 deletions qsirecon/data/schemes/DSIQ5.bvec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
0 0 0.00512677 0.999898 0.0051803 -0.712451 0.00365419 -0.00365419 0.712451 0.712451 -0.712451 -0.583226 -0.583226 0.583226 0 0.583226 0.00126569 0.00127221 0.999961 0.896745 0.897016 -0.00136882 0.450107 0.00136834 0.449748 -0.00136834 -0.896745 -0.897016 0 -0.449748 -0.450107 0.00136882 -0.41136 0.820265 0.41136 -0.411358 0.411358 -0.41136 -0.820265 0.820265 -0.820265 0.411358 0 0.41136 -0.411358 0.00089988 -0.709773 -0.00089988 -0.709553 0.709553 0.709773 0.669846 0.669866 0.00056305 0.669846 0.33559 0 -0.669866 -0.33559 -0.33559 0.00056114 -0.669846 -0.669866 0.999982 0.669866 0.33559 -0.669846 -0.00064193 0.00064193 -0.00064131 0 -0.318 -0.949989 0.318288 0.00064131 0.950113 0.949989 -0.318288 0.318 -0.950113 -0.303708 -0.303555 0.906895 -0.303555 0 -0.303708 0.906895 0.303555 0.303708 0.303555 -0.906895 0.303708 -0.906895 -0.580189 0.580189 -0.580189 0.580189 -0.556709 0 -0.556883 0.834008 -0.0005413 -0.00054141 0.0005413 -0.833828 0.556883 0.556709 0.833828 -0.834008 0.00054141 0.537016 0.537016 0 0.804246 0.804275 0.268996 -0.26901 0.26901 0.26901 0.536932 0.804275 0.536932 0.268996 -0.268996 -0.804275 -0.804246 0 -0.26901 -0.804275 -0.804246 -0.268996 -0.536932 -0.537016 0.804246 -0.537016 -0.536932 0.00031515 0.00031595 0.99999 -0.243569 0 -0.730103 -0.243705 0.243705 -0.00036051 -0.970951 -0.730103 -0.971013 -0.00036075 0.487374 -0.487278 0.487374 0.00036075 0.487278 0 -0.487374 0.730103 0.970951 -0.487278 0.243569 0.730103 0.00036051 0.487278 0.971013 -0.487374 -0.709081 -0.2369 0.23699 0 0.2369 0.708883 0.709081 -0.0003982 -0.23699 0.23699 -0.944344 0.0003982 0.2369 0.944344 -0.23699 0.944344 -0.708883 0 -0.2369 -0.944344 0.230883 -0.690449 0.690449 0.690559 -0.690559 0.690449 0.230883 -0.690559 -0.690449 -0.230883 0.690559 0 -0.230883 0.00033944 0.895814 0.448611 -0.448791 -0.895814 -0.00033959 -0.00033944 -0.448611 0.00033959 -0.895704 0.448791 0.895704 0 -0.438229 -0.438229 -0.219309 0.874687 0.438229 -0.438076 0.438229 0.21938 -0.21938 0.874715 0.219309 0.874687 -0.874687 0 -0.874715 -0.21938 0.874715 0.21938 0.438076 -0.438076 0.219309 0.438076 -0.874687 -0.219309 -0.874715 0.641837 0.428312 0 -0.641842 0.428312 0.641842 -0.428312 -0.641837 -0.641842 -0.641837 0.641837 -0.428312 0.641842 0.818493 0.818493 0.409953 0 -0.818493 -0.818493 0.409852 -0.409953 -0.409953 -0.409852 -0.409852 0.409953 0.409852 -0.60152 0.0002019 0.801575 0 0.60152 0.801392 0.999993 0.00028335 -0.801575 -0.60163 -0.00028335 -0.00028339 0.60163 0.00020149 0.00028339 -0.801392 0
0 0 -0.010334 -0.0100979 -0.999933 0.00719586 -0.707102 0.707102 -0.00719586 -0.701685 -0.701685 -0.57439 0.57439 0.57439 0 -0.57439 -0.00636733 -0.999986 -0.00628066 -0.442514 -0.00541963 0.445206 -0.00544864 -0.895882 -0.893144 0.895882 -0.442514 0.00541963 0 -0.893144 0.00544864 -0.445206 0.405824 -0.404799 0.405824 -0.816489 0.816489 -0.405824 -0.404799 0.404799 0.404799 -0.816489 0 -0.405824 0.816489 -0.707331 0.0044666 0.707331 -0.704641 -0.704641 -0.0044666 -0.665159 0.330623 -0.999992 0.665159 -0.666288 0 0.330623 0.666288 -0.666288 -0.00450913 0.665159 -0.330623 -0.00446125 -0.330623 0.666288 -0.665159 0.313963 -0.313963 0.949658 0 -0.948084 -0.312263 -0.00416406 -0.949658 -0.00413844 -0.312263 0.00416406 -0.948084 0.00413844 0.299122 -0.904832 -0.298153 0.904832 0 -0.299122 0.298153 0.904832 0.299122 -0.904832 0.298153 -0.299122 -0.298153 -0.576047 0.576047 0.576047 -0.576047 -0.830701 0 0.00366618 -0.00365633 0.832732 0.554251 -0.832732 -0.552016 -0.00366618 -0.830701 -0.552016 0.00365633 -0.554251 -0.264935 0.264935 0 -0.532439 0.264526 0.802052 0.533761 0.533761 -0.533761 0.801151 -0.264526 -0.801151 -0.802052 0.802052 -0.264526 -0.532439 0 -0.533761 0.264526 0.532439 -0.802052 -0.801151 -0.264935 0.532439 0.264935 0.801151 -0.00316136 -0.999996 -0.00345014 -0.96988 0 -0.483373 0.00302909 -0.00302909 0.97081 -0.239261 0.483373 0.00329932 0.240241 0.727129 -0.483957 -0.727129 -0.240241 -0.483957 0 -0.727129 -0.483373 -0.239261 0.483957 -0.96988 0.483373 -0.97081 0.483957 -0.00329932 0.727129 0.00316998 0.943166 -0.233412 0 -0.943166 -0.70532 -0.00316998 0.707306 -0.233412 0.233412 -0.232741 -0.707306 0.943166 0.232741 0.233412 -0.232741 -0.70532 0 -0.943166 0.232741 0.688185 -0.686976 -0.686976 -0.227037 -0.227037 0.686976 -0.688185 0.227037 0.686976 0.688185 0.227037 0 -0.688185 -0.895083 -0.00303881 -0.893723 0.00282259 0.00303881 0.446171 0.895083 -0.893723 -0.446171 -0.444645 -0.00282259 -0.444645 0 0.216017 -0.216017 0.873293 0.434228 0.216017 0.872688 -0.216017 -0.435288 0.435288 0.215668 -0.873293 -0.434228 0.434228 0 0.215668 -0.435288 -0.215668 0.435288 0.872688 -0.872688 0.873293 -0.872688 -0.434228 -0.873293 -0.215668 -0.638607 0.63916 0 -0.424958 -0.63916 0.424958 -0.63916 0.638607 0.424958 -0.638607 0.638607 0.63916 -0.424958 -0.406373 0.406373 0.406943 0 -0.406373 0.406373 0.816437 -0.406943 0.406943 0.816437 -0.816437 -0.406943 -0.816437 -0.798855 -0.999997 -0.00274017 0 -0.798855 -0.598135 -0.00281054 -0.800461 0.00274017 0.00258182 0.800461 0.599696 -0.00258182 -0.00262611 -0.599696 -0.598135 0
0 0 -0.999933 -0.0100979 -0.0103606 -0.701685 -0.707102 -0.707102 -0.701685 -0.00719583 -0.00719583 -0.57439 -0.57439 -0.57439 0 -0.57439 -0.999979 -0.00508885 -0.00628066 -0.00541502 -0.441964 -0.895427 -0.892958 -0.44429 -0.0045382 -0.44429 -0.00541502 -0.441964 0 -0.0045382 -0.892958 -0.895427 -0.816143 -0.404107 -0.816143 -0.405131 -0.405131 -0.816143 -0.404107 -0.404107 -0.404107 -0.405131 0 -0.816143 -0.405131 -0.706882 -0.704416 -0.706882 -0.0040203 -0.0040203 -0.704416 -0.329954 -0.664806 -0.00394135 -0.329954 -0.665912 0 -0.664806 -0.665912 -0.665912 -0.99999 -0.329954 -0.664806 -0.00390418 -0.664806 -0.665912 -0.329954 -0.949435 -0.949435 -0.313288 0 -0.00368058 -0.00365925 -0.947985 -0.313288 -0.311877 -0.00365925 -0.947985 -0.00368058 -0.311877 -0.904593 -0.298554 -0.297737 -0.298554 0 -0.904593 -0.297737 -0.298554 -0.904593 -0.298554 -0.297737 -0.904593 -0.297737 -0.575804 -0.575804 -0.575804 -0.575804 -0.00334024 0 -0.830583 -0.55174 -0.553675 -0.83235 -0.553675 -0.00311754 -0.830583 -0.00334024 -0.00311754 -0.55174 -0.83235 -0.800889 -0.800889 0 -0.264003 -0.532135 -0.533249 -0.801706 -0.801706 -0.801706 -0.264314 -0.532135 -0.264314 -0.533249 -0.533249 -0.532135 -0.264003 0 -0.801706 -0.532135 -0.264003 -0.533249 -0.264314 -0.800889 -0.264003 -0.800889 -0.264314 -0.999995 -0.00284357 -0.0028232 -0.00273906 0 -0.483012 -0.969845 -0.969845 -0.23985 -0.00272476 -0.483012 -0.239006 -0.970713 -0.483477 -0.726874 -0.483477 -0.970713 -0.726874 0 -0.483477 -0.483012 -0.00272476 -0.726874 -0.00273906 -0.483012 -0.23985 -0.726874 -0.239006 -0.483477 -0.70512 -0.233059 -0.943056 0 -0.233059 -0.00277213 -0.70512 -0.706908 -0.943056 -0.943056 -0.232477 -0.706908 -0.233059 -0.232477 -0.943056 -0.232477 -0.00277213 0 -0.233059 -0.232477 -0.687819 -0.226595 -0.226595 -0.686719 -0.686719 -0.226595 -0.687819 -0.686719 -0.226595 -0.687819 -0.686719 0 -0.687819 -0.4459 -0.444418 -0.00259589 -0.893632 -0.444418 -0.894947 -0.4459 -0.00259589 -0.894947 -0.00247554 -0.893632 -0.00247554 0 -0.872521 -0.872521 -0.435043 -0.215334 -0.872521 -0.215652 -0.872521 -0.873154 -0.873154 -0.434006 -0.435043 -0.215334 -0.215334 0 -0.434006 -0.873154 -0.434006 -0.873154 -0.215652 -0.215652 -0.435043 -0.215652 -0.215334 -0.435043 -0.434006 -0.424531 -0.638767 0 -0.638318 -0.638767 -0.638318 -0.638767 -0.424531 -0.638318 -0.424531 -0.424531 -0.638767 -0.638318 -0.406116 -0.406116 -0.816294 0 -0.406116 -0.406116 -0.406757 -0.816294 -0.816294 -0.406757 -0.406757 -0.816294 -0.406757 -0.0022984 -0.00242275 -0.597888 0 -0.0022984 -0.00229544 -0.00240919 -0.599385 -0.597888 -0.798771 -0.599385 -0.800228 -0.798771 -0.999997 -0.800228 -0.00229544 0
Loading

0 comments on commit f95211a

Please sign in to comment.