-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17614 from wm75/archive-to-dir-converter
Improve usability of Directory datatype
- Loading branch information
Showing
5 changed files
with
140 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<tool id="CONVERTER_archive_to_directory" name="Unpack archive to directory" version="1.0.0" profile="21.09"> | ||
<!-- Use compression_utils instead of shell commands (tar/unzip) so we can verify safety of results --> | ||
<requirements> | ||
<requirement type="package" version="23.2.1">galaxy-util</requirement> | ||
</requirements> | ||
<command><![CDATA[ | ||
mkdir '$output1.files_path' && | ||
cd '$output1.files_path' && | ||
python -c "from galaxy.util.compression_utils import CompressedFile; CompressedFile('$input1').extract('.')" | ||
]]></command> | ||
<configfiles> | ||
<configfile filename="metadata_json"><![CDATA[{ | ||
"output1": { | ||
"name": "$input1.name unpacked to $__target_datatype__", | ||
"ext": "$__target_datatype__" | ||
} | ||
}]]></configfile> | ||
</configfiles> | ||
<inputs> | ||
<param format="tar,zip" name="input1" type="data"/> | ||
<param name="__target_datatype__" type="select" label="Target data type"> | ||
<option value="directory">directory</option> | ||
</param> | ||
</inputs> | ||
<outputs provided_metadata_file="metadata_json"> | ||
<data format="auto" name="output1"/> | ||
</outputs> | ||
<tests> | ||
<test> | ||
<param name="input1" ftype="tar" value="testdir1.tar"/> | ||
<param name="__target_datatype__" value="directory"/> | ||
<output name="output1" ftype="directory" value="testdir1.tar.directory"/> | ||
</test> | ||
</tests> | ||
<help> | ||
</help> | ||
</tool> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters