annotate dicom2text.xml @ 0:199de6887566 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
author imgteam
date Thu, 01 Jan 2026 10:26:58 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
1 <tool id="highdicom_dicom2text" name="Export DICOM metadata" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="24.01">
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
2 <expand macro="description"/>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
3 <macros>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
4 <import>macros.xml</import>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
5 <import>creators.xml</import>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
6 </macros>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
7 <creator>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
8 <expand macro="creators/bmcv"/>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
9 <expand macro="creators/kostrykin"/>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
10 </creator>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
11 <edam_operations>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
12 <edam_operation>operation_3443</edam_operation>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
13 </edam_operations>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
14 <expand macro="xrefs"/>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
15 <expand macro="requirements"/>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
16 <command><![CDATA[
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
17
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
18 python '$__tool_directory__/dicom2text.py'
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
19 '$input'
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
20
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
21 #if $export_to == "json"
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
22 ./output.json
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
23 #elif $export_to == "yaml"
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
24 ./output.yaml
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
25 #end if
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
26
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
27 ]]>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
28 </command>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
29 <inputs>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
30 <param name="input" type="data" format="binary" label="DICOM dataset"/>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
31 <param name="export_to" type="select" label="Export to">
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
32 <option value="json" selected="true">JSON</option>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
33 <option value="yaml">YAML</option>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
34 </param>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
35 </inputs>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
36 <outputs>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
37 <data format="json" name="output_json" from_work_dir="output.json" label="${tool.name} on ${on_string} (JSON)">
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
38 <filter>export_to == 'json'</filter>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
39 </data>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
40 <data format="yaml" name="output_yaml" from_work_dir="output.yaml" label="${tool.name} on ${on_string} (YAML)">
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
41 <filter>export_to == 'yaml'</filter>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
42 </data>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
43 </outputs>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
44 <tests>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
45 <test expect_num_outputs="1">
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
46 <param name="input" value="highdicom/ct_image.dcm"/>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
47 <param name="export_to" value="json"/>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
48 <output name="output_json" ftype="json">
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
49 <assert_contents>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
50 <has_json_property_with_value property="00080080" value='{"vr": "LO", "Value": ["JFK IMAGING CENTER"]}'/>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
51 </assert_contents>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
52 </output>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
53 </test>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
54 <test expect_num_outputs="1">
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
55 <param name="input" value="highdicom/sm_image.dcm"/>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
56 <param name="export_to" value="yaml"/>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
57 <output name="output_yaml" ftype="yaml">
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
58 <assert_contents>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
59 <has_text_matching expression="00080104:\n +Value:\n +- Brightfield illumination\n"/>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
60 </assert_contents>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
61 </output>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
62 </test>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
63 </tests>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
64 <help>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
65
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
66 **Exports the metadata of a DICOM dataset as JSON or YAML.**
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
67
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
68 @DICOM_INTRO@
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
69
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
70 </help>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
71 <expand macro="citations"/>
199de6887566 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/highdicom/ commit 3a064f9bbb0eb56d752df40eb467b74da31711ce
imgteam
parents:
diff changeset
72 </tool>