view test/test_dna.py @ 1116:45da1d3a60c3
pair_cores/web: add note about support by Ministry of Education and Science
author |
Boris Nagaev <bnagaev@gmail.com> |
date |
Wed, 28 Nov 2012 00:35:35 +0400 |
parents |
73f57a30831f |
children |
|
line source
1 from nose.tools import raises
5 s = dna.Sequence.from_string("AGATCGGAAGAGC", name='seq1')
6 s1 = s.reverse_complemented()
7 assert s1.name == "seq1'"
8 assert str(s1) == "GCTCTTCCGATCT"
9 assert str(s.translated()) == "RSEE"
12 s += dna.Sequence.from_string("TGA")
13 assert str(s.translated()) == "RSEE"
15 @raises(AssertionError)
16 def test_translation_stop():
17 s = dna.Sequence.from_string("TGATCGGAAGAGC")