allpy
view allpy/dna.py @ 1159:ae4bf19c70ec
compare-aln-3d/web: add language change buttons, save chosen language to cookies
author | Boris Nagaev <bnagaev@gmail.com> |
---|---|
date | Fri, 25 Jan 2013 18:24:20 +0400 |
parents | afed1fd8920c |
children |
line source
9 """DNA monomers: nucleotides."""
21 """Return a new sequence, reverse-complement to self.
23 Name of the sequence is name of self with apostrophe added.
24 """
30 )
36 """Return a new protein sequence translated from self.
38 `code` is a dict of triplet of dna `code1`s -> aminoacid `name`.
40 If `code` is not specified, the standard genetic code is used.
42 If `code` is specified, it may contain only the changed codons.
44 Class of proteins to use is `self.types.protein.Sequence`, you
45 are free to replace it at will.
47 Return new protein sequence where:
49 * `name` is self.name with "_tr" appended
50 * `description` is self.description with " translated" appended
51 * `source` is the same as self.source
52 """
62 )
70 continue
81 pass
83 # vim: set ts=4 sts=4 sw=4 et: