| Home | Trees | Index | Help |
|
|---|
| Package corebio :: Package resource :: Module astral :: Class RafSeqMap |
|
object --+
|
RafSeqMap
ASTRAL RAF (Rapid Access Format) Sequence Maps. RafSeqMap is a list like object; You can find the location of particular residues with index(), slice this RafSeqMap into fragments, and glue fragments back together with extend(). - pdbid -- The PDB 4 character ID - pdb_datestamp -- From the PDB file - version -- The RAF format version. e.g. 0.01 - flags -- RAF flags. (See release notes for more information.) - res -- A list of Res objects, one for each residue in this sequence map
| Method Summary | |
|---|---|
Parses a RAF record into a RafSeqMap object. | |
__add__(self,
other)
| |
__getslice__(self,
i,
j)
| |
__iadd__(self,
other)
| |
Append another Res object onto the list of residue mappings. | |
Append another RafSeqMap onto the end of self. | |
Extract all relevant ATOM and HETATOM records from a PDB file. | |
index(self,
resid,
chainid)
| |
Iterates over a Raf file, generating RafSeqMaps... (Static method) | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... | |
| Instance Method Details |
|---|
__init__(self,
raf_record=None)
|
append(self, res)Append another Res object onto the list of residue mappings. |
extend(self, other)Append another RafSeqMap onto the end of self. Both RafSeqMaps must have the same PDB ID, PDB datestamp and RAF version. The RAF flags are erased if they are inconsistent. This may happen when fragments are taken from different chains. |
extract_atoms(self, pdb_handle, out_handle)Extract all relevant ATOM and HETATOM records from a PDB file. The PDB file is scanned for ATOM and HETATOM records. If the chain ID, residue ID (seqNum and iCode), and residue type match a residue in this sequence map, then the record is echoed to the output handle. This is typically used to find the coordinates of a domain, or other residue subset. pdb_file -- A handle to the relevant PDB file. out_file -- All output is written to this stream. |
| Static Method Details |
|---|
records(raf_file)Iterates over a Raf file, generating RafSeqMaps |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on | http://epydoc.sf.net |