Mercurial > repos > iuc > multigps
comparison multigps.xml @ 24:d61d1aaf4b07 draft
Uploaded
| author | iuc |
|---|---|
| date | Tue, 04 Apr 2017 21:34:35 -0400 |
| parents | eb9b1816f00e |
| children | b3eef7e04ea9 |
comparison
equal
deleted
inserted
replaced
| 23:eb9b1816f00e | 24:d61d1aaf4b07 |
|---|---|
| 162 | 162 |
| 163 inputs_path = sys.argv[1] | 163 inputs_path = sys.argv[1] |
| 164 params = json.load(open(inputs_path, 'r')) | 164 params = json.load(open(inputs_path, 'r')) |
| 165 condition_repeat = params['condition_repeat'] | 165 condition_repeat = params['condition_repeat'] |
| 166 fh = open('design.tabular', 'w') | 166 fh = open('design.tabular', 'w') |
| 167 | 167 fh.write('%s\n' % str(params) |
| 168 """ | |
| 168 for cond_i, condition_items in enumerate(condition_repeat): | 169 for cond_i, condition_items in enumerate(condition_repeat): |
| 169 fh.write('%s\n' % str(condition_items) | |
| 170 """ | |
| 171 for signal_items in condition_items['signal_repeat']: | 170 for signal_items in condition_items['signal_repeat']: |
| 172 signal = signal_items['signal'] | 171 signal = signal_items['signal'] |
| 173 replicate_name = signal_items['replicate_name'] | 172 replicate_name = signal_items['replicate_name'] |
| 174 experiment_type = signal['experiment_type'] | 173 experiment_type = signal['experiment_type'] |
| 175 line_items = [signal.file_name, 'Signal', signal.ext.upper(), cond_i, replicate_name, experiment_type] | 174 line_items = [signal.file_name, 'Signal', signal.ext.upper(), cond_i, replicate_name, experiment_type] |
| 190 fixedreadcount_cond = control_items['fixedreadcount_cond'] | 189 fixedreadcount_cond = control_items['fixedreadcount_cond'] |
| 191 fixedreadcount_select = fixedreadcount_cond['fixedreadcount_select'] | 190 fixedreadcount_select = fixedreadcount_cond['fixedreadcount_select'] |
| 192 if fixedreadcount_select == 'yes': | 191 if fixedreadcount_select == 'yes': |
| 193 line_items.append(fixedreadcount_cond['fixedreadcount']) | 192 line_items.append(fixedreadcount_cond['fixedreadcount']) |
| 194 fh.write('%s\n' % '\t'.join(line_items)) | 193 fh.write('%s\n' % '\t'.join(line_items)) |
| 195 """ | 194 """ |
| 196 fh.close() | 195 fh.close() |
| 197 ]]> | 196 ]]> |
| 198 </configfile> | 197 </configfile> |
| 199 </configfiles> | 198 </configfiles> |
| 200 <inputs> | 199 <inputs> |
