Mercurial > repos > gga > genenotebook_genenotebook_build
comparison genenotebook_build.xml @ 1:f415e44e71de draft
planemo upload for repository https://github.com/galaxy-genome-annotation/galaxy-tools/tree/master/tools/genenotebook commit a04f273adbc0ebb95bf42bf5bad8b41ba7aba91d
author | gga |
---|---|
date | Mon, 03 Apr 2023 15:01:52 +0000 |
parents | 22f22c3e81bf |
children | 5a6050937cb9 |
comparison
equal
deleted
inserted
replaced
0:22f22c3e81bf | 1:f415e44e71de |
---|---|
7 <expand macro="requirements" /> | 7 <expand macro="requirements" /> |
8 <command detect_errors="aggressive"><![CDATA[ | 8 <command detect_errors="aggressive"><![CDATA[ |
9 @START_GNB@ | 9 @START_GNB@ |
10 | 10 |
11 #for genome in $genomes: | 11 #for genome in $genomes: |
12 genenotebook add genome @CONNECT_INFO@ --name '${genome.name}' '${genome.genome}'; | 12 genoboo add genome @CONNECT_INFO@ --name '${genome.name}' ${genome.public} '${genome.genome}'; |
13 | 13 |
14 #for annot in $genome.annots: | 14 #for annot in $genome.annots: |
15 genenotebook add annotation @CONNECT_INFO@ --genome-name '${genome.name}' '${annot.annotation}'; | 15 genoboo add annotation @CONNECT_INFO@ --name '${genome.name}' |
16 #if $annot.prot_naming.method == 'regex' | |
17 #if $annot.prot_naming.re_protein: | |
18 --re_protein '$annot.prot_naming.re_protein' | |
19 #end if | |
20 #if $annot.prot_naming.re_protein_capture: | |
21 --re_protein_capture '$annot.prot_naming.re_protein_capture' | |
22 #end if | |
23 #elif $annot.prot_naming.method == "attr" | |
24 #if $annot.prot_naming.protein_id_attr: | |
25 --attr_protein '$annot.prot_naming.attr_protein' | |
26 #end if | |
27 #end if | |
28 '${annot.annotation}'; | |
16 #if $annot.interproscan: | 29 #if $annot.interproscan: |
17 genenotebook add interproscan @CONNECT_INFO@ --format | 30 genoboo add interproscan @CONNECT_INFO@ --format |
18 #if $annot.interproscan.is_of_type('gff3'): | 31 #if $annot.interproscan.is_of_type('gff3'): |
19 gff3 | 32 gff3 |
20 #else: | 33 #else: |
21 tsv | 34 tsv |
22 #end if | 35 #end if |
23 '${annot.interproscan}'; | 36 '${annot.interproscan}'; |
24 #end if | 37 #end if |
25 | 38 |
26 #if $annot.eggnog: | 39 #if $annot.eggnog: |
27 genenotebook add eggnog @CONNECT_INFO@ '${annot.eggnog}'; | 40 genoboo add eggnog @CONNECT_INFO@ '${annot.eggnog}'; |
28 #end if | 41 #end if |
42 | |
43 #if $annot.blast_cond.blast_choice == "yes": | |
44 genoboo add blast @CONNECT_INFO@ | |
45 --format 'xml' | |
46 --algorithm '${annot.blast_cond.algorithm}' | |
47 --matrix '${annot.blast_cond.matrix}' | |
48 --database '${annot.blast_cond.database}' | |
49 '${annot.blast_cond.blast}'; | |
50 #end if | |
51 | |
52 #for exp in $annot.expression: | |
53 genoboo add transcriptome @CONNECT_INFO@ | |
54 --sample-name '${exp.sample_name}' | |
55 --replica-group '${exp.replica_group}' | |
56 --sample-description '${exp.sample_description}' | |
57 '${exp.counts}'; | |
58 #end for | |
29 #end for | 59 #end for |
30 #end for | 60 #end for |
31 | 61 |
32 @ZIP_GNB@ | 62 @ZIP_GNB@ |
33 ]]></command> | 63 ]]></command> |
34 <inputs> | 64 <inputs> |
35 <param name="existing" type="data" format="genenotebook" optional="true" label="Load data in an existing GeneNoteBook database" help="Leave empty to start a new database from scratch" /> | 65 <param name="existing" type="data" format="genenotebook" optional="true" label="Load data in an existing GeneNoteBook database" help="Leave empty to start a new database from scratch" /> |
36 <repeat name="genomes" title="Genomes"> | 66 <repeat name="genomes" title="Genomes"> |
37 <param argument="--name" label="Name" type="text" help="Reference genome name" /> | 67 <param argument="--name" label="Name" type="text" help="Reference genome name" /> |
38 <param name="genome" label="Genome sequence" type="data" format="fasta" /> | 68 <param name="genome" label="Genome sequence" type="data" format="fasta" /> |
69 <param name="public" label="Public access" type="boolean" truevalue="--public" falsevalue="" value="false" /> | |
39 <repeat name="annots" title="Annotations"> | 70 <repeat name="annots" title="Annotations"> |
40 <param name="annotation" label="Annotation" type="data" format="gff3" /> | 71 <param name="annotation" label="Annotation" type="data" format="gff3" /> |
72 <conditional name="prot_naming"> | |
73 <param name="method" type="select" label="Protein naming method"> | |
74 <option value="none">No specific names for proteins</option> | |
75 <option value="regex">Based on mRNA name with regular expression</option> | |
76 <option value="attr">From GFF attribute</option> | |
77 </param> | |
78 <when value="none" /> | |
79 <when value="regex"> | |
80 <param argument="--re_protein_capture" label="Regex protein capture" type="text" help="Regular expression to capture groups in mRNA name to use in 'Regex protein'" value="^(.*?)-R([A-Z]+)$"> | |
81 <expand macro="sanitized"/> | |
82 </param> | |
83 <param argument="--re_protein" label="Regex protein" type="text" help="Replacement string for the protein name using capturing groups defined in 'Regex protein capture'" value="$1-P$2"> | |
84 <expand macro="sanitized"/> | |
85 </param> | |
86 </when> | |
87 <when value="attr"> | |
88 <param argument="--attr_protein" label="Protein id attribute" type="text" help="Attribute containing the protein uniquename. It is searched at the mRNA level, and if not found at CDS level." value="protein_id"/> | |
89 </when> | |
90 </conditional> | |
41 <param name="interproscan" label="InterProScan results" optional="true" type="data" format="tsv,gff3" /> | 91 <param name="interproscan" label="InterProScan results" optional="true" type="data" format="tsv,gff3" /> |
42 <param name="eggnog" label="EggNOG-Mapper results" optional="true" type="data" format="tsv" /> | 92 <param name="eggnog" label="EggNOG-Mapper results" optional="true" type="data" format="tsv" /> |
93 | |
94 <conditional name="blast_cond"> | |
95 <param name="blast_choice" type="select" label="Import Blast or Diamond results"> | |
96 <option value="no" selected="true">No</option> | |
97 <option value="yes">Yes</option> | |
98 </param> | |
99 <when value="no" /> | |
100 <when value="yes"> | |
101 <param name="blast" label="Blast or Diamond results" optional="false" type="data" format="xml" /> | |
102 <param argument="--algorithm" label="Algorithm" optional="false" type="text" help="e.g. blastx, blastp" /> | |
103 <param argument="--matrix" label="Matrix" optional="false" type="text" help="e.g. BLOSUM90, BLOSUM80, PAM100" /> | |
104 <param argument="--database" label="database" optional="false" type="text" help="e.g. Non-reundant protein sequences (nr)" /> | |
105 </when> | |
106 </conditional> | |
107 | |
108 <repeat name="expression" title="Expression data"> | |
109 <param name="counts" label="Expression data" optional="true" type="data" format="tsv" /> | |
110 <param argument="--sample-name" name="sample_name" label="Unique sample name" type="text" /> | |
111 <param argument="--replica-group" name="replica_group" label="Identifier to group samples that belong to the same experiment" type="text" /> | |
112 <param argument="--sample-description" name="sample_description" label="Description of the experiment" type="text" /> | |
113 </repeat> | |
43 </repeat> | 114 </repeat> |
44 </repeat> | 115 </repeat> |
45 </inputs> | 116 </inputs> |
46 <outputs> | 117 <outputs> |
47 <data format="genenotebook" name="gnb_db" label="GeneNoteBook on ${on_string}"/> | 118 <data format="genenotebook" name="gnb_db" label="GeneNoteBook on ${on_string}"/> |
57 <has_text text="addGenome succesfully inserted 1 elements" /> | 128 <has_text text="addGenome succesfully inserted 1 elements" /> |
58 </assert_stdout> | 129 </assert_stdout> |
59 </test> | 130 </test> |
60 <test> | 131 <test> |
61 <repeat name="genomes"> | 132 <repeat name="genomes"> |
133 <param name="name" value="Test org" /> | |
134 <param name="public" value="true" /> | |
135 <param name="genome" value="genome.fa" /> | |
136 </repeat> | |
137 <output name="gnb_db" file="output/genome.tar.bz2" compare="sim_size" /> | |
138 <assert_stdout> | |
139 <has_text text="addGenome succesfully inserted 1 elements" /> | |
140 </assert_stdout> | |
141 </test> | |
142 <test> | |
143 <repeat name="genomes"> | |
62 <param name="name" value="Test org 2" /> | 144 <param name="name" value="Test org 2" /> |
63 <param name="genome" value="genome.fa" /> | 145 <param name="genome" value="genome.fa" /> |
64 <repeat name="annots"> | 146 <repeat name="annots"> |
65 <param name="annotation" value="annot.gff" /> | 147 <param name="annotation" value="annot.gff" /> |
66 </repeat> | 148 </repeat> |
67 </repeat> | 149 </repeat> |
68 <output name="gnb_db" file="output/genome_annot.tar.bz2" compare="sim_size" /> | 150 <output name="gnb_db" file="output/genome_annot.tar.bz2" compare="sim_size" /> |
69 <assert_stdout> | 151 <assert_stdout> |
70 <has_text text="addGenome succesfully inserted 1 elements" /> | 152 <has_text text="addGenome succesfully inserted 1 elements" /> |
71 <has_text text="addAnnotationTrack succesfully inserted 5 elements" /> | 153 <has_text text="addAnnotation succesfully inserted 5 elements" /> |
72 </assert_stdout> | 154 </assert_stdout> |
73 </test> | 155 </test> |
74 <test> | 156 <test> |
75 <repeat name="genomes"> | 157 <repeat name="genomes"> |
76 <param name="name" value="Test org 2" /> | 158 <param name="name" value="Test org 2" /> |
81 </repeat> | 163 </repeat> |
82 </repeat> | 164 </repeat> |
83 <output name="gnb_db" file="output/genome_annot_ips.tar.bz2" compare="sim_size" /> | 165 <output name="gnb_db" file="output/genome_annot_ips.tar.bz2" compare="sim_size" /> |
84 <assert_stdout> | 166 <assert_stdout> |
85 <has_text text="addGenome succesfully inserted 1 elements" /> | 167 <has_text text="addGenome succesfully inserted 1 elements" /> |
86 <has_text text="addAnnotationTrack succesfully inserted 5 elements" /> | 168 <has_text text="addAnnotation succesfully inserted 5 elements" /> |
87 <has_text text="addInterproscan succesfully inserted 5 elements" /> | 169 <has_text text="addInterproscan succesfully inserted 5 elements" /> |
88 </assert_stdout> | 170 </assert_stdout> |
89 </test> | 171 </test> |
90 <test> | 172 <test> |
91 <param name="existing" value="output/genome.tar.bz2" /> | 173 <param name="existing" value="output/genome.tar.bz2" /> |
109 </repeat> | 191 </repeat> |
110 </repeat> | 192 </repeat> |
111 <output name="gnb_db" file="output/genome_annot_ips_en.tar.bz2" compare="sim_size" delta="15000" /> | 193 <output name="gnb_db" file="output/genome_annot_ips_en.tar.bz2" compare="sim_size" delta="15000" /> |
112 <assert_stdout> | 194 <assert_stdout> |
113 <has_text text="addGenome succesfully inserted 1 elements" /> | 195 <has_text text="addGenome succesfully inserted 1 elements" /> |
114 <has_text text="addAnnotationTrack succesfully inserted 5 elements" /> | 196 <has_text text="addAnnotation succesfully inserted 5 elements" /> |
115 <has_text text="addInterproscan succesfully inserted 5 elements" /> | 197 <has_text text="addInterproscan succesfully inserted 5 elements" /> |
116 <has_text text="addEggnog succesfully inserted undefined elements" /> | 198 <has_text text="addEggnog succesfully inserted 4 elements" /> |
199 </assert_stdout> | |
200 </test> | |
201 <test> | |
202 <repeat name="genomes"> | |
203 <param name="name" value="Test org 2" /> | |
204 <param name="genome" value="genome.fa" /> | |
205 <repeat name="annots"> | |
206 <param name="annotation" value="annot.gff" /> | |
207 | |
208 <conditional name="prot_naming"> | |
209 <param name="method" value="regex"/> | |
210 <param name="re_protein_capture" value="^(.*?)-T([0-9]+)$" /> | |
211 <param name="re_protein" value="$1-P$2" /> | |
212 </conditional> | |
213 | |
214 <conditional name="blast_cond"> | |
215 <param name="blast_choice" value="yes"/> | |
216 <param name="blast" value="blast.xml" ftype="xml" /> | |
217 <param name="algorithm" value="blastx" /> | |
218 <param name="matrix" value="BLOSUM80" /> | |
219 <param name="database" value="Non-reundant garbage (nrg)" /> | |
220 </conditional> | |
221 | |
222 <repeat name="expression"> | |
223 <param name="counts" value="exp.tsv" ftype="tsv" /> | |
224 <param name="sample_name" value="Sample1_rep1" /> | |
225 <param name="replica_group" value="Sample1" /> | |
226 <param name="sample_description" value="Pointless experiment" /> | |
227 </repeat> | |
228 </repeat> | |
229 </repeat> | |
230 <output name="gnb_db" file="output/genome_annot_ips_en_bl_exp.tar.bz2" compare="sim_size" delta="15000" /> | |
231 <assert_stdout> | |
232 <has_text text="addGenome succesfully inserted 1 elements" /> | |
233 <has_text text="addAnnotation succesfully inserted 5 elements" /> | |
234 <has_text text="addSimilarSequence succesfully inserted 1 elements" /> | |
235 <has_text text="addTranscriptome succesfully inserted 1 elements" /> | |
117 </assert_stdout> | 236 </assert_stdout> |
118 </test> | 237 </test> |
119 </tests> | 238 </tests> |
120 <help><![CDATA[ | 239 <help><![CDATA[ |
121 Build a GeneNoteBook by loading data into a MongoDB database. The resulting dataset can then be displayed with the "View a GeneNoteBook" interactive tool (to be written). | 240 Build a GeneNoteBook by loading data into a MongoDB database. The resulting dataset can then be displayed with the "View a GeneNoteBook" interactive tool (to be written). |
122 | 241 |
123 The resulting GeneNoteBook will contain the default user accounts created on the first launch. You are responsible to change them if you ever want to put your result online. | 242 The resulting GeneNoteBook will contain the default user accounts created on the first launch. You are responsible to change them if you ever want to put your result online. |
243 | |
244 The current version is based on a forked version of GeneNoteBook including several various improvements (https://github.com/gogepp/genoboo/). | |
124 ]]></help> | 245 ]]></help> |
125 <expand macro="citation" /> | 246 <expand macro="citation" /> |
126 </tool> | 247 </tool> |