comparison data_manager/data_manager_diamond_database_builder.xml @ 2:5558f74bd296 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_diamond_database_builder commit 75abf7d4b23ed7ae8abce80609d81b20bc882863"
author iuc
date Sun, 21 Mar 2021 12:07:34 +0000
parents 5a0d0bee4f8d
children 431198ad8a09
comparison
equal deleted inserted replaced
1:5a0d0bee4f8d 2:5558f74bd296
1 <tool id="diamond_database_builder" name="Diamond" tool_type="manage_data" version="0.0.2"> 1 <tool id="diamond_database_builder" name="Diamond" tool_type="manage_data" version="0.0.3" profile="19.05">
2 <description> Database builder</description> 2 <description> Database builder</description>
3 <requirements> 3 <requirements>
4 <requirement type="package" version="0.9.29">diamond</requirement> 4 <requirement type="package" version="2.0.8">diamond</requirement>
5 <requirement type="package" version="2.7">python</requirement> 5 <requirement type="package" version="3.7">python</requirement>
6 </requirements> 6 </requirements>
7 <command> 7 <command><![CDATA[
8 python '$__tool_directory__/data_manager_diamond_database_builder.py' '${out_file}' 8 python '$__tool_directory__/data_manager_diamond_database_builder.py' '${out_file}'
9 </command> 9 #if $tax_cond.tax_select == "ncbi"
10 '$tax_cond.ncbi_tax.fields.path'
11 #end if
12 ]]></command>
10 <inputs> 13 <inputs>
11 <param type="text" name="database_name" value="" label="Database name or description" 14 <param type="text" name="database_name" value="" label="Database name or description"
12 help="This will be shown to the user in the database selectbox."/> 15 help="This will be shown to the user in the database selectbox."/>
13 <param type="text" name="database_id" value="" label="Database ID" help="This needs to be unique. No whitespaces allowed. Use underscores." /> 16 <param type="text" name="database_id" value="" label="Database ID" help="This needs to be unique. No whitespaces allowed. Use underscores." />
14 <conditional name="reference_source"> 17 <conditional name="reference_source">
15 <param name="reference_source_selector" type="select" label="Choose the source for the reference genome"> 18 <param name="reference_source_selector" type="select" label="Choose the source for the reference genome">
16 <option value="ncbi">NCBI</option> 19 <option value="ncbi">NCBI</option>
17 <option value="url">URL</option> 20 <option value="url">URL</option>
18 <option value="history" selected="True" help="Recommended to archive the original FASTA file as well.">History</option> 21 <option value="history" selected="true" help="Recommended to archive the original FASTA file as well.">History</option>
19 <option value="directory">Directory on Server</option> 22 <option value="directory">Directory on Server</option>
20 </param> 23 </param>
21 <when value="ncbi"> 24 <when value="ncbi">
22 <param type="text" name="requested_identifier" value="" label="NCBI identifier" help="e.g. nr" optional="False" /> 25 <param type="text" name="requested_identifier" value="" label="NCBI identifier" help="e.g. nr" optional="false" />
23 </when> 26 </when>
24 <when value="url"> 27 <when value="url">
25 <param type="text" area="True" name="user_url" value="http://" label="URLs" optional="False" /> 28 <param type="text" name="user_url" value="http://" label="URLs" optional="false" />
26 </when> 29 </when>
27 <when value="history"> 30 <when value="history">
28 <param name="input_fasta" type="data" format="fasta" label="FASTA File" multiple="False" optional="False" /> 31 <param name="input_fasta" type="data" format="fasta" label="FASTA File" multiple="false" optional="false" />
29 </when> 32 </when>
30 <when value="directory"> 33 <when value="directory">
31 <param type="text" name="fasta_filename" value="" label="Full path to FASTA File on disk" optional="False" /> 34 <param type="text" name="fasta_filename" value="" label="Full path to FASTA File on disk" optional="false" />
32 <param type="boolean" name="create_symlink" truevalue="create_symlink" falsevalue="copy_file" label="Create symlink to orignal data instead of copying" checked="False" /> 35 <param type="boolean" name="create_symlink" truevalue="create_symlink" falsevalue="copy_file" label="Create symlink to orignal data instead of copying" checked="false" />
33 </when> 36 </when>
37 </conditional>
38 <conditional name="tax_cond">
39 <param name="tax_select" type="select" label="Add taxonomic information">
40 <option value="no">Do not add taxonomic information</option>
41 <option value="ncbi">Use cached NCBI taxonomy</option>
42 <option value="history">Use data from history</option>
43 </param>
44 <when value="no"/>
45 <when value="ncbi">
46 <param name="ncbi_tax" type="select" label="Select NCBI taxonomy">
47 <options from_data_table="ncbi_accession2taxid">
48 <filter type="sort_by" column="2"/>
49 <validator type="no_options" message="No taxonomy available"/>
50 </options>
51 </param>
52 </when>
53 <when value="history">
54 <param argument="--taxonmap" type="data" format="tabular" label="protein accession to taxid mapping file" help="" />
55 <param argument="--taxonnodes" type="data" format="tabular" label="taxonomy nodes.dmp from NCBI" help="" />
56 <param argument="--taxonnames" type="data" format="tabular" label="taxonomy names.dmp from NCBI" help="" />
57 </when>
34 </conditional> 58 </conditional>
35 </inputs> 59 </inputs>
36 <outputs> 60 <outputs>
37 <data name="out_file" format="data_manager_json"/> 61 <data name="out_file" format="data_manager_json"/>
38 </outputs> 62 </outputs>
42 <param name="database_id" value="sequence_id"/> 66 <param name="database_id" value="sequence_id"/>
43 <conditional name="reference_source"> 67 <conditional name="reference_source">
44 <param name="reference_source_selector" value="history"/> 68 <param name="reference_source_selector" value="history"/>
45 <param name="input_fasta" value="phiX174.fasta"/> 69 <param name="input_fasta" value="phiX174.fasta"/>
46 </conditional> 70 </conditional>
71 <conditional name="tax_cond">
72 <param name="tax_select" value="history"/>
73 <param name="taxonmap" ftype="tabular" value="taxonomy/prot.accession2taxid" />
74 <param name="taxonnodes" ftype="tabular" value="taxonomy/nodes.dmp" />
75 <param name="taxonnames" ftype="tabular" value="taxonomy/names.dmp" />
76 </conditional>
47 <output name="out_file" value="diamond_data_manager.json"/> 77 <output name="out_file" value="diamond_data_manager.json"/>
78 </test>
79 <test>
80 <param name="database_name" value="pdbaa"/>
81 <param name="database_id" value="pdbaa"/>
82 <conditional name="reference_source">
83 <param name="reference_source_selector" value="ncbi"/>
84 <param name="requested_identifier" value="pdbaa"/>
85 </conditional>
86 <conditional name="tax_cond">
87 <param name="tax_select" value="ncbi"/>
88 <param name="ncbi_tax" value="2021-03-19"/>
89 </conditional>
90 <output name="out_file" value="diamond_data_manager_ncbi.json"/>
48 </test> 91 </test>
49 </tests> 92 </tests>
50 <help> 93 <help>
51 94
52 .. class:: infomark 95 .. class:: infomark
53 96
54 NCBI databases can be downded from ftp://ftp.ncbi.nlm.nih.gov/blast/db/FASTA/ 97 NCBI databases can be downloaded from ftp://ftp.ncbi.nlm.nih.gov/blast/db/FASTA/
55 For example the NR database can be downloaded from ftp://ftp.ncbi.nlm.nih.gov/blast/db/FASTA/nr.gz 98 For example the NR database can be downloaded from ftp://ftp.ncbi.nlm.nih.gov/blast/db/FASTA/nr.gz
56 99
100
101 - taxonmap: Path to mapping file that maps NCBI protein accession numbers to taxon ids (gzip compressed). This parameter is optional and needs to be supplied in order to provide taxonomy features. The file can be downloaded from NCBI: ftp.ncbi.nlm.nih.gov/pub/taxonomy/accession2taxid/prot.accession2taxid.FULL.gz
102
103 - taxonnames: Path to the names.dmp file from the NCBI taxonomy. This parameter is optional and needs to be supplied in order to provide taxonomy features. The file is contained within this archive downloadable at NCBI: ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdmp.zip
104
105 - taxonnodes: Path to the nodes.dmp file from the NCBI taxonomy. This parameter is optional and needs to be supplied in order to provide taxonomy features. The file is contained within this archive downloadable at NCBI: ftp.ncbi.nlm.nih.gov/pub/taxonomy/taxdmp.zip
57 </help> 106 </help>
58 <citations> 107 <citations>
59 <citation type="doi">10.1038/nmeth.3176</citation> 108 <citation type="doi">10.1038/nmeth.3176</citation>
60 </citations> 109 </citations>
61 </tool> 110 </tool>