Add validated DWI preprocessing workflow example
Browse files
pipeline-builder/examples/dwi-preprocessing.workflow.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"neuroflow": "0.1.1",
|
| 3 |
+
"kind": "workflow",
|
| 4 |
+
"id": "neurodesk.pipelines/dwi-preprocessing",
|
| 5 |
+
"version": "0.1.0",
|
| 6 |
+
"description": "Denoise a diffusion series, remove Gibbs ringing, correct motion and distortions with a reverse-PE b0, then fit DTI and NODDI and track streamlines inside a mask of the corrected mean b0.",
|
| 7 |
+
"inputs": {
|
| 8 |
+
"dwi": { "type": "neuro:volume", "formats": ["nifti"], "description": "Diffusion series" },
|
| 9 |
+
"bval": { "type": "neuro:gradient-table", "description": "FSL b-values" },
|
| 10 |
+
"bvec": { "type": "neuro:gradient-table", "description": "FSL gradient directions" },
|
| 11 |
+
"sidecar": { "type": "neurodesk:metadata", "formats": ["json"], "description": "Diffusion acquisition JSON, including phase encoding and total readout time" },
|
| 12 |
+
"reverse": { "type": "neuro:volume", "formats": ["nifti"], "description": "Reverse phase-encoding b0 on the diffusion grid" },
|
| 13 |
+
"reverseSidecar": { "type": "neurodesk:metadata", "formats": ["json"], "description": "Reverse b0 acquisition JSON" }
|
| 14 |
+
},
|
| 15 |
+
"steps": {
|
| 16 |
+
"denoise": {
|
| 17 |
+
"tool": "neurodesk.webapps/dwidenoise/denoise",
|
| 18 |
+
"inputs": {
|
| 19 |
+
"input_image": { "ref": "inputs.dwi" },
|
| 20 |
+
"input_bval": { "ref": "inputs.bval" },
|
| 21 |
+
"input_bvec": { "ref": "inputs.bvec" },
|
| 22 |
+
"input_sidecar": { "ref": "inputs.sidecar" }
|
| 23 |
+
}
|
| 24 |
+
},
|
| 25 |
+
"degibbs": {
|
| 26 |
+
"tool": "neurodesk.webapps/degibbs/degibbs",
|
| 27 |
+
"inputs": {
|
| 28 |
+
"input_image": { "ref": "steps.denoise.outputs.output_image" },
|
| 29 |
+
"input_bval": { "ref": "steps.denoise.outputs.output_bval" },
|
| 30 |
+
"input_bvec": { "ref": "steps.denoise.outputs.output_bvec" },
|
| 31 |
+
"input_sidecar": { "ref": "steps.denoise.outputs.output_sidecar" }
|
| 32 |
+
}
|
| 33 |
+
},
|
| 34 |
+
"correct": {
|
| 35 |
+
"tool": "neurodesk.webapps/dwicorrect/correct",
|
| 36 |
+
"inputs": {
|
| 37 |
+
"input_dwi": { "ref": "steps.degibbs.outputs.output_image" },
|
| 38 |
+
"input_bval": { "ref": "steps.degibbs.outputs.output_bval" },
|
| 39 |
+
"input_bvec": { "ref": "steps.degibbs.outputs.output_bvec" },
|
| 40 |
+
"input_sidecar": { "ref": "steps.degibbs.outputs.output_sidecar" },
|
| 41 |
+
"input_reverse": { "ref": "inputs.reverse" },
|
| 42 |
+
"input_reverseSidecar": { "ref": "inputs.reverseSidecar" }
|
| 43 |
+
}
|
| 44 |
+
},
|
| 45 |
+
"brain": {
|
| 46 |
+
"tool": "neurodesk.webapps/brain-extraction/extract",
|
| 47 |
+
"inputs": { "input_image": { "ref": "steps.correct.outputs.output_mean-b0" } }
|
| 48 |
+
},
|
| 49 |
+
"models": {
|
| 50 |
+
"tool": "neurodesk.webapps/noddi/fit",
|
| 51 |
+
"inputs": {
|
| 52 |
+
"input_image": { "ref": "steps.correct.outputs.output_dwi" },
|
| 53 |
+
"input_bval": { "ref": "steps.correct.outputs.output_bval" },
|
| 54 |
+
"input_bvec": { "ref": "steps.correct.outputs.output_bvec" },
|
| 55 |
+
"input_mask": { "ref": "steps.brain.outputs.output_mask" }
|
| 56 |
+
}
|
| 57 |
+
},
|
| 58 |
+
"tractography": {
|
| 59 |
+
"tool": "neurodesk.webapps/dwi2trx/tractography",
|
| 60 |
+
"inputs": {
|
| 61 |
+
"input_image": { "ref": "steps.correct.outputs.output_dwi" },
|
| 62 |
+
"input_bval": { "ref": "steps.correct.outputs.output_bval" },
|
| 63 |
+
"input_bvec": { "ref": "steps.correct.outputs.output_bvec" },
|
| 64 |
+
"input_mask": { "ref": "steps.brain.outputs.output_mask" },
|
| 65 |
+
"input_metadata": { "ref": "steps.correct.outputs.output_sidecar" }
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
},
|
| 69 |
+
"outputs": {
|
| 70 |
+
"corrected": { "type": "neuro:volume", "ref": "steps.correct.outputs.output_dwi" },
|
| 71 |
+
"meanB0": { "type": "neuro:volume", "ref": "steps.correct.outputs.output_mean-b0" },
|
| 72 |
+
"bval": { "type": "neuro:gradient-table", "ref": "steps.correct.outputs.output_bval" },
|
| 73 |
+
"bvec": { "type": "neuro:gradient-table", "ref": "steps.correct.outputs.output_bvec" },
|
| 74 |
+
"sidecar": { "type": "neurodesk:metadata", "ref": "steps.correct.outputs.output_sidecar" },
|
| 75 |
+
"mask": { "type": "neuro:mask", "ref": "steps.brain.outputs.output_mask" },
|
| 76 |
+
"fa": { "type": "neuro:volume", "ref": "steps.models.outputs.output_tensor-fa" },
|
| 77 |
+
"icvf": { "type": "neuro:volume", "ref": "steps.models.outputs.output_noddi-icvf" },
|
| 78 |
+
"tracts": { "type": "neuro:tract", "ref": "steps.tractography.outputs.output_tracts" }
|
| 79 |
+
}
|
| 80 |
+
}
|