ForceBalance API  1.3
Automated optimization of force fields and empirical potentials
List of all members | Public Member Functions | Public Attributes
src.Mol2.mol2 Class Reference

This is to manage one mol2 series of lines on the form: More...

Inheritance diagram for src.Mol2.mol2:
[legend]
Collaboration diagram for src.Mol2.mol2:
[legend]

Public Member Functions

def __init__ (self, data)
 
def __repr__ (self)
 
def out (self, f=sys.stdout)
 
def set_mol_name (self, mol_name=None)
 bond identifier (integer, starting from 1) More...
 
def set_num_atoms (self, num_atoms=None)
 number of atoms (integer) More...
 
def set_num_bonds (self, num_bonds=None)
 number of bonds (integer) More...
 
def set_num_subst (self, num_subst=None)
 number of substructures (integer) More...
 
def set_num_feat (self, num_feat=None)
 number of features (integer) More...
 
def set_num_sets (self, num_sets=None)
 number of sets (integer) More...
 
def set_mol_type (self, mol_type=None)
 bond identifier (integer, starting from 1) More...
 
def set_charge_type (self, charge_type=None)
 bond identifier (integer, starting from 1) More...
 
def parse (self, data)
 Parse a series of text lines, and setup compound information. More...
 
def get_atom (self, id)
 return the atom instance given its atom identifier More...
 
def get_bonded_atoms (self, id)
 return a dictionnary of atom instances bonded to the atom, and their types More...
 
def set_donnor_acceptor_atoms (self, verbose=0)
 modify atom types to specify donnor, acceptor, or both More...
 

Public Attributes

 mol_name
 
 num_atoms
 
 num_bonds
 
 num_subst
 
 num_feat
 
 num_sets
 
 mol_type
 
 charge_type
 
 comments
 
 atoms
 
 bonds
 

Detailed Description

This is to manage one mol2 series of lines on the form:

 @<TRIPOS>MOLECULE
 CDK2.xray.inh1.1E9H
  34 37 0 0 0
 SMALL
 GASTEIGER
 Energy = 0
 
 @<TRIPOS>ATOM
       1 C1          5.4790   42.2880   49.5910 C.ar    1  <1>         0.0424
       2 C2          4.4740   42.6430   50.5070 C.ar    1  <1>         0.0447
 @<TRIPOS>BOND
      1     1     2   ar
      2     1     6   ar

Definition at line 291 of file Mol2.py.

Constructor & Destructor Documentation

◆ __init__()

def src.Mol2.mol2.__init__ (   self,
  data 
)

Definition at line 292 of file Mol2.py.

Member Function Documentation

◆ __repr__()

def src.Mol2.mol2.__repr__ (   self)

Definition at line 308 of file Mol2.py.

◆ get_atom()

def src.Mol2.mol2.get_atom (   self,
  id 
)

return the atom instance given its atom identifier

Definition at line 464 of file Mol2.py.

◆ get_bonded_atoms()

def src.Mol2.mol2.get_bonded_atoms (   self,
  id 
)

return a dictionnary of atom instances bonded to the atom, and their types

Definition at line 478 of file Mol2.py.

Here is the call graph for this function:

◆ out()

def src.Mol2.mol2.out (   self,
  f = sys.stdout 
)

Definition at line 328 of file Mol2.py.

Here is the call graph for this function:

◆ parse()

def src.Mol2.mol2.parse (   self,
  data 
)

Parse a series of text lines, and setup compound information.

Definition at line 408 of file Mol2.py.

Here is the call graph for this function:

◆ set_charge_type()

def src.Mol2.mol2.set_charge_type (   self,
  charge_type = None 
)

bond identifier (integer, starting from 1)

Definition at line 398 of file Mol2.py.

◆ set_donnor_acceptor_atoms()

def src.Mol2.mol2.set_donnor_acceptor_atoms (   self,
  verbose = 0 
)

modify atom types to specify donnor, acceptor, or both

Definition at line 493 of file Mol2.py.

Here is the call graph for this function:

◆ set_mol_name()

def src.Mol2.mol2.set_mol_name (   self,
  mol_name = None 
)

bond identifier (integer, starting from 1)

Definition at line 335 of file Mol2.py.

◆ set_mol_type()

def src.Mol2.mol2.set_mol_type (   self,
  mol_type = None 
)

bond identifier (integer, starting from 1)

Definition at line 389 of file Mol2.py.

◆ set_num_atoms()

def src.Mol2.mol2.set_num_atoms (   self,
  num_atoms = None 
)

number of atoms (integer)

Definition at line 344 of file Mol2.py.

◆ set_num_bonds()

def src.Mol2.mol2.set_num_bonds (   self,
  num_bonds = None 
)

number of bonds (integer)

Definition at line 353 of file Mol2.py.

◆ set_num_feat()

def src.Mol2.mol2.set_num_feat (   self,
  num_feat = None 
)

number of features (integer)

Definition at line 371 of file Mol2.py.

◆ set_num_sets()

def src.Mol2.mol2.set_num_sets (   self,
  num_sets = None 
)

number of sets (integer)

Definition at line 380 of file Mol2.py.

◆ set_num_subst()

def src.Mol2.mol2.set_num_subst (   self,
  num_subst = None 
)

number of substructures (integer)

Definition at line 362 of file Mol2.py.

Member Data Documentation

◆ atoms

src.Mol2.mol2.atoms

Definition at line 303 of file Mol2.py.

◆ bonds

src.Mol2.mol2.bonds

Definition at line 304 of file Mol2.py.

◆ charge_type

src.Mol2.mol2.charge_type

Definition at line 300 of file Mol2.py.

◆ comments

src.Mol2.mol2.comments

Definition at line 301 of file Mol2.py.

◆ mol_name

src.Mol2.mol2.mol_name

Definition at line 293 of file Mol2.py.

◆ mol_type

src.Mol2.mol2.mol_type

Definition at line 299 of file Mol2.py.

◆ num_atoms

src.Mol2.mol2.num_atoms

Definition at line 294 of file Mol2.py.

◆ num_bonds

src.Mol2.mol2.num_bonds

Definition at line 295 of file Mol2.py.

◆ num_feat

src.Mol2.mol2.num_feat

Definition at line 297 of file Mol2.py.

◆ num_sets

src.Mol2.mol2.num_sets

Definition at line 298 of file Mol2.py.

◆ num_subst

src.Mol2.mol2.num_subst

Definition at line 296 of file Mol2.py.


The documentation for this class was generated from the following file: