def test_cannot_transcribe_invalid_bases_to_rna(self): print("\nBeginning Invalid RNA Transcription Test.") coding = "aaaccctttnggg" with self.assertRaises(ValueError): helicase.transcribe_to_rna(coding)
print("\nFraming:") framed_strands = [] for strand in strands: framed_strands.append(helicase.frame_strand(strand)) print(framed_strands) print("\nTranscription:") transcribed_strands = [] for strand in strands: transcribed_strands.append(helicase.transcribe(strand)) print(transcribed_strands) print("\nRNA Transcription:") transcribed_rna_strands = [] for strand in strands: transcribed_rna_strands.append(helicase.transcribe_to_rna(strand)) print(transcribed_rna_strands) print("\nTranslation:") polypeptides = [] for strand in strands: polypeptides.append(helicase.represent_polypeptide(helicase.translate_unframed_strand(strand),helicase.IUPAC_3)) print(polypeptides) print("\nVerbose Translation:") verbose_polypeptides = [] for strand in strands: verbose_polypeptides.append(helicase.represent_polypeptide(helicase.translate_unframed_strand(strand),helicase.FULL_NAME)) print(verbose_polypeptides)
def test_transcription_to_rna(self): print("\nBeginning RNA Transcription Test.") coding = "atcg" template = "uagc" self.assertEqual(template, helicase.transcribe_to_rna(coding))