class pdb.PdbAtom
Available on all platforms
Container for ATOM or HETATM entry of pdb file.
Class Fields
static function elementName(n:String):String
return element name of atom name n
.
This function assumes the name n
does not contain non-alphabet characters.
If your input name contains number such as HG2, use guessElementName
.
static function genBondXml(a0:PdbAtom, a1:PdbAtom):String
returns WMXML style xml data of bond between two PdbAtoms, a0
and a1
,
as a string.
static function getColor(e:String):String
returns the predefined color of the element.
e
is the element name, and the return value is the color name in string
such as "white", "lime".
static function getDistance(a0:PdbAtom, a1:PdbAtom):Float
returns the distance between two PdbAtom
s, a0
and a1
.
static function getRadii(e:String):Float
Tentatively defined atomic radius; there is no physical/chemical meaning.
e
is the element name such as H, C, O, and the return value is the
radius of the element in angstrom.
static function guessElementName(n:String):String
guess element name from atom name n
.
return value is the name of the element.
static function readFromText(text:String):Dynamic
read a string and returns the atom data. The return value is an anonymous container. Components are:
- ci: chain id
- het: is hetero atom (bool)
- rn: residue name
- ri: residue index
- at: atom data of
PdbAtom
type