annotate cpt_intron_detect/macros.xml @ 1:6ed12d7c2458 draft

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