comparison data_manager/bowtie2_index_builder.xml @ 0:6220ea344019 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_bowtie2_index_builder commit 5c5d8acf6955dc4f404998ac7929f13363ef2c41
author nate
date Tue, 29 Jul 2025 17:13:06 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:6220ea344019
1 <tool id="bowtie2_index_builder_data_manager" name="Bowtie2 index" tool_type="manage_data" version="@WRAPPER_VERSION@+galaxy@VERSION_SUFFIX@" profile="23.0">
2 <description>builder</description>
3 <macros>
4 <token name="@WRAPPER_VERSION@">2.5.4</token>
5 <token name="@VERSION_SUFFIX@">1</token>
6 </macros>
7 <requirements>
8 <requirement type="package" version="@WRAPPER_VERSION@">bowtie2</requirement>
9 </requirements>
10 <command detect_errors="exit_code"><![CDATA[
11 #set $value = $sequence_id or $all_fasta_source.fields.dbkey
12 #set $fasta_file_name = str($all_fasta_source.fields.path).split('/')[-1]
13 mkdir -p '${out_file.extra_files_path}' &&
14 ln -s '${all_fasta_source.fields.path}' '${out_file.extra_files_path}/${fasta_file_name}' &&
15 cd '${out_file.extra_files_path}' &&
16 bowtie2-build --threads \${GALAXY_SLOTS:-1} '${out_file.extra_files_path}/${fasta_file_name}' '${value}' &&
17 rm '${out_file.extra_files_path}/${fasta_file_name}' &&
18 cp '$dmjson' '$out_file'
19 ]]></command>
20 <configfiles>
21 <configfile name="dmjson"><![CDATA[#slurp
22 #set $fasta_file_name = str($all_fasta_source.fields.path).split('/')[-1]
23 #set $value = $sequence_id or $all_fasta_source.fields.dbkey
24 #set $name = $sequence_name or $all_fasta_source.fields.name
25 {
26 "data_tables":{
27 "bowtie2_indexes":[
28 {
29 "value": "${value}",
30 "dbkey": "${all_fasta_source.fields.dbkey}",
31 "name": "${name}",
32 "path": "${value}"
33 }
34 #if $tophat2:
35 ],
36 "tophat2_indexes":[
37 {
38 "value": "${value}",
39 "dbkey": "${all_fasta_source.fields.dbkey}",
40 "name": "${name}",
41 "path": "${value}"
42 }
43 #end if
44 ]
45 }
46 }
47 ]]></configfile>
48 </configfiles>
49 <inputs>
50 <param name="all_fasta_source" type="select" label="Source FASTA Sequence">
51 <options from_data_table="all_fasta"/>
52 </param>
53 <param name="sequence_name" type="text" value="" label="Name of sequence" />
54 <param name="sequence_id" type="text" value="" label="ID for sequence" />
55 <param name="tophat2" type="boolean" checked="True" label="Also make available for TopHat" help="Adds values to tophat2_indexes tool data table" />
56 </inputs>
57 <outputs>
58 <data name="out_file" format="data_manager_json"/>
59 </outputs>
60 <tests>
61 <test>
62 <param name="all_fasta_source" value="phiX174"/>
63 <output name="out_file" value="bowtie2_data_manager.1.json"/>
64 </test>
65 <test>
66 <param name="all_fasta_source" value="phiX174"/>
67 <param name="sequence_name" value="Galeocerdo cuvier"/>
68 <param name="sequence_id" value="tigHai1"/>
69 <param name="tophat2" value="False"/>
70 <output name="out_file" file="bowtie2_data_manager.2.json"/>
71 </test>
72 </tests>
73
74 <help>
75 .. class:: infomark
76
77 **Notice:** If you leave name, description, or id blank, it will be generated automatically.
78 </help>
79 </tool>