mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
46 lines
1.9 KiB
XML
46 lines
1.9 KiB
XML
<tool id="tool_provided_metadata_11" name="tool_provided_metadata_11" version="1.0.0">
|
|
<!-- Demonstrate setting simple dataset metadata for discovered datasets via galaxy.json for legacy tools (galaxy.json structure changes for profile >= 17.09 tools). -->
|
|
<command><![CDATA[
|
|
mkdir sample1data &&
|
|
echo '1' > sample1.report.tsv &&
|
|
echo 'foo line' > sample1data/foo &&
|
|
echo 'moo cow bar' > sample1data/bar &&
|
|
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", "extra_files": "sample1data"}
|
|
</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" />
|
|
<extra_files type="file" name="foo">
|
|
<assert_contents>
|
|
<has_line line="foo line" />
|
|
</assert_contents>
|
|
</extra_files>
|
|
<extra_files type="file" name="bar">
|
|
<assert_contents>
|
|
<has_line line="moo cow bar" />
|
|
</assert_contents>
|
|
</extra_files>
|
|
</discovered_dataset>
|
|
</output>
|
|
</test>
|
|
</tests>
|
|
</tool>
|