allpy
view allpy/fileio.py @ 642:a1307c0bb030
Added necessary hooks for monomer pickling [closes #35]
Current implementation is lazy and does not store all monomer classes
explicitly in some module. They are still generated on the fly.
Some monomer classes have the same name as per PDB database. In order to avoid
name clashes, we add underscores to classes, if same name class already exists.
WARNING.
This may and WILL cause trouble, if such clashes occur between different types
of monomers, in which case different names will be generated for the same class
depending on the order of loading modules.
The only example of such clash in the current database is dna monomer "0AV" and
rna "A2M", which both have name "2'-O-METHYLADENOSINE 5'-(DIHYDROGEN PHOSPHATE)"
author | Daniil Alexeyevsky <dendik@kodomo.fbb.msu.ru> |
---|---|
date | Fri, 03 Jun 2011 16:49:44 +0400 |
parents | b6a53615f1e9 |
children | 80043822a41e |
line source
7 """Automatical file IO."""
15 """Fasta parser & writer."""
22 """Append one sequence to file."""
35 """Write sequences to file.
37 Sequences are given as list of tuples (string, name, description).
38 """
53 """Parser & writer for file formats supported by EMBOSS."""
60 """Write sequences to file."""
63 )
70 """EMBOSS does not permit : in file names. Fix sequences for that."""
75 """Read sequences from file."""
78 )
84 # vim: set et ts=4 sts=4 sw=4: