0
|
1 <tool id="extract_archive_merge" name="Decompress an archive" version="1.0.0" force_history_refresh="True" >
|
|
2 <description>in zip, gz, tar.gz, fastq.gz, fastq.bz2 or tar.bz2 format</description>
|
|
3 <command interpreter="python">
|
|
4
|
|
5 extract_archive_and_merge.py $input_archive "$input_archive.display_name" $log $log.id $__new_file_path__ $options_merge.merge
|
|
6 #if str( $options_merge.merge ) == 'true'
|
|
7 ${options_merge.rm_header}
|
|
8 $concat
|
|
9 #end if
|
|
10
|
|
11 </command>
|
|
12 <inputs>
|
|
13 <param name="input_archive" type="data" format="zip,tar.gz,tar.bz2,fastq.gz,fastq.bz2" label="Archive name" help="Accepts zip, tar.gz and tar.bz2" />
|
|
14 <conditional name="options_merge">
|
|
15 <param name="merge" type="select" format="text" label="Merges all files into one">
|
|
16 <option value="false">No</option>
|
|
17 <option value="true">Yes</option>
|
|
18 </param>
|
|
19 <when value="false">
|
|
20 </when>
|
|
21 <when value="true">
|
|
22 <param name="rm_header" type="integer" value="0" label="Header lines to delete" help="number of lines to delete at the beginning of each file"/>
|
|
23 </when>
|
|
24 </conditional>
|
|
25 </inputs>
|
|
26 <outputs>
|
|
27 <data format="txt" name="log" label="decompress_an_archive.log" />
|
|
28 <data format="txt" name="additional" label="additional file with ${tool.name}" hidden="true">
|
|
29 <discover_datasets pattern="__designation_and_ext__" directory="decompress_files" visible="true" />
|
|
30 </data>
|
|
31
|
|
32 <data format="txt" name="concat" label="merge_file">
|
|
33 <filter>(options_merge['merge'] == 'true')</filter>
|
|
34 </data>
|
|
35 </outputs>
|
|
36 <help>
|
|
37 **Tool documentation**
|
|
38
|
|
39 This tool simply decompresses an archive file (zip, gz, tar.gz, fastq.gz, fastq.bz2 or tar.bz2) and merges all files into only one.
|
|
40 If the merge option is enabled, you can delete as many header lines as you need.
|
|
41
|
|
42 WARNING : the filename should not have special characters (space, brackets, ...), please rename it!!!
|
|
43
|
|
44 --------
|
|
45
|
|
46 **Created and integrated by:**
|
|
47
|
|
48 Cyril Monjeaud
|
|
49
|
|
50 GenOuest Bio-informatics Core Facility
|
|
51
|
|
52 UMR 6074 IRISA INRIA-CNRS-UR1 Rennes (France)
|
|
53
|
|
54 support@genouest.org
|
|
55
|
|
56 If you use this tool in Galaxy, please cite :
|
|
57
|
|
58 `Y. Le Bras, A. Roult, C. Monjeaud, M. Bahin, O. Quenez, C. Heriveau, A. Bretaudeau, O. Sallou, O. Collin, Towards a Life Sciences Virtual Research Environment : an e-Science initiative in Western France. JOBIM 2013. <https://www.e-biogenouest.org/resources/128>`_
|
|
59 </help>
|
|
60 </tool>
|