-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
[ENH] Add ReconScalars node to recon workflows (#683)
Co-authored-by: Taylor Salo <tsalo006@fiu.edu>
1 parent
af57c4b
commit 862fe30
Showing
15 changed files
with
786 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
|
||
cat << DOC | ||
Test the TORTOISE recon workflow | ||
================================= | ||
All supported reconstruction workflows get tested | ||
Inputs: | ||
------- | ||
- qsiprep multi shell results (data/DSDTI_fmap) | ||
DOC | ||
set +e | ||
source ./get_data.sh | ||
TESTDIR=${PWD} | ||
TESTNAME=scalar_mapper_test | ||
get_config_data ${TESTDIR} | ||
get_bids_data ${TESTDIR} multishell_output | ||
CFG=${TESTDIR}/data/nipype.cfg | ||
|
||
# Test MRtrix3 multishell msmt with ACT | ||
setup_dir ${TESTDIR}/${TESTNAME} | ||
TEMPDIR=${TESTDIR}/${TESTNAME}/work | ||
OUTPUT_DIR=${TESTDIR}/${TESTNAME}/derivatives | ||
BIDS_INPUT_DIR=${TESTDIR}/data/multishell_output/qsiprep | ||
export FS_LICENSE=${TESTDIR}/data/license.txt | ||
QSIPREP_CMD=$(run_qsiprep_cmd ${BIDS_INPUT_DIR} ${OUTPUT_DIR}) | ||
|
||
${QSIPREP_CMD} \ | ||
-w ${TEMPDIR} \ | ||
--recon-input ${BIDS_INPUT_DIR} \ | ||
--sloppy \ | ||
--stop-on-first-crash \ | ||
--recon-spec bundle_scalar_map \ | ||
--recon-only \ | ||
-vv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"name": "bundle_scalar_map", | ||
"space" : "T1w", | ||
"atlases": [ ], | ||
"anatomical": [ ], | ||
"nodes": [ | ||
{ | ||
"name": "DIPYdki", | ||
"software": "Dipy", | ||
"action": "DKI_reconstruction", | ||
"input": "qsiprep", | ||
"output_suffix": "DKI", | ||
"parameters": { | ||
"write_mif": false, | ||
"write_fibgz": false | ||
} | ||
}, | ||
{ | ||
"name": "dsistudio_gqi", | ||
"software": "DSI Studio", | ||
"action": "reconstruction", | ||
"input": "qsiprep", | ||
"output_suffix": "gqi", | ||
"parameters": {"method": "gqi"} | ||
}, | ||
{ | ||
"name": "autotrackgqi", | ||
"software": "DSI Studio", | ||
"action": "autotrack", | ||
"input": "dsistudio_gqi", | ||
"output_suffix": "AutoTrackGQI", | ||
"parameters": { | ||
"track_id": "Fasciculus,Cingulum,Aslant,Corticos,Thalamic_R,Reticular,Optic,Fornix,Corpus", | ||
"tolerance": "22,26,30", | ||
"track_voxel_ratio": 2.0, | ||
"yield_rate": 0.000001 | ||
} | ||
}, | ||
{ | ||
"name": "gqi_scalars", | ||
"software": "DSI Studio", | ||
"action": "export", | ||
"input": "dsistudio_gqi", | ||
"output_suffix": "gqiscalar" | ||
}, | ||
{ | ||
"name": "bundle_means", | ||
"software": "qsiprep", | ||
"action": "bundle_map", | ||
"input": "autotrackgqi", | ||
"scalars_from": ["gqi_scalars", "DIPYdki"], | ||
"output_suffix": "bundlemap" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.