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) print("\nTerse Translation:") terse_polypeptides = [] for strand in strands: terse_polypeptides.append(helicase.represent_polypeptide(helicase.translate_unframed_strand(strand),helicase.IUPAC_1)) print(terse_polypeptides) print("\n\nStrand -> Transcribed")
def test_translate_unframed_strand(self): print("\nBeginning Unframed Translation Test.") self.assertEqual(helicase.translate_unframed_strand('catgccccccccctaatct'), [helicase.Met, helicase.Pro, helicase.Pro, helicase.Pro])