annotate cpt_rem_annotes/macros.xml @ 2:49f50c55a9f8 draft default tip

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