Mercurial > repos > gga > chado_feature_load_fasta
comparison feature_load_fasta.xml @ 0:65d8d92aa0b5 draft
planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/chado commit 81a83f06b49db32928ba0cd44e5b6d0431868d27
author | gga |
---|---|
date | Thu, 21 Jun 2018 08:41:33 -0400 |
parents | |
children | 48cad01fd762 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:65d8d92aa0b5 |
---|---|
1 <?xml version="1.0"?> | |
2 <tool id="feature_load_fasta" name="Chado load fasta" version="@WRAPPER_VERSION@.0"> | |
3 <description></description> | |
4 <macros> | |
5 <import>macros.xml</import> | |
6 </macros> | |
7 <expand macro="requirements"/> | |
8 <code file="chado.py"/> | |
9 <command detect_errors="aggressive"><![CDATA[ | |
10 @AUTH@ | |
11 | |
12 chakin feature load_fasta | |
13 '$fasta' | |
14 '$organism' | |
15 | |
16 #if $sequence_type: | |
17 --sequence_type '$sequence_type' | |
18 #end if | |
19 #if $analysis_id: | |
20 --analysis_id '$analysis_id' | |
21 #end if | |
22 #if $re_name: | |
23 --re_name '$re_name' | |
24 #end if | |
25 #if $re_uniquename: | |
26 --re_uniquename '$re_uniquename' | |
27 #end if | |
28 #if $match_on_name: | |
29 $match_on_name | |
30 #end if | |
31 #if $update: | |
32 $update | |
33 #end if | |
34 #if $ext_db.db: | |
35 --db '${ext_db.db}' | |
36 #end if | |
37 #if $ext_db.re_db_accession: | |
38 --re_db_accession '${ext_db.re_db_accession}' | |
39 #end if | |
40 | |
41 #if str($relationships.rel_type) != "none": | |
42 --rel_type '${relationships.rel_type}' | |
43 --re_parent '${relationships.rel_subject_re}' | |
44 --parent_type '${relationships.rel_subject_type}' | |
45 #end if | |
46 | |
47 | jq -S . > $results | |
48 ]]></command> | |
49 <inputs> | |
50 <!-- arguments --> | |
51 <param name="fasta" label="Fasta" argument="fasta" type="data" format="fasta" help="Path to the Fasta file to load" /> | |
52 <param argument="--organism" | |
53 type="select" | |
54 dynamic_options="list_organisms()" | |
55 label="Organism" /> | |
56 | |
57 <!-- options --> | |
58 <param argument="--analysis_id" | |
59 type="select" | |
60 dynamic_options="list_analyses()" | |
61 label="Analysis" /> | |
62 <param name="sequence_type" label="Sequence Type" type="text" value="contig" help="this should be a Sequence Ontology term"/> | |
63 | |
64 <param name="re_name" label="Name regular expression" argument="re_name" type="text" help="Regular expression to extract the feature name from the fasta sequence id (first capturing group will be used)." optional="true" /> | |
65 <param name="re_uniquename" label="Uniquename regular expression" argument="re_uniquename" type="text" help="Regular expression to extract the feature name from the fasta sequence id (first capturing group will be used)." optional="true" /> | |
66 <param name="match_on_name" label="Match on name" argument="match_on_name" type="boolean" truevalue="--match_on_name" falsevalue="" help="Match existing features using their name instead of their uniquename" /> | |
67 <param name="update" label="Update" argument="update" type="boolean" truevalue="--update" falsevalue="" help="Update existing feature with new sequence instead of throwing an error" /> | |
68 <conditional name="relationships"> | |
69 <param name="rel_type" | |
70 argument="--rel_type" | |
71 type="select" | |
72 label="Relationship type" | |
73 help="Use this when inserting features that should be associated to other already existing features"> | |
74 <option value="none" selected="true">No relationship</option> | |
75 <option value="part_of">Part of (for CDS sequences)</option> | |
76 <option value="derives_from">Derives from (for peptide sequences)</option> | |
77 </param> | |
78 <when value="none"/> | |
79 <when value="part_of"> | |
80 <expand macro="feature_rel" /> | |
81 </when> | |
82 <when value="derives_from"> | |
83 <expand macro="feature_rel" /> | |
84 </when> | |
85 </conditional> | |
86 <section name="ext_db" title="Cross references to external database"> | |
87 <param name="db" label="Db" argument="db" type="integer" help="External database to cross reference to." optional="true" /><!-- FIXME get this from db --> | |
88 <param name="re_db_accession" label="Regex external db accession" argument="re_db_accession" type="text" help="Regular expression to extract an external database accession from the fasta sequence id (first capturing group will be used)." optional="true" /> | |
89 </section> | |
90 <expand macro="wait_for"/> | |
91 </inputs> | |
92 <outputs> | |
93 <data format="json" name="results"/> | |
94 </outputs> | |
95 <help> | |
96 Load features from a fasta file | |
97 | |
98 @HELP@ | |
99 </help> | |
100 </tool> |