def compute_mutagenesis_primers(self): """ Using the sequence fragments to be assembled together, computes for each step the primers that are to be used to assemble the mutated fragments. """ for step, frags in self.fragments.items(): # Run the standard PrimerDesigner protocol. p = PrimerDesigner() p.set_sequences(frags) # Ensure to set the filename attribute. p.filename = 'step{step}'.format(step=step) p.construct_graph() p.compute_assembly_primers() p.compute_junction_sequencing_primers() p.compute_pcr_protocol() self.primer_designers[step] = p