17 #ifndef _PDB_LOADER_H_
18 #define _PDB_LOADER_H_
24 #include <AminoAcid.h>
26 #include <LigandSet.h>
31 namespace Victor {
namespace Biopool {
55 PdbLoader(istream& _input = cin,
bool _permissive =
false,
56 bool _noHAtoms =
false,
bool _noHetAtoms =
false,
bool _noSecondary =
false,
57 bool _noConnection =
false,
bool _noWater =
true,
58 bool _verb =
true,
bool _allChains =
false,
string _NULL =
"",
bool _onlyMetal =
false,
59 bool _noNucleotideChains =
true)
60 : input(_input), permissive(_permissive), valid(true),
61 noHAtoms(_noHAtoms), noHetAtoms(_noHetAtoms), noSecondary(_noSecondary),
62 noConnection(_noConnection), noWater(_noWater), verbose(_verb),
63 allChains(_allChains), chain(
' '), model(999), altAtom(
'A'), helixCode(_NULL),
65 sheetCode(_NULL), onlyMetalHetAtoms(_onlyMetal),
66 noNucleotideChains(_noNucleotideChains) {
88 void setPermissive() {
92 void setNonPermissive() {
100 void setNoVerbose() {
104 void setChain(
char _ch) {
108 void setModel(
unsigned int _mod) {
112 void setAltAtom(
char _a) {
120 void setNoHetAtoms() {
123 void setOnlyMetalHetAtoms();
125 void setNoSecondary() {
129 void setWithSecondary() {
133 void setNoConnection() {
137 void setWithConnection() {
138 noConnection =
false;
143 void setAllChains() {
160 bool inSideChain(
const AminoAcid& aa,
const Atom& at);
161 void loadSecondary();
163 int parsePDBline(
string atomLine,
string tag, Ligand* lig, AminoAcid* aa);
174 bool onlyMetalHetAtoms;
184 bool noNucleotideChains;
189 vector<pair<int, int> > helixData;
190 vector<pair<int, int> > sheetData;
195 #endif //_PDB_LOADER_H_
void assignSecondary(Spacer &sp)
Definition: PdbLoader.cc:195
PdbLoader(istream &_input=cin, bool _permissive=false, bool _noHAtoms=false, bool _noHetAtoms=false, bool _noSecondary=false, bool _noConnection=false, bool _noWater=true, bool _verb=true, bool _allChains=false, string _NULL="", bool _onlyMetal=false, bool _noNucleotideChains=true)
Definition: PdbLoader.h:55
bool inSideChain(const AminoAcid &aa, const Atom &at)
Definition: PdbLoader.cc:176
void checkAndSetChain()
Definition: PdbLoader.cc:66
Loads components (Atoms, Groups, Spacer, etc.) in standard PDB format.
Definition: PdbLoader.h:36
virtual void loadProtein(Protein &prot)
Definition: PdbLoader.cc:258
int parsePDBline(string atomLine, string tag, Ligand *lig, AminoAcid *aa)
Definition: PdbLoader.cc:574
Base class for loading components (Atoms, Groups, etc.).
Definition: Loader.h:39
vector< char > getAllChains()
Definition: PdbLoader.cc:127
unsigned int getMaxModelsFast()
Definition: PdbLoader.cc:103
bool setBonds(Spacer &sp)
Definition: PdbLoader.cc:160
void checkModel()
Definition: PdbLoader.cc:89
unsigned int getMaxModels()
Definition: PdbLoader.cc:43