def get_destination_plates_and_start(mutant): if mutant == 'universal': return ([plates['universal']], 'A01') elif mutant == get_mutant('dhc-1'): return ([plates['hybrid 3']], 'A01') elif mutant == get_mutant('div-1'): return ([plates['hybrid 1']], 'A01') elif mutant == get_mutant('emb-27'): return ([plates['hybrid 2']], 'A01') elif mutant == get_mutant('emb-30'): return ([plates['hybrid 3']], 'A03') elif mutant == get_mutant('emb-8'): return ([plates['hybrid 3']], 'A08') elif mutant == get_mutant('glp-1'): return ([plates['hybrid 4']], 'A01') elif mutant == get_mutant('hcp-6'): return ([plates['hcp-6']], 'A01') elif mutant == get_mutant('lin-5'): return ([plates['hybrid 4']], 'A03') elif mutant == get_mutant('mat-1'): return ([plates['hybrid 4']], 'A04') elif mutant == get_mutant('mbk-2'): return ([plates['hybrid 4']], 'A12') elif mutant == get_mutant('mel-26'): return ([plates['hybrid 5']], 'A01') elif mutant == get_mutant('par-1'): return ([plates['hybrid 5']], 'A06') elif mutant == get_mutant('par-2'): return ([plates['hybrid 5']], 'A12') elif mutant == get_mutant('par-4'): return ([plates['hybrid 6']], 'A01') elif mutant == get_mutant('pod-2'): return ([plates['hybrid 2']], 'A09') elif mutant == get_mutant('rme-8'): return ([plates['hybrid 6']], 'A03') elif mutant == get_mutant('spd-5'): return ([plates['hybrid 6']], 'A08') elif mutant == get_mutant('spn-4'): return ([plates['hybrid 6']], 'A09') elif mutant == get_mutant('tba-1'): return ([plates['tba-1 1'], plates['tba-1 2']], 'A01') elif mutant == get_mutant('zen-4'): return ([plates['hybrid 1']], 'A04') elif mutant == get_mutant('zyg-1'): return ([plates['hybrid 6']], 'A10') elif mutant == get_mutant('zyg-8'): return ([plates['hybrid 6']], 'A12')
############################################################################### print 'Adding scores to all_scores...\n' ############################################################################### with open('input/AllNonJunkSupPrimaryScores.csv', 'rb') as csvfile: csvreader = csv.reader(csvfile) for row in csvreader: clone = Clone(row[0], row[1], row[2]) gene = row[3] temperature = row[4] expID = int(row[5]) expDate = row[8] score = int(row[6]) scorer = row[7] mutant = get_mutant(gene) if mutant.temperature != temperature: continue assert clone in all_scores scored_mutants = all_scores[clone] if mutant not in scored_mutants: scored_mutants[mutant] = {} experiments = scored_mutants[mutant] if expID not in experiments: experiments[expID] = ExperimentScoreData() score_data = experiments[expID] score_data.add_score(score) score_data.add_scorer(scorer)
self.db_mutant = 'hybrid' self.db_mutantAllele = 'hybrid' else: self.db_mutant = mutant.gene self.db_mutantAllele = mutant.allele def __str__(self): return self.deep_well def __repr__(self): return self.__str__() plates = { 'universal': Plate('universal', 'universal_F5', 'universal'), 'tba-1 1': Plate('tba-1 1', 'or346_F6', get_mutant('tba-1')), 'tba-1 2': Plate('tba-1 2', 'or346_F7', get_mutant('tba-1')), 'hcp-6': Plate('hcp-6', 'mr17_F3', get_mutant('hcp-6')), 'hybrid 1': Plate('hybrid 1', 'hybrid_F1', 'hybrid'), 'hybrid 2': Plate('hybrid 2', 'hybrid_F2', 'hybrid'), 'hybrid 3': Plate('hybrid 3', 'hybrid_F3', 'hybrid'), 'hybrid 4': Plate('hybrid 4', 'hybrid_F4', 'hybrid'), 'hybrid 5': Plate('hybrid 5', 'hybrid_F5', 'hybrid'), 'hybrid 6': Plate('hybrid 6', 'hybrid_F6', 'hybrid'), } skipped_wells = { 'universal': ['B02', 'G11'], 'tba-1 1': ['E02', 'G07', 'G11'], 'tba-1 2': ['H02', 'C07', 'A11'],