allpy
view allpy/dna.py @ 1168:b556c96c6719
blocks3d/www Makefile: never check certificates of github, they are too confusing for wget
author | Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru> |
---|---|
date | Mon, 26 May 2014 17:20:29 +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: