annotate cuff_macros.xml @ 10:4e6f043995ff draft

planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tool_collections/cufflinks/cuffdiff commit 4f5f0b9c6f52d17728d97452749b5dc887f7d46a
author devteam
date Wed, 03 Jun 2015 15:04:19 -0400
parents 8da0eade1f59
children 5ce5197de50c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
1 <macros>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
2 <token name="@VERSION@">2.2.1</token>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
3 <xml name="requirements">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
4 <requirements>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
5 <requirement type="package" version="2.2.1">cufflinks</requirement>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
6 <yield />
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
7 </requirements>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
8 </xml>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
9 <xml name="stdio">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
10 <stdio>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
11 <exit_code range="1:" />
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
12 <exit_code range=":-1" />
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
13 <regex match="Error:" />
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
14 <regex match="Exception:" />
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
15 </stdio>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
16 </xml>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
17 <xml name="condition_inputs">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
18 <!-- DEFAULT : use BAM/SAM files -->
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
19 <conditional name="in_type">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
20 <param name="set_in_type" type="select" label="Input data type"
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
21 help="CuffNorm supports either CXB (from cuffquant) or SAM/BAM input files. Mixing is not supported. Default: SAM/BAM">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
22 <option value="BAM">SAM/BAM</option>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
23 <option value="CXB">Cuffquant (CXB)</option>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
24 <option value="CONDITION_LIST">List of single replicate conditions</option>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
25 <option value="CONDITION_REPLICATE_LIST">List of multiple replicate conditions</option>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
26 </param>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
27 <when value="BAM">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
28 <repeat name="conditions" title="Condition" min="2">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
29 <param name="name" title="Condition name" type="text" label="Name"/>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
30 <param name="samples" label="Replicates" type="data" format="sam,bam" multiple="true"/>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
31 </repeat>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
32 </when>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
33 <when value="CXB">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
34 <repeat name="conditions" title="Condition" min="2">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
35 <param name="name" title="Condition name" type="text" label="Name"/>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
36 <param name="samples" label="Replicates" type="data" format="cxb" multiple="true"/>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
37 </repeat>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
38 </when>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
39 <when value="CONDITION_LIST">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
40 <param name="conditions" title="List of Conditions" type="data_collection" collection_type="list" />
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
41 </when>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
42 <when value="CONDITION_REPLICATE_LIST">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
43 <param name="conditions" title="List of Conditions" type="data_collection" collection_type="list:list" />
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
44 </when>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
45 </conditional>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
46 </xml>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
47 <token name="@CONDITION_SAMPLES@">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
48 #if $in_type.set_in_type in ['BAM', 'CXB']
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
49 #for $condition in $in_type.conditions:
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
50 #set samples = ','.join( [ str( $sample ) for $sample in $condition.samples ] )
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
51 $samples
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
52 #end for
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
53 #elif $in_type.set_in_type == 'CONDITION_LIST'
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
54 #for $sample in $in_type.conditions:
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
55 $sample
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
56 #end for
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
57 #elif $in_type.set_in_type == 'CONDITION_REPLICATE_LIST'
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
58 #for $condition_list in $in_type.conditions:
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
59 #set samples = ','.join( [ str( $sample ) for $sample in $condition_list ] )
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
60 $samples
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
61 #end for
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
62 #end if
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
63 </token>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
64 <token name="@CONDITION_LABELS@">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
65 #import re
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
66 #if $in_type.set_in_type in ['BAM', 'CXB']
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
67 #set labels = '\'' + '\',\''.join( [ str( $condition.name ) for $condition in $in_type.conditions ] ) + '\''
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
68 #elif $in_type.set_in_type in ['CONDITION_LIST', 'CONDITION_REPLICATE_LIST']
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
69 #set labels = '\'' + '\',\''.join( map(lambda x: re.sub('[^\w\-_]', '_', x), $in_type.conditions.keys() ) ) + '\''
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
70 #end if
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
71 --labels $labels
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
72 </token>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
73 <xml name="cufflinks_gtf_inputs">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
74 <param format="gtf" name="inputs" type="data" label="GTF file(s) produced by Cufflinks" help="" multiple="true" />
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
75 <repeat name="additional_inputs" title="Additional GTF Inputs (Lists)">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
76 <param format="gtf" name="additional_inputs" type="data_collection" label="GTF file(s) produced by Cufflinks" help="" />
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
77 </repeat>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
78 </xml>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
79 <token name="@CUFFLINKS_GTF_INPUTS@">
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
80 ## Inputs.
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
81 #for $input_file in $inputs:
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
82 "${input_file}"
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
83 #end for
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
84 #for $additional_input in $additional_inputs:
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
85 #for $input_file in $additional_input.additional_inputs:
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
86 "${input_file}"
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
87 #end for
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
88 #end for
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
89 </token>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
90 <token name="@HAS_MULTIPLE_INPUTS@">getattr(inputs, "__len__", [].__len__)() >= 2</token>
8da0eade1f59 Uploaded
devteam
parents:
diff changeset
91 </macros>