mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 12:13:33 +08:00
39 lines
1.4 KiB
XML
39 lines
1.4 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><![CDATA[
|
|
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>
|
|
</inputs>
|
|
<outputs>
|
|
<data name="sample">
|
|
<discover_datasets pattern="(?P<designation>.+)\.report\.tsv" visible="true" />
|
|
</data>
|
|
</outputs>
|
|
<tests>
|
|
<test>
|
|
<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>
|