3 from htsworkflow.frontend.experiments.models import FlowCell, Lane
6 if __name__ == '__main__':
8 print "Migration starting..."
11 for flowcell in FlowCell.objects.all():
18 lane1.flowcell = flowcell
19 lane1.library = flowcell.lane_1_library
23 lane1.pm = flowcell.lane_1_pM
24 lane1.cluster_estimate = flowcell.lane_1_cluster_estimate
34 lane2.flowcell = flowcell
35 lane2.library = flowcell.lane_2_library
39 lane2.pm = flowcell.lane_2_pM
40 lane2.cluster_estimate = flowcell.lane_2_cluster_estimate
50 lane3.flowcell = flowcell
51 lane3.library = flowcell.lane_3_library
55 lane3.pm = flowcell.lane_3_pM
56 lane3.cluster_estimate = flowcell.lane_3_cluster_estimate
66 lane4.flowcell = flowcell
67 lane4.library = flowcell.lane_4_library
71 lane4.pm = flowcell.lane_4_pM
72 lane4.cluster_estimate = flowcell.lane_4_cluster_estimate
82 lane5.flowcell = flowcell
83 lane5.library = flowcell.lane_5_library
87 lane5.pm = flowcell.lane_5_pM
88 lane5.cluster_estimate = flowcell.lane_5_cluster_estimate
98 lane6.flowcell = flowcell
99 lane6.library = flowcell.lane_6_library
102 lane6.lane_number = 6
103 lane6.pm = flowcell.lane_6_pM
104 lane6.cluster_estimate = flowcell.lane_6_cluster_estimate
114 lane7.flowcell = flowcell
115 lane7.library = flowcell.lane_7_library
118 lane7.lane_number = 7
119 lane7.pm = flowcell.lane_7_pM
120 lane7.cluster_estimate = flowcell.lane_7_cluster_estimate
130 lane8.flowcell = flowcell
131 lane8.library = flowcell.lane_8_library
134 lane8.lane_number = 8
135 lane8.pm = flowcell.lane_1_pM
136 lane8.cluster_estimate = flowcell.lane_8_cluster_estimate
141 print "Migration Complete."