# Please go to the end to see rules of defining an atom  

============================================================================================
                        Defination begin
============================================================================================
--------------------------------------------------------------------------------------------
WILDATOM XX C N O S P
WILDATOM XA O S
WILDATOM XB C3 N2 N3 O2 S2 P2
WILDATOM XD S P
-------------------------------------------------------------------------------------------- 
 f1  f2    f3  f4  f5  f6  f7  f8      		f9          
-------------------------------------------------------------------------------------------- 
//3-membered ring atom
ATD  11    *   6   4  &
ATD  15    *   6   2  &
ATD  15    *   6   1  &
ATD  14    *   6   3  *  *  [db,NR.AR3.AR4.AR5]   (XA1) &   
ATD  14    *   6   3  *  *  *                     (XA1,XA1) &   
ATD  17    *   6   3  *  *  [AR1.AR2]          	  (O2[AR1.AR2]) & 
ATD  17    *   6   3  *  *  [AR1.AR2] 	 	  (N2[AR1.AR2]) &
ATD  16    *   6   3  *  *  [AR1.AR2]             &
ATD  13    *   6   3  *  *  [db,NR]               (N2[db']) &   
ATD  13    *   6   3  *  *  [db,AR3.AR4.AR5]      (N2[db']) &   
ATD  13    *   6   3  *  *  [db,NR]               (N3[db']) &   
ATD  13    *   6   3  *  *  [db,AR3.AR4.AR5]      (N3[db']) &   
ATD  13    *   6   3  *  *  [db,NR]               (P2[db']) &   
ATD  13    *   6   3  *  *  [db,AR3.AR4.AR5]      (P2[db']) &   
ATD  13    *   6   3  *  *  [db,NR]               (P3[db']) &   
ATD  13    *   6   3  *  *  [db,AR3.AR4.AR5]      (P3[db']) &   
ATD  13    *   6   3  *  *  [db,NR]               (P4[db']) &   
ATD  13    *   6   3  *  *  [db,AR3.AR4.AR5]      (P4[db']) &   
ATD  12    *   6   3  *  *  [db,NR]               &    
ATD  12    *   6   3  *  *  [db,AR3.AR4.AR5]      &    
ATD  91    *   1   &
ATD  61    *   14  & 
ATD  71    *   9   &
ATD  72    *   17  &
ATD  73    *   35  &      
ATD  74    *   53  &      
ATD  42    *   15  4  &  
ATD  41    *   15  2  &  
ATD  42    *   15  3  *   * [db]                  &  
ATD  41    *   15  3  &  
ATD  33    *   8   1  *  *  *     		  (C3[RG](O2)) &
ATD  33    *   8   1  *  *  *     		  (C3[RG](N3)) &
ATD  32    *   8   1  *  *  *     		  (C3(O2)) &
ATD  31    *   8   1  &
ATD  31    *   8   2  &
ATD  21    *   7   4  &  
ATD  25    *   7   1  &
ATD  22    *   7   3  *  *  *  			  (C3(O1)) & 
ATD  22    *   7   3  *  *  *  			  (C3(S1)) & 
ATD  23    *   7   3  *  *  *  			  (O1,O1) &
ATD  23    *   7   3  *  *  [AR1.AR2]  		  & 
ATD  23    *   7   3  *  *  *          		  (C3(N3[db])) & 
ATD  23    *   7   3  *  *  *          		  (N2(N3[db])) & 
ATD  23    *   7   3  *  *  *          		  (P2(N3[db])) & 
ATD  23    *   7   3  *  *  *          		  (XX[AR1.AR2]<a1>,XB(XB(XX[AR1.AR2]<a2>))) a1:a2:any 
ATD  23    *   7   3  *  *  *          		  (XB(XX[AR1.AR2]<a1>),XB(XX[AR1.AR2]<a2>)) a1:a2:any 
ATD  23    *   7   3  *  *  [db]   		  & 
ATD  21    *   7   3  &
ATD  22    *   7   2  *  *  [2sb]  		  (C3(O1)) &
ATD  22    *   7   2  *  *  [2sb]  		  (C3(S1)) & 
ATD  21    *   7   2  *  *  [2sb]   		  &
ATD  24    *   7   2  *  *  [sb,db]   		  &
ATD  25    *   7   2  &
ATD  51    *   16  1  & 
ATD  51    *   16  2  &
ATD  52    *   16  3  & 
ATD  53    *   16  4  & 
ATD  DU  &   
============================================================================================
			Field descriptions
============================================================================================
f1  ATD, which stands for atom type defination, ATD should always in the first three columns 
f2  Atom type name, can be letters or numbers   
f3  Residue names, which means this description is only applied to atoms in special residues
f4  Atomic number 
f5  Number of attached atoms 
f6  Number of attached hydrogen atoms
f7  For hydrogen, number of the electron-withdrawal atoms connected to the atom that the 
    hydrogen attached
f8  atomic property
f9  Chemical enviornment definations


============================================================================================
			Specific symbols
============================================================================================
*  Ignore this field
&  End of defination 
.  "or" operation in the ring and aromatity descriptions 


============================================================================================
			Predefined words
============================================================================================
EW   Electron-withdraw atom
AA   Amino acid residue
NA   Nucleric acid
BIO  AA + NA

AR1  Pure aromatic atom (such as benzene and pyridine)
AR2  Atom in a planar ring, usually the ring has two continous single bonds and at least two 
     double bonds
AR3  Atom in a planar ring, which has one or several double bonds formed between non-ring atoms
     and the ring atoms
AR4  Atom other than AR1, AR2, AR3 and AR5. 
AR5  Pure aliphatic atom in a ring, which is made of sp3 carbon

RG   Ring (from 3-membered to nine-membered)
RG3  3-membered ring 
RG4  4-membered ring 
RG5  5-membered ring 
RG6  6-membered ring 
RG7  7-membered ring 
RG8  8-membered ring 
RG9  9-membered ring 
NR   non-ring atom

SB   Single bond
DB   Double bond
TB   Triple bond
AB   Aromatic bond
DL   Delocalized bond (9 in AM1-BCC)
sb   Single bond, including aromtaic single, delocalized bond (9 in AM1-BCC) 
db   Double bond, including aromatic double
tb   Triple bond
 
'    Bond type (SB sb etc) followed by ' means the current atom forms this kind of bond with the 
     immediately precessor in a chain of atoms
     For example, (XD3[SB',db]) means the current atom XD3 has a double bond with the atom in 
     defination 
''   Bond type (SB sb etc) followed by '' means the current atom does not form this kind of bond 
     with the immediately precessor in a chain of atoms
============================================================================================
			Miscellaneous
============================================================================================
1. maximum line length is MAXCHAR (defined in define.h) characters
2. no space in the atomic property string
3. no space in the chemical environment string 
4. no filed missing before &
5. the defination order is crucial, special atom types should defined before the more general 
   ones
6. For AM1-BCC, five-memberred ring connected to a six memberred aromatic ring (like indole) is not
   considerred aromatic.
