def create_shotgun_process(user, norm_plate): kappa = ReagentComposition(4) stub = ReagentComposition(5) shotgun_process = LibraryPrepShotgunProcess.create( user, norm_plate, 'Test Shotgun Library %s' % datetime.now(), kappa, stub, 4000, Plate(19), Plate(20)) shotgun_plate = shotgun_process.plates[0] return shotgun_process, shotgun_plate
def create_shotgun_process(user, norm_plate): kappa = ReagentComposition(4) stub = ReagentComposition(5) primer_a, primer_b = get_primer_plate(is_96=False) shotgun_process = LibraryPrepShotgunProcess.create( user, norm_plate, 'Test Shotgun Library %s' % datetime.now(), kappa, stub, 4000, primer_a, primer_b) shotgun_plate = shotgun_process.plates[0] return shotgun_process, shotgun_plate
def post(self): plate_name = self.get_argument('plate_name') volume = self.get_argument('volume') plate = self.get_argument('plate') i5_plate = self.get_argument('i5_plate') i7_plate = self.get_argument('i7_plate') kappa_hyper_plus_kit = self.get_argument('kappa_hyper_plus_kit') stub_lot = self.get_argument('stub_lot') process = LibraryPrepShotgunProcess.create( self.current_user, Plate(plate), plate_name, ReagentComposition.from_external_id(kappa_hyper_plus_kit), ReagentComposition.from_external_id(stub_lot), volume, Plate(i5_plate), Plate(i7_plate)) self.write({'process': process.id})
def post(self): user = self.current_user plates_info = self.get_argument('plates_info') volume = self.get_argument('volume') kappa_hyper_plus_kit = self.get_argument('kappa_hyper_plus_kit') stub_lot = self.get_argument('stub_lot') processes = [[ pid, LibraryPrepShotgunProcess.create( user, Plate(pid), plate_name, ReagentComposition.from_external_id(kappa_hyper_plus_kit), ReagentComposition.from_external_id(stub_lot), volume, Plate(i5p), Plate(i7p)).id ] for pid, plate_name, i5p, i7p in json_decode(plates_info)] self.write({'processes': processes})