Atom

This is a general class to hold an atom as it appears in a PDB file.

[ GAMB | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

Quick Index

KEYWORD
AUTHORS
CHANGES LOG
USAGE

Class Summary

class Atom : public Vector3

{
public:
// Constructors
Atom();
Atom(const Vector3& p, const char ch, const unsigned short aid, const unsigned short resid, const char* const t, const char resTp, const char resICode );
Atom(const Vector3& p, const AtomEntryType atp, const char ch, const unsigned short aid, const unsigned short resid, const char* const t, const char resTp, const char* const res, const char resICode );
Atom(const Vector3& p, const AtomEntryType atp, const char ch, const unsigned short aid, const unsigned short resid, const char* const atomName_, const char resTp, const char* const res, const float occup, const float tmp, const char resICode );
Atom(const Vector3& p, unsigned short aid);
explicit Atom(const char* const PDBrec);
// Inspectors
char chainId() const;
char altLocIndicator() const;
unsigned short atomIndex() const;
short residueIndex() const;
char residueICode() const;
const char *const type() const;
char residueType() const;
const char *const residueName() const;
AtomEntryType getAtomEntryType() const;
float getOccupancy() const;
float getTempFactor() const;
void setTempFactor(float ftemp);
bool isBackbone() const;
bool isCA() const;
bool isCB() const;
bool isN() const;
bool isC() const;
bool isO() const;
bool isH() const;
bool isWater() const;
// Adaptors
void setChainId(const char newChainId);
void setAtomId(unsigned short newAtomId);
Atom& operator*=(const RigidTrans3& rt) ;
operator RESIDUE_INDEX()const ;
void setSSE(const pair< char,short>& isseInfo) ;
pair< char,short> getSSE()const ;
static string parseAtomName(const char* const atomName_);
friend ostream& operator<<(ostream& s, const Atom& at);
protected:
}; // Atom

Back to the top of Atom


KEYWORD

atom, PDB, particle

Back to the top of Atom


AUTHORS

Meir Fuchs (meirfux@math.tau.ac.il), Zipi Fligelman (zipo@math.tau.ac.il)

copyright: SAMBA Group , Tel-Aviv Univ. Israel, 1997, 1999.

Back to the top of Atom


CHANGES LOG

Back to the top of Atom


USAGE

Back to the top of Atom


Atom();

An empty constructor that gives the atom members null values

  Atom();

Back to the top of Atom


Atom(const Vector3& p, const char ch, const unsigned short aid, const unsigned short resid, const char* const t, const char resTp, const char resICode );

An explicit constructor

  Atom(const Vector3& p, const char ch, const unsigned short aid, 
       const unsigned short resid, 
       const char* const t,
       const char resTp,
       const char resICode = ' ');

Back to the top of Atom


Atom(const Vector3& p, const AtomEntryType atp, const char ch, const unsigned short aid, const unsigned short resid, const char* const t, const char resTp, const char* const res, const char resICode );

  Atom(const Vector3& p, const AtomEntryType atp, const char ch,
       const unsigned short aid, const unsigned short resid,
       const char* const t, const char resTp, const char* const res, const char resICode = ' ');

Back to the top of Atom


Atom(const Vector3& p, const AtomEntryType atp, const char ch, const unsigned short aid, const unsigned short resid, const char* const atomName_, const char resTp, const char* const res, const float occup, const float tmp, const char resICode );

  Atom(const Vector3& p, const AtomEntryType atp, const char ch,
       const unsigned short aid, const unsigned short resid,
       const char* const atomName_, const char resTp, const char* const res,
       const float occup, const float tmp, const char resICode = ' ');

Back to the top of Atom


Atom(const Vector3& p, unsigned short aid);

  Atom(const Vector3& p, unsigned short aid);

Back to the top of Atom


explicit Atom(const char* const PDBrec);

A constructor that intiate an atom type from a line of a PDB record

  explicit Atom(const char* const PDBrec);

Back to the top of Atom


char chainId() const;

Returns the chainId - important for working with complexes

  char chainId() const;

Back to the top of Atom


char altLocIndicator() const;

Returns the alternative location indicator.

  char altLocIndicator() const;

Back to the top of Atom


unsigned short atomIndex() const;

returns the atom index in the PDB file

  unsigned short atomIndex() const;

Back to the top of Atom


short residueIndex() const;

returns the residue (thas the atom belongs to) index in the PDB file

  short residueIndex() const;

Back to the top of Atom


char residueICode() const;

returns space if there are no alternatives for this atom, column 26 in PDB format

  char residueICode() const;

Back to the top of Atom


const char *const type() const;

Returns the atom type

  const char *const type() const;

Back to the top of Atom


char residueType() const;

Returns the residue type in one letter code.

  char residueType() const;

Back to the top of Atom


const char *const residueName() const;

Returns the residue type in 3-letter mnemonic. If no matching mnemonic is found a NULL pointer is returned.

  const char *const residueName() const;

Back to the top of Atom


AtomEntryType getAtomEntryType() const;

Return the type of the PDB entry, currently only ATOM and HETATM are identified.

  AtomEntryType getAtomEntryType() const;

Back to the top of Atom


float getOccupancy() const;

Returns the occupancy, which is a measure of the fraction of molecules in the crystal in which the current atom actually occupies the specified position

  float getOccupancy() const;

Back to the top of Atom


float getTempFactor() const;

Returns the temperature factor, which is a measure of how much an atom oscillates or vibrates around the specified position

  float getTempFactor() const;

Back to the top of Atom


void setTempFactor(float ftemp);

Sets new temperature factor

  void setTempFactor(float ftemp);

Back to the top of Atom


bool isBackbone() const;

Returns true if the atom is backbone atom: N, Ca, C, O

  bool isBackbone() const;

Back to the top of Atom


bool isCA() const;

Returns true if the atom is CA atom

  bool isCA() const;

Back to the top of Atom


bool isCB() const;

Returns true if the atom is CB atom

  bool isCB() const;

Back to the top of Atom


bool isN() const;

Returns true if the atom is N atom

  bool isN() const;

Back to the top of Atom


bool isC() const;

Returns true if the atom is C atom

  bool isC() const;

Back to the top of Atom


bool isO() const;

Returns true if the atom is O atom

  bool isO() const;

Back to the top of Atom


bool isH() const;

Returns true if the atom is H atom

  bool isH() const;

Back to the top of Atom


bool isWater() const;

Returns true if the atom is water's atom

  bool isWater() const;

Back to the top of Atom


void setChainId(const char newChainId);

Sets the chain ID for various implementation like the VMD coloring scheme, or RasMol web assignment. Please make sure you use it with accordance to the appropriate software util.

  void setChainId(const char newChainId);

Back to the top of Atom


void setAtomId(unsigned short newAtomId);

Set atomId

  void setAtomId(unsigned short newAtomId);

Back to the top of Atom


Atom& operator*=(const RigidTrans3& rt) ;

applies transformation on Atom coordinates

  Atom& operator*=(const RigidTrans3& rt)                                                        
;

Function is currently defined inline.


Back to the top of Atom


operator RESIDUE_INDEX()const ;

Converts Atom into RESIDUE_INDEX (atoms of the same residue type will have the same RESIDUE_INDEX)

  operator RESIDUE_INDEX()const                        ;

Function is currently defined inline.


Back to the top of Atom


void setSSE(const pair< char,short>& isseInfo) ;

Updates SSE information

  void setSSE(const pair< char,short>& isseInfo)                   
;

Function is currently defined inline.


Back to the top of Atom


pair< char,short> getSSE()const ;

Updates SSE information

  pair< char,short> getSSE()const                 
;

Function is currently defined inline.


Back to the top of Atom


string parseAtomName(const char* const atomName_);

  static string parseAtomName(const char* const atomName_);

Back to the top of Atom


friend ostream& operator<<(ostream& s, const Atom& at);

Writing back the PBD line - without the endline

  friend ostream& operator<<(ostream& s, const Atom& at);

Back to the top of Atom


All Members

public:
// define real type.
typedef float real;
// Inspection.
Vector3 position() const ;
real x() const ;
real x(const unsigned short coord) const ;
bool isZero() const ;
real norm() const ;
real norm2() const ;
real dist(const Vector3& p) const ;
real dist2(const Vector3& p) const ;
const real& operator[](const unsigned short coord) const ;
Vector3 getPerpendicularVector() const ;
Vector3 getUnitVector() const ;
// Operators.
bool operator==(const Vector3& v) const ;
friend Vector3 operator+(const Vector3& p1, const Vector3& p2) ;
friend Vector3 operator-(const Vector3& p1, const Vector3& p2) ;
friend Vector3 operator-(const Vector3& p) ;
friend real operator*(const Vector3& p1, const Vector3& p2) ;
friend Vector3 operator*(const Vector3& p, const real& m) ;
friend Vector3 operator*(const real& m, const Vector3& p) ;
friend Vector3 operator/(const Vector3& p, const real& m) ;
friend Vector3 operator&(const Vector3& p1, const Vector3& p2) ;
friend real operator|(const Vector3& p1, const Vector3& p2) ;
friend real operator^(const Vector3& p1, const Vector3& p2) ;
Vector3& operator+=(const Vector3& p) ;
Vector3& operator-=(const Vector3& p) ;
Vector3& operator*=(const real& m) ;
Vector3& operator/=(const real& m) ;
friend ostream& operator<<(ostream& s, const Vector3& v) ;
friend istream& operator>>(istream& s, Vector3& v) ;
void output(FILE* outputFile) const ;
// Constructors
explicit Atom(const char* const PDBrec);
// Inspectors
char chainId() const;
char altLocIndicator() const;
unsigned short atomIndex() const;
short residueIndex() const;
char residueICode() const;
const char *const type() const;
char residueType() const;
const char *const residueName() const;
AtomEntryType getAtomEntryType() const;
float getOccupancy() const;
float getTempFactor() const;
void setTempFactor(float ftemp);
bool isBackbone() const;
bool isCA() const;
bool isCB() const;
bool isN() const;
bool isC() const;
bool isO() const;
bool isH() const;
bool isWater() const;
// Adaptors
void setChainId(const char newChainId);
void setAtomId(unsigned short newAtomId);
Atom& operator*=(const RigidTrans3& rt) ;
operator RESIDUE_INDEX()const ;
void setSSE(const pair< char,short>& isseInfo) ;
pair< char,short> getSSE()const ;
static string parseAtomName(const char* const atomName_);
friend ostream& operator<<(ostream& s, const Atom& at);
protected:

Back to the top of Atom


Ancestors

Inheritance chain for Atom:

Back to the top of Atom


Descendants

Back to the top of Atom


Generated from source by the Cocoon utilities on Sun Nov 15 13:35:25 2009 .

Report problems to jkotula@unimax.com