Mercurial > repos > glogobyte > isoread
comparison mirbase.py @ 23:6d3abc45aa49 draft
Uploaded
| author | glogobyte |
|---|---|
| date | Wed, 20 Oct 2021 12:11:43 +0000 |
| parents | f10c8f43f010 |
| children | 6e365f2eb24a |
comparison
equal
deleted
inserted
replaced
| 22:958330b9bce3 | 23:6d3abc45aa49 |
|---|---|
| 194 procs = [Process(target=DB_write,args=(x[0],x[1],x[2],x[3],1)) for x in con_data] | 194 procs = [Process(target=DB_write,args=(x[0],x[1],x[2],x[3],1)) for x in con_data] |
| 195 procs.extend([Process(target=DB_write,args=(x[0],x[1],x[2],x[3],1)) for x in tre_data]) | 195 procs.extend([Process(target=DB_write,args=(x[0],x[1],x[2],x[3],1)) for x in tre_data]) |
| 196 procs.extend([Process(target=make_spider,args=(merg_nam_control_group,merg_nam_treated_group,args.group1,args.group2))]) | 196 procs.extend([Process(target=make_spider,args=(merg_nam_control_group,merg_nam_treated_group,args.group1,args.group2))]) |
| 197 | 197 |
| 198 if args.anal == "1": | 198 if args.anal == "1": |
| 199 procs.extend([Process(target=pie_temp,args=(merg_nam_control_group,con_unmap_seq.value,con_unmap_counts.value,merg_nam_treated_group,tre_unmap_seq.value,tre_unmap_counts.value,group_name1,group_name2))]) | 199 procs.extend([Process(target=pie_temp,args=(merg_nam_control_group,con_unmap_seq.value,con_unmap_counts.value,merg_nam_treated_group,tre_unmap_seq.value,tre_unmap_counts.value,args.group1,args.group2))]) |
| 200 | 200 |
| 201 [p.start() for p in procs] | 201 [p.start() for p in procs] |
| 202 | 202 |
| 203 # Export the pdf report file | 203 # Export the pdf report file |
| 204 if args.anal=="1": | 204 if args.anal=="1": |
| 247 ps_write.join() | 247 ps_write.join() |
| 248 [p.join() for p in ps1_matrix] | 248 [p.join() for p in ps1_matrix] |
| 249 | 249 |
| 250 ############################## Detection of non-template ####################################### | 250 ############################## Detection of non-template ####################################### |
| 251 | 251 |
| 252 starttime10 = time.time() | |
| 253 | |
| 254 if args.anal == "2": | 252 if args.anal == "2": |
| 255 | 253 |
| 256 # Initialization of the managers between the proccesses | 254 # Initialization of the managers between the proccesses |
| 257 # First group of samples (controls) | 255 # First group of samples (controls) |
| 258 n_con_data= manager.list() | 256 n_con_data= manager.list() |
| 412 [p.start() for p in ps1_matrix] | 410 [p.start() for p in ps1_matrix] |
| 413 | 411 |
| 414 ps_write.join() | 412 ps_write.join() |
| 415 [p.join() for p in ps1_matrix] | 413 [p.join() for p in ps1_matrix] |
| 416 procs1.join() | 414 procs1.join() |
| 417 print('That took {} seconds'.format(time.time() - starttime10)) | 415 print('Running time: {} seconds'.format(time.time() - starttime)) |
| 418 print('That took {} seconds'.format(time.time() - starttime)) | 416 |
| 419 |
