allpy
view allpy/dna.py @ 1112:349316a4e941
utils/markup_to_file: added ability to specify multiple markup file names for batch tranformation as positional arguments
author | Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru> |
---|---|
date | Fri, 29 Jun 2012 19:34:21 +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: