mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
30 lines
1.2 KiB
XML
30 lines
1.2 KiB
XML
<tool id="tool_provided_metadata_4" name="tool_provided_metadata_4" version="1.0.0">
|
|
<!-- Demonstrate indexing dataset metadata by dataset basename instead of dataset id in galaxy.json for legacy tools (galaxy.json structure changes for profile >= 17.09 tools). -->
|
|
<command><![CDATA[
|
|
echo 'This is a line of text.' > '$out1' &&
|
|
cp '$c1' galaxy.json
|
|
]]></command>
|
|
<configfiles>
|
|
<configfile name="c1">#import os
|
|
{"type": "dataset", "dataset": "${os.path.basename(str($out1))}", "name": "my dynamic name", "ext": "txt", "info": "my dynamic info", "dbkey": "cust1"}</configfile>
|
|
</configfiles>
|
|
<inputs>
|
|
</inputs>
|
|
<outputs>
|
|
<!-- Set format="auto" to read from galaxy.json, use auto_format="true"
|
|
to sniff. -->
|
|
<data name="out1" format="auto" />
|
|
</outputs>
|
|
<tests>
|
|
<test>
|
|
<output name="out1" file="simple_line.txt" ftype="txt">
|
|
<metadata name="name" value="my dynamic name" />
|
|
<metadata name="info" value="my dynamic info" />
|
|
<metadata name="dbkey" value="cust1" />
|
|
</output>
|
|
</test>
|
|
</tests>
|
|
<help>
|
|
</help>
|
|
</tool>
|