Mol2Atom

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

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

Quick Index

KEYWORD
AUTHORS
CHANGES LOG
GOALS
USAGE

Class Summary

class Mol2Atom
: public Vector3
{
public:
// Constructors
Mol2Atom();
Mol2Atom(const Vector3& p, const unsigned short aid, const string atom_name, const string atom_type, const ELEMENT element_, const unsigned int subst_id, const string subst_name, const float partialCharge_);
explicit Mol2Atom(const char* const mol2rec);
// Inspectors
unsigned short getAtomId() const ;
string getAtomName() const ;
string getAtomType() const ;
unsigned int getSubstId() const ;
string getSubstName() const ;
float getPartialCharge() const ;
float getRadius() const;
bool isHetero() const ;
ELEMENT getElement() const ;
static ELEMENT getElement(const string atomName, const string sybylAtomType);
// Modifiers
void setPartialCharge(float charge) ;
// io
void dumpInfo(ostream& output) const;
friend ostream& operator<<(ostream& s, const Mol2Atom& at);
ostream& output2PDB(ostream& s, unsigned int atomOffset ) const;
static void buildAtomType2ElementMap();
static void buildElement2RadiusMap();
protected:
unsigned short atomId;
string atomName;
string atomType;
ELEMENT element;
unsigned int substId;
string substName;
float partialCharge;
}; // Mol2Atom

Back to the top of Mol2Atom


KEYWORD

atom, mol2, ligand

Back to the top of Mol2Atom


AUTHORS

Oranit, Yuval, Dina (oranit,inbaryuv,duhovka@tau.ac.il)

copyright: SAMBA Group , Tel-Aviv Univ. Israel, 2003.

Back to the top of Mol2Atom


CHANGES LOG

Back to the top of Mol2Atom


GOALS

Back to the top of Mol2Atom

		

USAGE

		

Back to the top of Mol2Atom


Mol2Atom();

An empty constructor that gives the atom members null values

  Mol2Atom();

Back to the top of Mol2Atom


Mol2Atom(const Vector3& p, const unsigned short aid, const string atom_name, const string atom_type, const ELEMENT element_, const unsigned int subst_id, const string subst_name, const float partialCharge_);

An explicit constructor

  Mol2Atom(const Vector3& p, const unsigned short aid, 
	     const string atom_name, const string atom_type, 
	     const ELEMENT element_, const unsigned int subst_id, 
	     const string subst_name, const float partialCharge_);

Back to the top of Mol2Atom


explicit Mol2Atom(const char* const mol2rec);

A constructor that intiates an atom type from a line of a Mol2 record

  explicit Mol2Atom(const char* const mol2rec);

Back to the top of Mol2Atom


unsigned short getAtomId() const ;

returns the atom id in the mol2 file

  unsigned short getAtomId() const                   
;

Function is currently defined inline.


Back to the top of Mol2Atom


string getAtomName() const ;

returns atom name

  string getAtomName() const                     
;

Function is currently defined inline.


Back to the top of Mol2Atom


string getAtomType() const ;

returns atom Sybyl type

  string getAtomType() const                     
;

Function is currently defined inline.


Back to the top of Mol2Atom


unsigned int getSubstId() const ;

returns substructure id

  unsigned int getSubstId() const                    
;

Function is currently defined inline.


Back to the top of Mol2Atom


string getSubstName() const ;

returns substructure name

  string getSubstName() const                      
;

Function is currently defined inline.


Back to the top of Mol2Atom


float getPartialCharge() const ;

  float getPartialCharge() const                          
;

Function is currently defined inline.


Back to the top of Mol2Atom


float getRadius() const;

  float getRadius() const;

Back to the top of Mol2Atom


bool isHetero() const ;

  bool isHetero() const                                                                                                                                                                                                                                             ;

Function is currently defined inline.


Back to the top of Mol2Atom


ELEMENT getElement() const ;

  ELEMENT getElement() const                    
;

Function is currently defined inline.


Back to the top of Mol2Atom


ELEMENT getElement(const string atomName, const string sybylAtomType);

Determines the periodic table element according to the given SYBYL atom type

  static ELEMENT getElement(const string atomName, const string sybylAtomType);

Back to the top of Mol2Atom


void setPartialCharge(float charge) ;

  void setPartialCharge(float charge)                          
;

Function is currently defined inline.


Back to the top of Mol2Atom


void dumpInfo(ostream& output) const;

  void dumpInfo(ostream& output) const;

Back to the top of Mol2Atom


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

Writing back the mol2 line - without the endline

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

Back to the top of Mol2Atom


ostream& output2PDB(ostream& s, unsigned int atomOffset ) const;

Writing back in PDB format

  ostream& output2PDB(ostream& s, unsigned int atomOffset = 0) const;

Back to the top of Mol2Atom


void buildAtomType2ElementMap();

This method builds a static hash that maps sybyl atom type in upper case to the appropriate atom element.

  static void buildAtomType2ElementMap();

Back to the top of Mol2Atom


void buildElement2RadiusMap();

builds mapping between element type and radius

  static void buildElement2RadiusMap();

Back to the top of Mol2Atom


unsigned short atomId;

  unsigned short atomId;      // atom index

Back to the top of Mol2Atom


string atomName;

  string atomName;            // atom name

Back to the top of Mol2Atom


string atomType;

  string atomType;            // Sybyl atom type

Back to the top of Mol2Atom


ELEMENT element;

  ELEMENT element;            // The periodic table element

Back to the top of Mol2Atom


unsigned int substId;

  unsigned int substId;       // id of the substructure (not in use now, may cause problems with more than one substr)

Back to the top of Mol2Atom


string substName;

  string substName;           // name of the substructure (not in use now, may cause problems with more than one substr)

Back to the top of Mol2Atom


float partialCharge;

  float partialCharge;        // atom partialCharge  

Back to the top of Mol2Atom


All Members

public:
// Constructors
explicit Mol2Atom(const char* const mol2rec);
// Inspectors
unsigned short getAtomId() const ;
string getAtomName() const ;
string getAtomType() const ;
unsigned int getSubstId() const ;
string getSubstName() const ;
float getPartialCharge() const ;
float getRadius() const;
bool isHetero() const ;
ELEMENT getElement() const ;
static ELEMENT getElement(const string atomName, const string sybylAtomType);
// Modifiers
void setPartialCharge(float charge) ;
// io
void dumpInfo(ostream& output) const;
friend ostream& operator<<(ostream& s, const Mol2Atom& at);
ostream& output2PDB(ostream& s, unsigned int atomOffset ) const;
static void buildAtomType2ElementMap();
static void buildElement2RadiusMap();
protected:
unsigned short atomId;
string atomName;
string atomType;
ELEMENT element;
unsigned int substId;
string substName;
float partialCharge;

Back to the top of Mol2Atom


Ancestors

Inheritance chain for Mol2Atom:

Back to the top of Mol2Atom


Descendants

Class is not inherited by any others.

Back to the top of Mol2Atom


Generated from source by the Cocoon utilities on Mon Dec 21 11:44:47 2009 .

Report problems to jkotula@unimax.com