annotate cpt_related_genome_nuc/macros.xml @ 0:5a5fe0a6f78d draft default tip

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