13
|
1 <tool id="dmri" name="Download dMRI" version="0.13.0">
|
|
2 <description>dataset</description>
|
0
|
3 <requirements>
|
|
4 <requirement type="package" version="0.13.0">dipy</requirement>
|
|
5 </requirements>
|
|
6 <command detect_errors="exit_code"><![CDATA[
|
2
|
7 python '$__tool_directory__/dmri.py'
|
29
|
8 --drmi_dataset_type '$drmi_dataset_type_cond.drmi_dataset_type'
|
20
|
9 --drmi_dataset $drmi_dataset
|
40
|
10 #if str($drmi_dataset) == "stanford_hardi":
|
|
11 --output_png '$output_png'
|
|
12 #end if
|
17
|
13 --output_nifti1 '$output_nifti1'
|
27
|
14 --output_nifti1_extra_files '$output_nifti1.files_path'
|
25
|
15 &>/dev/null
|
0
|
16 ]]></command>
|
|
17 <inputs>
|
29
|
18 <conditional name="drmi_dataset_type_cond">
|
|
19 <param name="drmi_dataset_type" type="select" label="Select download type">
|
|
20 <option value="dataset" selected="true">Dataset only</option>
|
|
21 <option value="dataset and label map">Dataset and label map</option>
|
|
22 </param>
|
|
23 <when option="dataset"/>
|
|
24 <when option="map"/>
|
|
25 </conditional>
|
20
|
26 <param name="drmi_dataset" type="select" label="dRMI dataset">
|
27
|
27 <option value="stanford_hardi" selected="true">stanford_hardi</option>
|
34
|
28 <option value="stanford_t1">stanford_t1</option>
|
20
|
29 </param>
|
0
|
30 </inputs>
|
|
31 <outputs>
|
40
|
32 <data name="output_png" format="png" label="${tool.name}: middle axial slice without (left) and with (right) diffusion weighting">
|
|
33 <filter>drmi_dataset == 'stanford_hardi'</filter>
|
|
34 </data>
|
|
35 <data name="output_nifti1" format="nifti1" label="dRMI dataset $drmi_dataset: ($drmi_dataset_type_cond['drmi_dataset_type']) Nifti1 image" />
|
0
|
36 </outputs>
|
|
37 <tests>
|
|
38 <test>
|
|
39 </test>
|
|
40 </tests>
|
|
41 <help>
|
|
42 **What it does**
|
|
43
|
|
44 -----
|
|
45
|
|
46 **Options**
|
|
47
|
|
48 </help>
|
|
49 <citations>
|
|
50 </citations>
|
|
51 </tool>
|