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