comparison data_manager/fetch_refseq.xml @ 19:d118e256faca draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/data_managers/data_manager_fetch_refseq commit 120c6491f4b0888220e432693a9805d8198d7397"
author sanbi-uwc
date Thu, 16 Apr 2020 10:19:57 +0000
parents 75c1817c2ecf
children
comparison
equal deleted inserted replaced
18:75c1817c2ecf 19:d118e256faca
1 <tool id="data_manager_fetch_refseq" name="RefSeq data manager" version="0.0.19" tool_type="manage_data">
2 <description>Fetch FASTA data from NCBI RefSeq and update all_fasta data table</description>
3 <requirements>
4 <requirement type="package" version="3">python</requirement>
5 </requirements>
6 <command detect_errors="aggressive"><![CDATA[
7 python3 $__tool_directory__/fetch_refseq.py
8 #if str( $advanced.advanced_selector ) == 'advanced':
9 '${advanced.compress}'
10 #end if
11 --galaxy_datamanager_filename '${output_file}'
12 --division_names ${division_names}
13 --mol_types ${mol_types}
14 #if str( $pin_date ) != 'NO':
15 --pin_date '${pin_date}'
16 #end if
17 ]]></command>
18 <inputs>
19 <param argument="division_names" type="select" label="RefSeq division" multiple="true">
20 <option value="archea">Archea</option>
21 <option value="bacteria">Bacteria</option>
22 <option value="complete">Complete</option>
23 <option value="fungi">Fungi</option>
24 <option value="invertebrate">Invertebrate</option>
25 <option value="mitochondrion">Mitochondrion</option>
26 <option value="other">Other</option>
27 <option value="plant">Plant</option>
28 <option value="plasmid">Plasmid</option>
29 <option value="plastid">Plastid</option>
30 <option value="protozoa">Protozoa</option>
31 <option value="vertebrate_mammalian">Mammalian Vertebrate</option>
32 <option value="vertebrate_other">Other Vertebrate</option>
33 <option value="viral">Viral</option>
34 </param>
35 <param argument="mol_types" type="select" multiple="true" label="Molecule type" help="Select at least one of genomic, protein or rna sequence">
36 <option value="protein">Protein</option>
37 <option value="genomic">Genomic (DNA)</option>
38 <option value="rna">RNA</option>
39 </param>
40 <conditional name="advanced">
41 <param name="advanced_selector" type="select" label="Advanced Options">
42 <option value="basic" selected="True">Basic</option>
43 <option value="advanced">Advanced</option>
44 </param>
45 <when value="basic">
46 </when>
47 <when value="advanced">
48 <param type="boolean" argument="--compress" truevalue="--compress" falsevalue="" label="Compress FASTA files"
49 help="Compress downloaded FASTA files (with gzip). Limits compatibility with tools expecting uncompressed FASTA."/>
50 </when>
51 </conditional>
52 <param argument="--pin_date" type="hidden" value="NO" help="Used for testing"/>
53 </inputs>
54 <outputs>
55 <data name="output_file" format="data_manager_json"/>
56 </outputs>
57 <tests>
58 <test>
59 <param name="division_names" value="plastid"/>
60 <param name="mol_types" value="protein"/>
61 <param name="pin_date" value="2018-03-14"/>
62 <param name="advanced_selector" value="basic"/>
63 <output name="output_file">
64 <assert_contents>
65 <has_text text="2018-03-14"/>
66 <has_text text="refseq_plastid"/>
67 <has_text text="/refseq_plastid."/>
68 </assert_contents>
69 </output>
70 </test>
71 </tests>
72 <help><![CDATA[
73 This data manager fetches FASTA format collections of proteins, nucleotides (genomic DNA) and RNA
74 from NCBI's RefSeq_ data collection.
75
76 RefSeq is released every two months and consists of a number of divisions. Some sequences are shared
77 between multiple divisions. This data manager allows the Galaxy administrator to select which
78 divisions and which molecule types within each division to download. Once downloaded the
79 files are made accessible by adding an entry into the *all_fasta* data table.
80
81 .. _RefSeq: https://www.ncbi.nlm.nih.gov/refseq/
82 ]]>
83 </help>
84 <citations>
85 <citation type="doi">10.1093/nar/gkv1189</citation>
86 </citations>
87 </tool>