comparison data_manager/bowtie_index_builder.xml @ 0:eef68fde2b29 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_bowtie_index_builder commit 5c5d8acf6955dc4f404998ac7929f13363ef2c41
author nate
date Tue, 29 Jul 2025 17:12:20 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:eef68fde2b29
1 <tool id="bowtie_index_builder_data_manager" name="Bowtie 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@">1.3.1</token>
5 <token name="@VERSION_SUFFIX@">1</token>
6 </macros>
7 <requirements>
8 <requirement type="package" version="@WRAPPER_VERSION@">bowtie</requirement>
9 </requirements>
10 <command detect_errors="exit_code"><![CDATA[
11 #set $fasta_file_name = str($all_fasta_source.fields.path).split('/')[-1]
12 mkdir -p '${out_file.extra_files_path}' &&
13 ln -s '${all_fasta_source.fields.path}' '${out_file.extra_files_path}/${fasta_file_name}' &&
14 bowtie-build '${out_file.extra_files_path}/${fasta_file_name}' '${out_file.extra_files_path}/${fasta_file_name}' &&
15 rm '${out_file.extra_files_path}/${fasta_file_name}' &&
16 cp '$dmjson' '$out_file'
17 ]]>
18 </command>
19 <configfiles>
20 <configfile name="dmjson"><![CDATA[#slurp
21 #set $fasta_file_name = str($all_fasta_source.fields.path).split('/')[-1]
22 #set $value = $sequence_id or $all_fasta_source.fields.dbkey
23 #set $name = $sequence_name or $all_fasta_source.fields.name
24 {
25 "data_tables":{
26 "bowtie_indexes":[
27 {
28 "value": "${value}",
29 "dbkey": "${all_fasta_source.fields.dbkey}",
30 "name": "${name}",
31 "path": "${fasta_file_name}"
32 }
33 ]
34 }
35 }
36 ]]></configfile>
37 </configfiles>
38 <inputs>
39 <param name="all_fasta_source" type="select" label="Source FASTA Sequence">
40 <options from_data_table="all_fasta"/>
41 </param>
42 <param name="sequence_name" type="text" value="" label="Name of sequence" help="Leave blank to use all_fasta name" />
43 <param name="sequence_id" type="text" value="" label="ID for sequence" help="Leave blank to use all_fasta id" />
44 </inputs>
45 <outputs>
46 <data name="out_file" format="data_manager_json"/>
47 </outputs>
48 <tests>
49 <test>
50 <param name="all_fasta_source" value="phiX174"/>
51 <output name="out_file" file="bowtie_data_manager.1.json"/>
52 </test>
53 <test>
54 <param name="all_fasta_source" value="phiX174"/>
55 <param name="sequence_name" value="Galeocerdo cuvier"/>
56 <param name="sequence_id" value="tigHai1"/>
57 <output name="out_file" file="bowtie_data_manager.2.json"/>
58 </test>
59 </tests>
60 <help><![CDATA[
61 .. class:: infomark
62
63 **Notice:** If you leave name, description, or id blank, it will be generated automatically.
64 ]]></help>
65 <citations>
66 <citation type="doi">10.1186/gb-2009-10-3-r25</citation>
67 </citations>
68 </tool>