annotate cpt_stops/macros.xml @ 0:89c78d269676 draft

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