mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
47 lines
2.1 KiB
XML
47 lines
2.1 KiB
XML
<tool id="tool_provided_metadata_3" name="tool_provided_metadata_3" version="1.0.0">
|
|
<!-- Demonstrate setting datatype defined metadata for discovered datasets via galaxy.json for legacy tools (galaxy.json structure changes for profile >= 17.09 tools). -->
|
|
<command><![CDATA[
|
|
echo '1' > sample1.report.tsv &&
|
|
echo '2' > sample2.report.tsv &&
|
|
cp '$c1' galaxy.json
|
|
]]></command>
|
|
<configfiles>
|
|
<configfile name="c1">{"type": "new_primary_dataset", "filename": "sample1.report.tsv", "name": "cool name 1", "ext": "txt", "info": "cool 1 info", "dbkey": "hg19", "metadata": {"data_lines": 10, "foo": "bar"}}
|
|
{"type": "new_primary_dataset", "filename": "sample2.report.tsv", "name": "cool name 2", "ext": "txt", "info": "cool 2 info", "dbkey": "hg19", "metadata": {"data_lines": 20, "foo": "bar"}}
|
|
</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>
|
|
<!-- Datatype defined metadata can be overridden/specified directly.
|
|
-->
|
|
<metadata name="data_lines" value="10" />
|
|
<!-- Non-datatype defined metadata values are ignored by the framework.
|
|
Uncommenting the following test will break this test.
|
|
-->
|
|
<!--
|
|
<metadata name="foo" value="bar" />
|
|
-->
|
|
</discovered_dataset>
|
|
<discovered_dataset designation="sample2" ftype="txt">
|
|
<assert_contents>
|
|
<has_line line="2" />
|
|
</assert_contents>
|
|
<metadata name="data_lines" value="20" />
|
|
</discovered_dataset>
|
|
</output>
|
|
</test>
|
|
</tests>
|
|
</tool>
|