mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
39 lines
1.3 KiB
XML
39 lines
1.3 KiB
XML
<tool id="tool_provided_metadata_10" name="tool_provided_metadata_10" profile="17.09" version="1.0.0">
|
|
<!-- Demonstrate setting datatype defined metadata for discovered datasets via galaxy.json for
|
|
profile >= 17.09 tools (see tool_provided_metadata_3 for legacy version of this test). -->
|
|
<command>
|
|
echo "1" > sample1.report.tsv;
|
|
cp $c1 galaxy.json;
|
|
</command>
|
|
<configfiles>
|
|
<configfile name="c1">{"sample": {
|
|
"datasets": [
|
|
{"filename": "sample1.report.tsv", "name": "cool name 1", "ext": "txt", "info": "cool 1 info", "dbkey": "hg19", "metadata": {"data_lines": 10}}
|
|
]
|
|
}}
|
|
</configfile>
|
|
</configfiles>
|
|
<inputs>
|
|
<param name="input" type="data" />
|
|
</inputs>
|
|
<outputs>
|
|
<data name="sample">
|
|
<discover_datasets pattern="(?P<designation>.+)\.report\.tsv" visible="true" />
|
|
</data>
|
|
</outputs>
|
|
<tests>
|
|
<test>
|
|
<param name="input" ftype="txt" value="simple_line.txt"/>
|
|
<output name="sample">
|
|
<discovered_dataset designation="sample1" ftype="txt">
|
|
<assert_contents><has_line line="1" /></assert_contents>
|
|
<metadata name="name" value="cool name 1" />
|
|
<metadata name="dbkey" value="hg19" />
|
|
<metadata name="info" value="cool 1 info" />
|
|
<metadata name="data_lines" value="10" />
|
|
</discovered_dataset>
|
|
</output>
|
|
</test>
|
|
</tests>
|
|
</tool>
|