comparison edgeR_Design_from_Expression_Matrix.xml @ 30:171f3cf6233d draft

Uploaded
author yhoogstrate
date Tue, 20 May 2014 05:28:36 -0400
parents
children 34cd814f2327
comparison
equal deleted inserted replaced
29:27efc93c1ca6 30:171f3cf6233d
1 <?xml version="1.0" encoding="UTF-8"?>
2 <tool id="design_from_expression_matrix" name="edgeR: Design- from Expression matrix">
3 <description>Create design- from an expression matrix</description>
4
5 <command interpreter="python">
6 design_matrix_creator.py
7 -c $expression_matrix
8
9 #set $unique_columns = []
10 #for $factor in $treatments:
11 #for $level in $factor.rep_factorLevel:
12 #for $val in $level.factorIndex.value:
13 #if str($val) not in $unique_columns:
14 #set $unique_columns = $unique_columns + [str($val)]
15 #end if
16 #end for
17 #end for
18 #end for
19
20 #set $unique_columns = " ".join(unique_columns)
21 -s $unique_columns
22
23 -t
24 #for $factor in $treatments:
25 #set $factor_str = str($factor.name).encode('base64').replace('\n','')
26
27 #for $level in $factor.rep_factorLevel:
28 #set $factor_str = $factor_str+":"+str($level.factorLevel).encode('base64').replace('\n','')+":"+",".join([str(x).strip() for x in $level.factorIndex.value])
29 #end for
30
31 $factor_str
32 #end for
33
34 #if $choose_blocking.choice == "true"
35 -b
36 #for blocking in $choose_blocking.blocking_repeat:
37 #set $blocking_str = str($blocking.blocking_name).encode('base64').replace('\n','')
38
39 #for $block_iter in $blocking.block:
40 #set $block_str = ",".join([str(x).strip() for x in $block_iter.block_index.value])
41 #set $blocking_str = $blocking_str+":"+$block_str
42 #end for
43
44 $blocking_str
45 #end for
46 #end if
47
48 -o $contrast_matrix
49 </command>
50
51 <inputs>
52 <param format="tabular" name="expression_matrix" type="data" label="Expression matrix (read counts)" help="You can create a count matrix with the tool" />
53
54 <repeat name="treatments" title="Factor/Condition" min="1">
55 <param name="name" type="text" value="FactorName" label="Specify a name for the factor / condition" help="e.g. 'Tumor vs. Normal', 'Timepoint' or 'DiseaseState'. Field must be non-numerical, preferably only letters!!" />
56 <repeat name="rep_factorLevel" title="Factor level" min="1">
57 <param name="factorLevel" type="text" value="FactorLevel" label="Specify a condition" help="e.g. Tumor or Normal; Treated, untreaded or placebo. Field must be non-numerical, preferably only letters!!" />
58 <param name="factorIndex" numerical="false" use_header_names="true" label="Select columns that are associated with this factor level" type="data_column" data_ref="expression_matrix" multiple="true" size="120" display="checkboxes">
59 <validator type="no_options" message="Please select at least one column." />
60 </param>
61 </repeat>
62 </repeat>
63
64 <conditional name="choose_blocking">
65 <param name="choice" type="select" label="Define blocking (paired or grouped samples)" help="e.g. to remove batch effects" >
66 <option value="false">No</option>
67 <option value="true">Yes</option>
68 </param>
69 <when value="false" />
70 <when value="true">
71 <repeat name="blocking_repeat" title="Blocking condition" min="1">
72 <param name="blocking_name" type="text" value="" label="Specify a name for a blocking condition" help="e.g.'Patients' or 'Batches'" />
73 <repeat name="block" title="Block" min="2">
74 <param name="block_index" label="Select columns that are associated with this factor level" type="data_column" data_ref="expression_matrix" numerical="True" multiple="true" use_header_names="true" size="120" display="checkboxes">
75 <validator type="no_options" message="Please select at least one column." />
76 </param>
77 </repeat>
78 </repeat>
79 </when>
80 </conditional>
81 </inputs>
82
83 <outputs>
84 <data format="tabular" name="design_matrix" label="Design matrix" />
85 </outputs>
86
87 <help>
88 edgeR: Design- from Expression matrix
89
90 **References**
91
92 The test data is coming from: doi: 10.1093/bioinformatics/btt688.
93 http://www.ncbi.nlm.nih.gov/pubmed/24319002
94 </help>
95 </tool>