comparison edgeR_Design_Matrix.xml @ 0:d468482eb206 draft

Uploaded
author yhoogstrate
date Thu, 09 Jan 2014 02:43:41 -0500
parents
children 8c71e4c3c054
comparison
equal deleted inserted replaced
-1:000000000000 0:d468482eb206
1 <?xml version="1.0" encoding="UTF-8"?>
2 <tool id="edger_design_matrix" name="edgeR Design Creator">
3 <description>Create the experimental design for edgeR by a few clicks in Galaxy</description>
4
5 <command interpreter="python">
6 edgeR_Design_Matrix.py
7 -o $contrast_matrix
8 -u
9 #for $unpaired_sample in $unpaired_samples
10 ${unpaired_sample}
11 #end for
12 -p
13 #for $paired_sample in $paired_samples
14 #for $sample in $paired_sample.samples
15 ${sample.sample}
16 #end for
17 :
18 #end for
19 -t
20 #for $treatment in $check.treatments
21 #for $factor in $treatment.factors
22 "$factor.name"
23 $factor.samples
24 #end for
25 :
26 #end for
27 -n
28 #for $unpaired_sample in $unpaired_samples
29 "${unpaired_sample}:${unpaired_sample.name}"
30 #end for
31 #for $paired_sample in $paired_samples
32 #for $sample in $paired_sample.samples
33 "${sample.sample}:${sample.sample.name}"
34 #end for
35 #end for
36 </command>
37
38 <code file="edgeR_Design_Matrix.listing.py" />
39
40 <inputs>
41 <param name="unpaired_samples" type="data" format="tabular" label="Unpaired read-count dataset" help="from featureCounts/DEXSeq-count/HTSeq-count, etc. Press [ctrl] and click the sample to unselect it." multiple="true" />
42
43 <repeat name="paired_samples" title="Add paired samples; per patient">
44 <repeat name="samples" title="Add sample for patient" min="2">
45 <param name="sample" type="data" format="tabular" label="Read-count dataset that belongs to a pair" help="from featureCounts/DEXSeq-count/HTSeq-count, etc." />
46 </repeat>
47 </repeat>
48
49 <conditional name="check">
50 <param name="continue" help="When clicking this variable, the treatment menu will appear" type="boolean" truevalue="yes" />
51
52 <when value="yes">
53 <repeat name="treatments" title="Treatments" min="1">
54 <repeat name="factors" title="Factor" min="2" help="e.g. 'normal' or 'tumor', 'untreated', 'recurrent', 'metastatic', or 'group_1',...,'group_n' etc.">
55 <param name="name" type="text" />
56 <param name="samples" type="select" label="Corresponding samples" multiple="true" dynamic_options="listfiles(unpaired_samples,paired_samples)" />
57 </repeat>
58 </repeat>
59 </when>
60 </conditional>
61
62 </inputs>
63
64 <outputs>
65 <data format="tabular" name="contrast_matrix" label="Contrast matrix" />
66 </outputs>
67
68 <help>
69 Examples::
70 2 group, unpaired::
71 Group name 1 = Healthy
72 Group name 2 = Tumor
73
74 </help>
75 </tool>