annotate cpt_trnascanse_to_gff/macros.xml @ 0:b4134ad44443 draft

Uploaded
author cpt
date Fri, 13 May 2022 18:03:32 +0000
parents
children 7bf46fd8d62e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
b4134ad44443 Uploaded
cpt
parents:
diff changeset
1 <?xml version="1.0"?>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
2 <macros>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
3 <xml name="requirements">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
4 <requirements>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
5 <requirement type="package" version="3.7">python</requirement>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
6 <requirement type="package" version="1.77">biopython</requirement>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
7 <requirement type="package" version="1.1.3">cpt_gffparser</requirement>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
8 <yield/>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
9 </requirements>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
10 </xml>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
11 <xml name="genome_selector">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
12 <conditional name="reference_genome">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
13 <param name="reference_genome_source" type="select" label="Reference Genome">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
14 <option value="history" selected="True">From History</option>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
15 <option value="cached">Locally Cached</option>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
16 </param>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
17 <when value="cached">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
18 <param name="fasta_indexes" type="select" label="Source FASTA Sequence">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
19 <options from_data_table="all_fasta"/>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
20 </param>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
21 </when>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
22 <when value="history">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
23 <param name="genome_fasta" type="data" format="fasta" label="Source FASTA Sequence"/>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
24 </when>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
25 </conditional>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
26 </xml>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
27 <xml name="gff3_input">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
28 <param label="GFF3 Annotations" name="gff3_data" type="data" format="gff3"/>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
29 </xml>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
30 <xml name="input/gff3+fasta">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
31 <expand macro="gff3_input" />
b4134ad44443 Uploaded
cpt
parents:
diff changeset
32 <expand macro="genome_selector" />
b4134ad44443 Uploaded
cpt
parents:
diff changeset
33 </xml>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
34 <token name="@INPUT_GFF@">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
35 "$gff3_data"
b4134ad44443 Uploaded
cpt
parents:
diff changeset
36 </token>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
37 <token name="@INPUT_FASTA@">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
38 #if str($reference_genome.reference_genome_source) == 'cached':
b4134ad44443 Uploaded
cpt
parents:
diff changeset
39 "${reference_genome.fasta_indexes.fields.path}"
b4134ad44443 Uploaded
cpt
parents:
diff changeset
40 #else if str($reference_genome.reference_genome_source) == 'history':
b4134ad44443 Uploaded
cpt
parents:
diff changeset
41 genomeref.fa
b4134ad44443 Uploaded
cpt
parents:
diff changeset
42 #end if
b4134ad44443 Uploaded
cpt
parents:
diff changeset
43 </token>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
44 <token name="@GENOME_SELECTOR_PRE@">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
45 #if $reference_genome.reference_genome_source == 'history':
b4134ad44443 Uploaded
cpt
parents:
diff changeset
46 ln -s $reference_genome.genome_fasta genomeref.fa;
b4134ad44443 Uploaded
cpt
parents:
diff changeset
47 #end if
b4134ad44443 Uploaded
cpt
parents:
diff changeset
48 </token>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
49 <token name="@GENOME_SELECTOR@">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
50 #if str($reference_genome.reference_genome_source) == 'cached':
b4134ad44443 Uploaded
cpt
parents:
diff changeset
51 "${reference_genome.fasta_indexes.fields.path}"
b4134ad44443 Uploaded
cpt
parents:
diff changeset
52 #else if str($reference_genome.reference_genome_source) == 'history':
b4134ad44443 Uploaded
cpt
parents:
diff changeset
53 genomeref.fa
b4134ad44443 Uploaded
cpt
parents:
diff changeset
54 #end if
b4134ad44443 Uploaded
cpt
parents:
diff changeset
55 </token>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
56 <xml name="input/fasta">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
57 <param label="Fasta file" name="sequences" type="data" format="fasta"/>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
58 </xml>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
59
b4134ad44443 Uploaded
cpt
parents:
diff changeset
60 <token name="@SEQUENCE@">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
61 "$sequences"
b4134ad44443 Uploaded
cpt
parents:
diff changeset
62 </token>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
63 <xml name="input/fasta/protein">
b4134ad44443 Uploaded
cpt
parents:
diff changeset
64 <param label="Protein fasta file" name="sequences" type="data" format="fasta"/>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
65 </xml>
b4134ad44443 Uploaded
cpt
parents:
diff changeset
66 </macros>