Mercurial > repos > iuc > multigps
comparison multigps.xml @ 18:5f6b4c0fb473 draft
Uploaded
| author | iuc |
|---|---|
| date | Tue, 04 Apr 2017 21:07:58 -0400 |
| parents | 3ea58bab5819 |
| children | b94c5e70565b |
comparison
equal
deleted
inserted
replaced
| 17:3ea58bab5819 | 18:5f6b4c0fb473 |
|---|---|
| 6 <requirements> | 6 <requirements> |
| 7 <requirement type="package" version="0.74">multigps</requirement> | 7 <requirement type="package" version="0.74">multigps</requirement> |
| 8 </requirements> | 8 </requirements> |
| 9 <command detect_errors="aggressive"> | 9 <command detect_errors="aggressive"> |
| 10 <![CDATA[ | 10 <![CDATA[ |
| 11 #set design_file = '$build_design_file' | |
| 12 #set output_dir = $output_html.files_path | 11 #set output_dir = $output_html.files_path |
| 13 mkdir -p $output_dir && | 12 mkdir -p $output_dir && |
| 13 python '$build_design_file' '$inputs' && | |
| 14 multigps | 14 multigps |
| 15 ## General options | 15 ## General options |
| 16 --design '$design_file' | 16 --design 'design.tabular' |
| 17 ## Append .txt extensions to events hrefs | 17 ## Append .txt extensions to events hrefs |
| 18 ## in output dataset so files will render | 18 ## in output dataset so files will render |
| 19 ## in the browser. | 19 ## in the browser. |
| 20 --eventsaretxt | 20 --eventsaretxt |
| 21 ## Do not run the parallel version of meme. | 21 ## Do not run the parallel version of meme. |
| 154 ]]> | 154 ]]> |
| 155 </command> | 155 </command> |
| 156 <configfiles> | 156 <configfiles> |
| 157 <configfile name="build_design_file"> | 157 <configfile name="build_design_file"> |
| 158 <![CDATA[ | 158 <![CDATA[ |
| 159 #for $cond_i, $condition_items in enumerate($condition_repeat): | 159 import json |
| 160 #for $signal_items in $condition_items['signal_repeat']: | 160 |
| 161 #set signal = $signal_items['signal'] | 161 inputs = sys.argv[1] |
| 162 #set replicate_name = $signal_items['replicate_name'] | 162 params = json.load(open(inputs, 'r')) |
| 163 #set experiment_type = $signal['experiment_type'] | 163 condition_repeat = params['condition_repeat'] |
| 164 #set line = str($signal) + '\t' + 'Signal' + '\t' + str($signal.ext.upper()) + '\t' + str($cond_i) + '\t' + str($replicate_name) + '\t' + str($experiment_type) | 164 fh = open('design.tabular', 'w') |
| 165 #set fixedreadcount_cond = $signal_items['fixedreadcount_cond'] | 165 |
| 166 #set fixedreadcount_select = $fixedreadcount_cond['fixedreadcount_select'] | 166 for cond_i, condition_items in enumerate(condition_repeat): |
| 167 #if str($fixedreadcount_select) == 'yes': | 167 for signal_items in condition_items['signal_repeat']: |
| 168 #set line = $line + '\t' + str($fixedreadcount_cond['fixedreadcount']) | 168 signal = signal_items['signal'] |
| 169 #end if | 169 replicate_name = signal_items['replicate_name'] |
| 170 $line | 170 experiment_type = signal['experiment_type'] |
| 171 #end for | 171 line_items = [signal, 'Signal', signal.ext.upper(), cond_i, replicate_name, experiment_type] |
| 172 #for $control_items in condition_items['control_repeat']: | 172 fixedreadcount_cond = signal_items['fixedreadcount_cond'] |
| 173 #set control = $control_items['control'] | 173 fixedreadcount_select = fixedreadcount_cond['fixedreadcount_select'] |
| 174 #set experiment_type = $control_items['experiment_type'] | 174 if fixedreadcount_select == 'yes': |
| 175 #set line = str($control_items) + '\t' + 'Control' + '\t' + str($control.ext.upper()) + '\t' + str($cond_i) | 175 line_items.append(fixedreadcount_cond['fixedreadcount']) |
| 176 #set specify_replicate_name_cond = $control_items['specify_replicate_name_cond'] | 176 fh.write('%s\n' % '\t'.join(line_items) |
| 177 #set specify_replicate_name = $specify_replicate_name_cond['specify_replicate_name'] | 177 for control_items in condition_items['control_repeat']: |
| 178 #if str($specify_replicate_name) == 'yes': | 178 control = control_items['control'] |
| 179 #set line = $line + '\t' + str($specify_replicate_name_cond['replicate_name']) | 179 experiment_type = control_items['experiment_type'] |
| 180 #end if | 180 line_items = [control, 'Control', control.ext.upper(), cond_i] |
| 181 #set line = $line + '\t' + str($experiment_type) | 181 specify_replicate_name_cond = control_items['specify_replicate_name_cond'] |
| 182 #set fixedreadcount_cond = $control_items['fixedreadcount_cond'] | 182 specify_replicate_name = specify_replicate_name_cond['specify_replicate_name'] |
| 183 #set fixedreadcount_select = $fixedreadcount_cond['fixedreadcount_select'] | 183 if specify_replicate_name == 'yes': |
| 184 #if str($fixedreadcount_select) == 'yes': | 184 line_items.append(specify_replicate_name_cond['replicate_name']) |
| 185 #set line = $line + '\t' + str($fixedreadcount_cond['fixedreadcount']) | 185 line_items.append(experiment_type) |
| 186 #end if | 186 fixedreadcount_cond = control_items['fixedreadcount_cond'] |
| 187 $line | 187 fixedreadcount_select = fixedreadcount_cond['fixedreadcount_select'] |
| 188 #end for | 188 if fixedreadcount_select) == 'yes': |
| 189 #end for | 189 line_items.append(fixedreadcount_cond['fixedreadcount']) |
| 190 fh.write('%s\n' % '\t'.join(line_items) | |
| 191 fh.close() | |
| 190 ]]> | 192 ]]> |
| 191 </configfile> | 193 </configfile> |
| 192 </configfiles> | 194 </configfiles> |
| 193 <inputs> | 195 <inputs> |
| 194 <repeat name="condition_repeat" title="Condition" min="1"> | 196 <repeat name="condition_repeat" title="Condition" min="1"> |
