28 #include <openbabel/babelconfig.h> 31 # define EXTERN extern 64 void AddAtom(
OBAtom *atom);
66 void InsertAtom(
OBAtom *atom);
68 void RemoveAtom(
OBAtom *atom);
79 void SetName(
const std::string &resname);
81 void SetNum(
const unsigned int resnum);
82 void SetNum(
const std::string resnum);
84 void SetChain(
const char chain);
86 void SetChainNum(
const unsigned int chainnum);
89 void SetIdx(
const unsigned int idx);
94 void SetInsertionCode(
const char insertioncode);
98 void SetAtomID(
OBAtom *atom,
const std::string &
id);
99 void SetHetAtom(
OBAtom *atom,
bool hetatm);
101 void SetSerialNum(
OBAtom *atom,
unsigned int sernum);
104 std::string
GetName(
void)
const;
107 std::string GetNumString(
void);
109 unsigned int GetNumAtoms()
const;
111 char GetChain(
void)
const;
113 unsigned int GetChainNum(
void)
const;
115 unsigned int GetIdx(
void)
const;
117 unsigned int GetResKey(
void)
const;
120 std::vector<OBAtom*> GetAtoms(
void)
const;
123 std::vector<OBBond*> GetBonds(
bool exterior=
true)
const;
127 std::string GetAtomID(
OBAtom *atom)
const;
129 unsigned GetSerialNum(
OBAtom *atom)
const;
132 char GetInsertionCode(
void)
const;
136 bool GetAminoAcidProperty(
int)
const;
139 bool GetAtomProperty(
OBAtom *a,
int)
const;
142 bool GetResidueProperty(
int)
const;
145 bool IsHetAtom(
OBAtom *atom)
const;
148 bool IsResidueType(
int)
const;
152 OBAtomIterator BeginAtoms() {
return _atoms.begin(); }
158 OBAtom *BeginAtom(std::vector<OBAtom*>::iterator &i);
161 OBAtom *NextAtom(std::vector<OBAtom*>::iterator &i);
195 #define AA_ALA (1<<1) 196 #define AA_GLY (1<<2) 197 #define AA_LEU (1<<3) 198 #define AA_SER (1<<4) 199 #define AA_VAL (1<<5) 200 #define AA_THR (1<<6) 201 #define AA_LYS (1<<7) 202 #define AA_ASP (1<<8) 203 #define AA_ILE (1<<9) 204 #define AA_ASN (1<<10) 205 #define AA_GLU (1<<11) 206 #define AA_PRO (1<<12) 207 #define AA_ARG (1<<13) 208 #define AA_PHE (1<<14) 209 #define AA_GLN (1<<15) 210 #define AA_TYR (1<<16) 211 #define AA_HIS (1<<17) 212 #define AA_CYS (1<<18) 213 #define AA_MET (1<<19) 214 #define AA_TRP (1<<20) 219 #define IS_ACIDIC(x) ((x) & ((AA_ASP)|(AA_GLU))) 220 #define IS_ACYCLIC(x) ((x) & ((AA_ALA)|(AA_GLY)|(AA_LEU)|(AA_SER)| \ 221 (AA_VAL)|(AA_THR)|(AA_LYS)|(AA_ASP)| \ 222 (AA_ILE)|(AA_ASN)|(AA_GLU)|(AA_GLN)| \ 224 #define IS_ALIPHATIC(x) ((x) & ((AA_ALA)|(AA_GLY)|(AA_ILE)|(AA_LEU)| \ 226 #define IS_AROMATIC(x) ((x) & ((AA_HIS)|(AA_PHE)|(AA_TRP)|(AA_TYR))) 227 #define IS_BASIC(x) ((x) & ((AA_ARG)|(AA_HIS)|(AA_LYS))) 228 #define IS_BURIED(x) ((x) & ((AA_ALA)|(AA_CYS)|(AA_ILE)|(AA_LEU)| \ 229 (AA_MET)|(AA_PHE)|(AA_TRP)|(AA_VAL))) 230 #define IS_CHARGED(x) ((x) & ((AA_ASP)|(AA_GLU)|(AA_ARG)|(AA_HIS)| \ 232 #define IS_CYCLIC(x) ((x) & ((AA_HIS)|(AA_PHE)|(AA_PRO)|(AA_TRP)| \ 234 #define IS_HYDROPHOBIC(x) ((x) & ((AA_ALA)|(AA_LEU)|(AA_VAL)|(AA_ILE)| \ 235 (AA_PRO)|(AA_PHE)|(AA_MET)|(AA_TRP))) 236 #define IS_LARGE(x) ((x) & ((AA_ARG)|(AA_PHE)|(AA_GLN)|(AA_TYR)| \ 237 (AA_HIS)|(AA_LEU)|(AA_LYS)|(AA_ILE)| \ 238 (AA_GLU)|(AA_MET)|(AA_TRP))) 239 #define IS_MEDIUM(x) ((x) & ((AA_VAL)|(AA_THR)|(AA_ASP)|(AA_ASN)| \ 241 #define IS_NEGATIVE(x) ((x) & ((AA_ASP)|(AA_GLU))) 242 #define IS_NEUTRAL(x) ((x) & ((AA_ALA)|(AA_GLY)|(AA_LEU)|(AA_SER)| \ 243 (AA_VAL)|(AA_THR)|(AA_PHE)|(AA_GLN)| \ 244 (AA_TYR)|(AA_HIS)|(AA_CYS)|(AA_MET)| \ 245 (AA_TRP)|(AA_ILE)|(AA_ASN)|(AA_PRO))) 246 #define IS_POLAR(x) ((x) & ((AA_ASP)|(AA_ILE)|(AA_ASN)|(AA_GLU)| \ 247 (AA_SER)|(AA_THR)|(AA_ARG)|(AA_GLN)| \ 249 #define IS_POSITIVE(x) ((x) & ((AA_ARG)|(AA_HIS)|(AA_LYS))) 250 #define IS_SMALL(x) ((x) & ((AA_ALA)|(AA_GLY)|(AA_SER))) 251 #define IS_SURFACE(x) ((x) & ((AA_THR)|(AA_LYS)|(AA_ASP)|(AA_ILE)| \ 252 (AA_ASN)|(AA_GLU)|(AA_PRO)|(AA_ARG)| \ 253 (AA_GLY)|(AA_SER)|(AA_GLN)|(AA_TYR)| \ 257 namespace OBAminoAcidProperty
282 namespace OBResidueAtomProperty
303 namespace OBResidueIndex
367 namespace OBResidueProperty
Definition: residue.h:379
Definition: residue.h:317
Definition: residue.h:371
Definition: residue.h:270
Definition: residue.h:289
Definition: residue.h:295
Definition: residue.h:336
Definition: residue.h:291
Definition: residue.h:351
Definition: residue.h:347
std::string _resnum
Residue number (i.e., in file) 23, 1B, etc.
Definition: residue.h:170
unsigned int _reskey
Residue key ID – see SetResidueKeys()
Definition: residue.h:169
Definition: residue.h:327
std::vector< unsigned int > _sernum
List of serial numbers.
Definition: residue.h:177
Definition: residue.h:307
Base classes to build a graph.
std::string _resname
Residue text name.
Definition: residue.h:171
Definition: residue.h:340
Definition: residue.h:356
Definition: residue.h:268
Definition: residue.h:328
Definition: residue.h:349
Definition: residue.h:353
Definition: residue.h:287
Definition: residue.h:319
Definition: residue.h:313
Definition: residue.h:267
Definition: residue.h:272
Definition: residue.h:264
Definition: residue.h:321
const char * GetName(unsigned int atomic_number)
Definition: elements.cpp:96
Definition: residue.h:320
Definition: residue.h:261
Definition: residue.h:326
Definition: residue.h:293
Definition: residue.h:286
Definition: residue.h:290
char _insertioncode
PBB insertion code.
Definition: residue.h:172
Definition: residue.h:277
Definition: residue.h:269
Definition: residue.h:325
Definition: residue.h:339
Definition: residue.h:374
Definition: residue.h:271
Definition: residue.h:376
Definition: residue.h:341
Definition: residue.h:346
std::vector< OBAtom * >::iterator OBAtomIterator
A standard iterator over a vector of atoms.
Definition: atom.h:48
Definition: residue.h:331
Definition: residue.h:309
Definition: residue.h:360
Definition: residue.h:265
std::vector< OBBond * >::iterator OBBondIterator
A standard iterator over a vector of bonds.
Definition: atom.h:46
Definition: residue.h:332
Definition: residue.h:311
Definition: residue.h:358
Definition: residue.h:276
std::vector< bool > _hetatm
Is a given atom a HETAM.
Definition: residue.h:174
Definition: residue.h:362
Definition: residue.h:273
Definition: residue.h:308
Definition: residue.h:323
unsigned int _aakey
Amino Acid key ID – see SetResidueKeys()
Definition: residue.h:168
Definition: residue.h:377
Definition: residue.h:274
Definition: residue.h:348
Definition: residue.h:378
Definition: residue.h:345
Definition: residue.h:315
Definition: residue.h:372
Definition: residue.h:330
Definition: residue.h:292
Definition: residue.h:275
Definition: residue.h:288
Definition: residue.h:324
Definition: residue.h:359
Definition: residue.h:294
Definition: residue.h:329
char _chain
Chain ID.
Definition: residue.h:167
Definition: residue.h:262
Definition: residue.h:316
Definition: residue.h:322
std::vector< OBAtom * > _atoms
List of OBAtom in this residue.
Definition: residue.h:176
Definition: residue.h:342
Definition: residue.h:355
Definition: residue.h:337
Definition: residue.h:266
Definition: residue.h:310
Definition: residue.h:354
Definition: residue.h:335
OBAtomIterator EndAtoms()
Definition: residue.h:155
Definition: residue.h:350
Definition: residue.h:343
Definition: residue.h:375
Definition: residue.h:318
Definition: residue.h:352
Definition: residue.h:344
std::vector< std::string > _atomid
Residue atom text IDs.
Definition: residue.h:175
Definition: residue.h:338
Definition: residue.h:361
Base Class.
Definition: base.h:239
Definition: residue.h:334
Residue information.
Definition: residue.h:50
Definition: residue.h:373
Definition: residue.h:263
Definition: residue.h:357
Definition: residue.h:380
Definition: residue.h:333
unsigned int _idx
Residue index (i.e., internal index in an OBMol)
Definition: residue.h:166
Global namespace for all Open Babel code.
Definition: alias.h:22
Atom class.
Definition: atom.h:71