BALL  1.5.0
PDBFile.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 
5 #ifndef BALL_FORMAT_PDBFILE_H
6 #define BALL_FORMAT_PDBFILE_H
7 
8 #ifndef BALL_CONCEPT_PROPERTY_H
9 # include <BALL/CONCEPT/property.h>
10 #endif
11 
12 #ifndef BALL_FORMAT_GENERICMOLFILE_H
14 #endif
15 
16 #ifndef BALL_DATATYPE_OPTIONS_H
17 # include <BALL/DATATYPE/options.h>
18 #endif
19 
20 #ifndef BALL_DATATYPE_QUADRUPLE_H
21 # include <BALL/DATATYPE/quadruple.h>
22 #endif
23 
24 #ifndef BALL_FORMAT_PDBDEFS_H
25 # include <BALL/FORMAT/PDBdefs.h>
26 #endif
27 
28 #ifndef BALL_FORMAT_PDBINFO_H
29 # include <BALL/FORMAT/PDBInfo.h>
30 #endif
31 
32 #ifndef BALL_KERNEL_PDBAtom_H
33 # include <BALL/KERNEL/PDBAtom.h>
34 #endif
35 
36 #ifndef BALL_KERNEL_SYSTEM_H
37 # include <BALL/KERNEL/system.h>
38 #endif
39 
40 #ifndef BALL_KERNEL_RESIDUE_H
41 # include <BALL/KERNEL/residue.h>
42 #endif
43 
44 #ifndef BALL_KERNEL_SECONDARYSTRUCTURE_H
46 #endif
47 
48 namespace BALL
49 {
50 
56  : public GenericMolFile,
57  public PropertyManager
58  {
59  public:
60 
67  {
74  static const char* VERBOSITY;
75 
82  static const char* STRICT_LINE_CHECKING;
83 
91  static const char* CHOOSE_MODEL;
92 
98  static const char* STORE_SKIPPED_RECORDS;
99 
105  static const char* IGNORE_XPLOR_PSEUDO_ATOMS;
106 
112  static const char* PARSE_PARTIAL_CHARGES;
113 
118  static const char* WRITE_PDBFORMAT_1996;
119  };
120 
124  {
129  static const Index VERBOSITY;
130 
135  static const bool STRICT_LINE_CHECKING;
136 
141  static const Index CHOOSE_MODEL;
142 
146  static const bool STORE_SKIPPED_RECORDS;
147 
151  static const bool IGNORE_XPLOR_PSEUDO_ATOMS;
152 
156  static const bool PARSE_PARTIAL_CHARGES;
157 
162  static const bool WRITE_PDBFORMAT_1996;
163 
164  };
165 
169  Options options;
174 
178 
182 
186  PDBFile(const String& filename, File::OpenMode open_mode = std::ios::in);
187 
190  PDBFile(const Options& new_options);
191 
194  virtual ~PDBFile();
196 
200 
202  virtual void clear(int state);
203 
205  virtual void clear();
206 
208 
212 
214  virtual float getVersion() const;
215 
216  void open(const String& name, File::OpenMode open_mode=std::ios::in);
217 
222  void selectModel(Index index);
223 
236 
239 
242 
245 
248 
250  const char* getRecordString() const;
251 
254 
257 
261  virtual const char* getAtomElementSymbol
262  (const PDB::Atom atom_name,
263  PDB::Atom element_symbol);
264 
266  virtual const char* getAtomName
267  (const PDB::Atom atom_name);
268 
271  (const PDB::Atom atom_name);
272 
275  (const PDB::Atom atom_name);
276 
279 
284  (PDB::RecordType record_type,
285  bool from_begin_of_file = true);
286 
290  (bool from_begin_of_file = true);
292 
299  bool parseLine(const char* line, Size size, const char* format_string, ...);
301 
303  bool readLine(char* line, Size size, bool extract_values);
304 
306  bool readFirstRecord(bool read_values = true);
307 
309  bool readNextRecord(bool read_values = true);
310 
315  bool readRecords();
316 
321  virtual bool readUnknownRecord(const char* line);
322 
325  virtual bool readInvalidRecord(const char* line);
326 
336 
338  virtual bool interpretRecord(const PDB::RecordANISOU& record);
339  virtual bool fillRecord(const char* line, Size size, PDB::RecordANISOU& record);
340  virtual bool parseRecordANISOU(const char* line, Size size);
341 
343  virtual bool interpretRecord(const PDB::RecordATOM& record);
344  virtual bool fillRecord(const char* line, Size size, PDB::RecordATOM& record);
345  virtual bool parseRecordATOM(const char* line, Size size);
346 
348  virtual bool interpretRecord(const PDB::RecordAUTHOR& record);
349  virtual bool fillRecord(const char* line, Size size, PDB::RecordAUTHOR& record);
350  virtual bool parseRecordAUTHOR(const char* line, Size size);
351 
353  virtual bool interpretRecord(const PDB::RecordCAVEAT& record);
354  virtual bool fillRecord(const char* line, Size size, PDB::RecordCAVEAT& record);
355  virtual bool parseRecordCAVEAT(const char* line, Size size);
356 
358  virtual bool interpretRecord(const PDB::RecordCISPEP& record);
359  virtual bool fillRecord(const char* line, Size size, PDB::RecordCISPEP& record);
360  virtual bool parseRecordCISPEP(const char* line, Size size);
361 
363  virtual bool interpretRecord(const PDB::RecordCOMPND& record);
364  virtual bool fillRecord(const char* line, Size size, PDB::RecordCOMPND& record);
365  virtual bool parseRecordCOMPND(const char* line, Size size);
366 
368  virtual bool interpretRecord(const PDB::RecordCONECT& record);
369  virtual bool fillRecord(const char* line, Size size, PDB::RecordCONECT& record);
370  virtual bool parseRecordCONECT(const char* line, Size size);
371 
375  virtual bool interpretRecord(const PDB::RecordCRYST1& record);
376  virtual bool fillRecord(const char* line, Size size, PDB::RecordCRYST1& record);
377  virtual bool parseRecordCRYST1(const char* line, Size size);
378 
380  virtual bool interpretRecord(const PDB::RecordDBREF& record);
381  virtual bool fillRecord(const char* line, Size size, PDB::RecordDBREF& record);
382  virtual bool parseRecordDBREF(const char* line, Size size);
383 
385  virtual bool interpretRecord(const PDB::RecordEND& record);
386  virtual bool fillRecord(const char* line, Size size, PDB::RecordEND& record);
387  virtual bool parseRecordEND(const char* line, Size size);
388 
390  virtual bool interpretRecord(const PDB::RecordENDMDL& record);
391  virtual bool fillRecord(const char* line, Size size, PDB::RecordENDMDL& record);
392  virtual bool parseRecordENDMDL(const char* line, Size size);
393 
395  virtual bool interpretRecord(const PDB::RecordEXPDTA& record);
396  virtual bool fillRecord(const char* line, Size size, PDB::RecordEXPDTA& record);
397  virtual bool parseRecordEXPDTA(const char* line, Size size);
398 
402  virtual bool interpretRecord(const PDB::RecordFORMUL& record);
403  virtual bool fillRecord(const char* line, Size size, PDB::RecordFORMUL& record);
404  virtual bool parseRecordFORMUL(const char* line, Size size);
405 
407  virtual bool interpretRecord(const PDB::RecordFTNOTE& record);
408  virtual bool fillRecord(const char* line, Size size, PDB::RecordFTNOTE& record);
409  virtual bool parseRecordFTNOTE(const char* line, Size size);
410 
414  virtual bool interpretRecord(const PDB::RecordHEADER& record);
415  virtual bool fillRecord(const char* line, Size size, PDB::RecordHEADER& record);
416  virtual bool parseRecordHEADER(const char* line, Size size);
417 
419  virtual bool interpretRecord(const PDB::RecordHELIX& record);
420  virtual bool fillRecord(const char* line, Size size, PDB::RecordHELIX& record);
421  virtual bool parseRecordHELIX(const char* line, Size size);
422 
424  virtual bool interpretRecord(const PDB::RecordHET& record);
425  virtual bool fillRecord(const char* line, Size size, PDB::RecordHET& record);
426  virtual bool parseRecordHET(const char* line, Size size);
427 
429  virtual bool interpretRecord(const PDB::RecordHETATM& record);
430  virtual bool fillRecord(const char* line, Size size, PDB::RecordHETATM& record);
431  virtual bool parseRecordHETATM(const char* line, Size size);
432 
434  virtual bool interpretRecord(const PDB::RecordHETNAM& record);
435  virtual bool fillRecord(const char* line, Size size, PDB::RecordHETNAM& record);
436  virtual bool parseRecordHETNAM(const char* line, Size size);
437 
439  virtual bool interpretRecord(const PDB::RecordHETSYN& record);
440  virtual bool fillRecord(const char* line, Size size, PDB::RecordHETSYN& record);
441  virtual bool parseRecordHETSYN(const char* line, Size size);
442 
444  virtual bool interpretRecord(const PDB::RecordHYDBND& record);
445  virtual bool fillRecord(const char* line, Size size, PDB::RecordHYDBND& record);
446  virtual bool parseRecordHYDBND(const char* line, Size size);
447 
449  virtual bool interpretRecord(const PDB::RecordJRNL& record);
450  virtual bool fillRecord(const char* line, Size size, PDB::RecordJRNL& record);
451  virtual bool parseRecordJRNL(const char* line, Size size);
452 
454  virtual bool interpretRecord(const PDB::RecordKEYWDS& record);
455  virtual bool fillRecord(const char* line, Size size, PDB::RecordKEYWDS& record);
456  virtual bool parseRecordKEYWDS(const char* line, Size size);
457 
459  virtual bool interpretRecord(const PDB::RecordLINK& record);
460  virtual bool fillRecord(const char* line, Size size, PDB::RecordLINK& record);
461  virtual bool parseRecordLINK(const char* line, Size size);
462 
466  virtual bool interpretRecord(const PDB::RecordMASTER& record);
467  virtual bool fillRecord(const char* line, Size size, PDB::RecordMASTER& record);
468  virtual bool parseRecordMASTER(const char* line, Size size);
469 
471  virtual bool interpretRecord(const PDB::RecordMODEL& record);
472  virtual bool fillRecord(const char* line, Size size, PDB::RecordMODEL& record);
473  virtual bool parseRecordMODEL(const char* line, Size size);
474 
476  virtual bool interpretRecord(const PDB::RecordMODRES& record);
477  virtual bool fillRecord(const char* line, Size size, PDB::RecordMODRES& record);
478  virtual bool parseRecordMODRES(const char* line, Size size);
479 
483  virtual bool interpretRecord(const PDB::RecordMTRIX1& record);
484  virtual bool fillRecord(const char* line, Size size, PDB::RecordMTRIX1& record);
485  virtual bool parseRecordMTRIX1(const char* line, Size size);
486 
490  virtual bool interpretRecord(const PDB::RecordMTRIX2& record);
491  virtual bool fillRecord(const char* line, Size size, PDB::RecordMTRIX2& record);
492  virtual bool parseRecordMTRIX2(const char* line, Size size);
493 
497  virtual bool interpretRecord(const PDB::RecordMTRIX3& record);
498  virtual bool fillRecord(const char* line, Size size, PDB::RecordMTRIX3& record);
499  virtual bool parseRecordMTRIX3(const char* line, Size size);
500 
504  virtual bool interpretRecord(const PDB::RecordOBSLTE& record);
505  virtual bool fillRecord(const char* line, Size size, PDB::RecordOBSLTE& record);
506  virtual bool parseRecordOBSLTE(const char* line, Size size);
507 
511  virtual bool interpretRecord(const PDB::RecordORIGX1& record);
512  virtual bool fillRecord(const char* line, Size size, PDB::RecordORIGX1& record);
513  virtual bool parseRecordORIGX1(const char* line, Size size);
514 
518  virtual bool interpretRecord(const PDB::RecordORIGX2& record);
519  virtual bool fillRecord(const char* line, Size size, PDB::RecordORIGX2& record);
520  virtual bool parseRecordORIGX2(const char* line, Size size);
521 
525  virtual bool interpretRecord(const PDB::RecordORIGX3& record);
526  virtual bool fillRecord(const char* line, Size size, PDB::RecordORIGX3& record);
527  virtual bool parseRecordORIGX3(const char* line, Size size);
528 
530  virtual bool interpretRecord(const PDB::RecordREMARK& record);
531  virtual bool fillRecord(const char* line, Size size, PDB::RecordREMARK& record);
532  virtual bool parseRecordREMARK(const char* line, Size size);
533 
535  virtual bool interpretRecord(const PDB::RecordREVDAT& record);
536  virtual bool fillRecord(const char* line, Size size, PDB::RecordREVDAT& record);
537  virtual bool parseRecordREVDAT(const char* line, Size size);
538 
540  virtual bool interpretRecord(const PDB::RecordSCALE1& record);
541  virtual bool fillRecord(const char* line, Size size, PDB::RecordSCALE1& record);
542  virtual bool parseRecordSCALE1(const char* line, Size size);
543 
545  virtual bool interpretRecord(const PDB::RecordSCALE2& record);
546  virtual bool fillRecord(const char* line, Size size, PDB::RecordSCALE2& record);
547  virtual bool parseRecordSCALE2(const char* line, Size size);
548 
550  virtual bool interpretRecord(const PDB::RecordSCALE3& record);
551  virtual bool fillRecord(const char* line, Size size, PDB::RecordSCALE3& record);
552  virtual bool parseRecordSCALE3(const char* line, Size size);
553 
555  virtual bool interpretRecord(const PDB::RecordSEQADV& record);
556  virtual bool fillRecord(const char* line, Size size, PDB::RecordSEQADV& record);
557  virtual bool parseRecordSEQADV(const char* line, Size size);
558 
560  virtual bool interpretRecord(const PDB::RecordSEQRES& record);
561  virtual bool fillRecord(const char* line, Size size, PDB::RecordSEQRES& record);
562  virtual bool parseRecordSEQRES(const char* line, Size size);
563 
565  virtual bool interpretRecord(const PDB::RecordSHEET& record);
566  virtual bool fillRecord(const char* line, Size size, PDB::RecordSHEET& record);
567  virtual bool parseRecordSHEET(const char* line, Size size);
568 
570  virtual bool interpretRecord(const PDB::RecordSIGATM& record);
571  virtual bool fillRecord(const char* line, Size size, PDB::RecordSIGATM& record);
572  virtual bool parseRecordSIGATM(const char* line, Size size);
573 
577  virtual bool interpretRecord(const PDB::RecordSIGUIJ& record);
578  virtual bool fillRecord(const char* line, Size size, PDB::RecordSIGUIJ& record);
579  virtual bool parseRecordSIGUIJ(const char* line, Size size);
580 
582  virtual bool interpretRecord(const PDB::RecordSITE& record);
583  virtual bool fillRecord(const char* line, Size size, PDB::RecordSITE& record);
584  virtual bool parseRecordSITE(const char* line, Size size);
585 
587  virtual bool interpretRecord(const PDB::RecordSLTBRG& record);
588  virtual bool fillRecord(const char* line, Size size, PDB::RecordSLTBRG& record);
589  virtual bool parseRecordSLTBRG(const char* line, Size size);
590 
594  virtual bool interpretRecord(const PDB::RecordSOURCE& record);
595  virtual bool fillRecord(const char* line, Size size, PDB::RecordSOURCE& record);
596  virtual bool parseRecordSOURCE(const char* line, Size size);
597 
599  virtual bool interpretRecord(const PDB::RecordSPRSDE& record);
600  virtual bool fillRecord(const char* line, Size size, PDB::RecordSPRSDE& record);
601  virtual bool parseRecordSPRSDE(const char* line, Size size);
602 
604  virtual bool interpretRecord(const PDB::RecordSSBOND& record);
605  virtual bool fillRecord(const char* line, Size size, PDB::RecordSSBOND& record);
606  virtual bool parseRecordSSBOND(const char* line, Size size);
607 
609  virtual bool interpretRecord(const PDB::RecordTER& record);
610  virtual bool fillRecord(const char* line, Size size, PDB::RecordTER& record);
611  virtual bool parseRecordTER(const char* line, Size size);
612 
614  virtual bool interpretRecord(const PDB::RecordTITLE& record);
615  virtual bool fillRecord(const char* line, Size size, PDB::RecordTITLE& record);
616  virtual bool parseRecordTITLE(const char* line, Size size);
617 
619  virtual bool interpretRecord(const PDB::RecordTURN& record);
620  virtual bool fillRecord(const char* line, Size size, PDB::RecordTURN& record);
621  virtual bool parseRecordTURN(const char* line, Size size);
622 
626  virtual bool interpretRecord(const PDB::RecordTVECT& record);
627  virtual bool fillRecord(const char* line, Size size, PDB::RecordTVECT& record);
628  virtual bool parseRecordTVECT(const char* line, Size size);
630 
632  virtual bool hasFormat();
633 
637  typedef std::list<ResidueQuadruple> QuadrupleList;
638  typedef std::list<SecondaryStructure*> SecStructList;
639 
640 
643 
648 
653 
658 
662  PDBFile& operator << (const Protein& protein);
663 
667  PDBFile& operator << (const System& system);
668 
672  PDBFile& operator << (const Molecule& molecule);
673 
679  bool read(Protein& protein);
680 
686  bool read(Molecule& protein);
687 
693  bool read(System& system);
694 
701 
707  bool write(const Protein& protein);
708 
714  bool write(const Molecule& molecule);
715 
721  bool write(const System& system);
722 
728  bool write(const System& system, const PDBInfo& info);
730 
731  protected:
732 
733  //_
734  PDBFile(const File& pdbf);
735 
736  //_
737  PDBFile& operator = (const PDBFile& pdbf);
738 
739  /*_ A helper function for initializing certain data structures. Used by
740  constructors.
741  */
742  void init_() ;
743 
746  void postprocessSheetsTurns_(QuadrupleList& sectruct_list, SecStructList& new_secstruct_list);
748 
749 
750 
751  // Method related to the writing of PDB files
752 
753  //
754  void write_(const AtomContainer& ac, const PDBInfo& info = PDBInfo());
755 
761  void writeRecord_(PDB::RecordType record, ...);
763 
770  void writeRawRecord_(const char* format, const char* tag, ...);
771 
773  void addAllRecords_(const PDBInfo& info, PDB::RecordType type);
774 
776  void writeRecord_(const PDB::RecordSEQRES& seqres);
778  void writeRecord_(const PDB::RecordHELIX& helix);
780  void writeRecord_(const PDB::RecordSHEET& helix);
782  void writeRecord_(const PDB::RecordTURN& helix);
784  void writeRecord_(const PDB::RecordSSBOND& helix);
786  void writeRecord_(const PDB::RecordCONECT& helix);
788  void writeRecord_(const PDB::RecordCRYST1& cryst1);
790  void writeRecord_(const PDB::RecordMTRIX1& mtrix1);
792  void writeRecord_(const PDB::RecordMTRIX2& mtrix2);
794  void writeRecord_(const PDB::RecordMTRIX3& mtrix3);
795 
796  void writeAtom_(const PDB::Structure::AtomEntry& atom, PDB::AdditionalAtomInfo& cr, bool hetatm = false);
797 
798  void writeTitleSection_(const PDB::Structure& structure, const PDBInfo& info);
799  void writePrimaryStructureSection_(const PDB::Structure& structure, const PDBInfo& info);
800  void writeHeterogenSection_(const PDB::Structure& structure, const PDBInfo& info);
801  void writeSecondaryStructureSection_(const PDB::Structure& structure, const PDBInfo& info);
802  void writeConnectivityAnnotationSection_(const PDB::Structure& structure, const PDBInfo& info);
803  void writeMiscellaneousFeaturesSection_(const PDB::Structure& structure, const PDBInfo& info);
804  void writeCrystallographicSection_(const PDB::Structure& structure, const PDBInfo& info);
805  void writeCoordinateSection_(const PDB::Structure& structure, const PDBInfo& info);
806  void writeConnectivitySection_(const PDB::Structure& structure, const PDBInfo& info);
807  void writeBookKeepingSection_(const PDB::Structure& structure, const PDBInfo& info);
808 
809  void writeSEQRESSection_(const std::vector<std::pair<char, String> >& chain_residues);
810  void writeHELIXSection_(const PDB::Structure& structure);
811  void writeSHEETSection_(const PDB::Structure& structure);
812  void writeTURNSection_(const PDB::Structure& structure);
813  void writeSSBONDSection_(const PDB::Structure& structure);
814  void writeHYDBNDSection_(const PDB::Structure& structure);
815  void writeSLTBRGSection_(const PDB::Structure& structure);
816  void writeCRYST1Section_(const PDB::Structure& structure);
817  void writeMTRIXnSection_(const PDB::Structure& structure);
818 
822  static void extractStructure_(const AtomContainer& ac, PDB::Structure& structure);
823 
827  static bool isHeteroAtom_(const Atom& atom);
828 
835 
836 
837  char line_buffer_[PDB::SIZE_OF_PDB_LINE_BUFFER];
838 
846 
853 
857 
873 
876 
879 
881 
884 
887 
890 
893 
896 
900  };
901 
902 
903 
904 
905 
909  inline
911 
912  {
913  return (Index)quadruple.third;
914  }
915 
919  inline
921  {
922  return s;
923  }
924 
925 
926 
927 # ifndef BALL_NO_INLINE_FUNCTIONS
928 # include <BALL/FORMAT/PDBFile.iC>
929 # endif
930 
931 } // namespace BALL
932 
933 #endif // BALL_FORMAT_PDBFILE_H
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordCISPEP &record)
Reads a record specifying peptides in cis conformation.
BALL::PDBFile::current_const_residue_
const Residue * current_const_residue_
Definition: PDBFile.h:868
BALL::PDBFile::Default::VERBOSITY
static const Index VERBOSITY
Definition: PDBFile.h:129
BALL::PDBFile::write
bool write(const System &system)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordSEQADV &record)
BALL::PDBFile::writeRawRecord_
void writeRawRecord_(const char *format, const char *tag,...)
BALL::PDBFile::new_helix_secstruc_list_
SecStructList new_helix_secstruc_list_
Definition: PDBFile.h:854
BALL::PDBFile::getAtomBranchDesignator
virtual short getAtomBranchDesignator(const PDB::Atom atom_name)
Extract the PDB branch designator of an atom record.
BALL::PDBFile::writePrimaryStructureSection_
void writePrimaryStructureSection_(const PDB::Structure &structure, const PDBInfo &info)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordCOMPND &record)
BALL::PDBFile::parseRecordMTRIX3
virtual bool parseRecordMTRIX3(const char *line, Size size)
BALL_EXPORT
#define BALL_EXPORT
Definition: COMMON/global.h:50
BALL::PDBFile::current_record_type_
PDB::RecordType current_record_type_
Definition: PDBFile.h:844
BALL::PDBFile::residue_map_
ResidueMap residue_map_
Definition: PDBFile.h:848
BALL::PDB::Structure
Definition: PDBdefs.h:1246
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordHETSYN &record)
Reads a record defining synonyms of a non-standard group.
BALL::PDB::RecordOBSLTE
Definition: PDBdefs.h:881
PDBdefs.h
BALL::PDBFile::parseRecordORIGX3
virtual bool parseRecordORIGX3(const char *line, Size size)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordCOMPND &record)
Reads the title record containing macroscopic compoubd information.
BALL::PDBFile::parseRecordAUTHOR
virtual bool parseRecordAUTHOR(const char *line, Size size)
BALL::PDBFile::writeRecord_
void writeRecord_(const PDB::RecordSHEET &helix)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordHETNAM &record)
Reads a record defining the name of a non-standard group.
BALL::PDBFile::parseRecordLINK
virtual bool parseRecordLINK(const char *line, Size size)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordTVECT &record)
BALL::PDBFile::writeTitleSection_
void writeTitleSection_(const PDB::Structure &structure, const PDBInfo &info)
BALL::PDB::RecordTypeFormat
Definition: PDBdefs.h:333
BALL::PDBFile::ResidueMap
HashMap< ResidueQuadruple, Residue * > ResidueMap
Definition: PDBFile.h:636
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordOBSLTE &record)
BALL::Chain
Definition: chain.h:32
BALL::PDBFile::verbosity_
int verbosity_
_Verbosity level
Definition: PDBFile.h:878
BALL::PDB::RecordREMARK
Definition: PDBdefs.h:912
BALL::PDB::RecordFORMUL
Definition: PDBdefs.h:644
BALL::PDBFile::read
bool read(Molecule &protein)
BALL::PDBFile::parseRecordSCALE1
virtual bool parseRecordSCALE1(const char *line, Size size)
BALL::PDBFile::QuadrupleList
std::list< ResidueQuadruple > QuadrupleList
Definition: PDBFile.h:637
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordSIGUIJ &record)
BALL::PDBFile::sheet_list_
QuadrupleList sheet_list_
Definition: PDBFile.h:851
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordSCALE2 &record)
Reads a scale transformation record.
BALL::PDB::RecordType
RecordType
Definition: PDBdefs.h:59
BALL::PDBFile::selectModel
void selectModel(Index index)
BALL::PDBFile::Option::STRICT_LINE_CHECKING
static const char * STRICT_LINE_CHECKING
Definition: PDBFile.h:82
BALL::PDBFile::current_const_protein_
const Protein * current_const_protein_
Definition: PDBFile.h:864
BALL::PDBFile::clear
virtual void clear(int state)
Clear the stream state.
BALL::PDBFile::read
bool read(System &system)
BALL::Options
Definition: options.h:48
BALL::PDBFile::parseRecordSLTBRG
virtual bool parseRecordSLTBRG(const char *line, Size size)
BALL::PDBFile::writeRecord_
void writeRecord_(const PDB::RecordHELIX &helix)
BALL::PDBFile::readRecords
bool readRecords()
BALL::PDBFile::readLine
bool readLine(char *line, Size size, bool extract_values)
Read and parse a line from a PDB file.
BALL::PDBFile::writeRecord_
void writeRecord_(const PDB::RecordMTRIX3 &mtrix3)
BALL::PDB::RecordTER
Definition: PDBdefs.h:1152
BALL::PDB::RecordMODEL
Definition: PDBdefs.h:837
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordSCALE2 &record)
BALL::PDBFile::name_
String name_
Definition: PDBFile.h:871
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordFTNOTE &record)
Reads a record containing a footnote.
BALL::PDBFile::record_fields_
Size record_fields_
Definition: PDBFile.h:843
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordMTRIX3 &record)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordORIGX1 &record)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordSSBOND &record)
Reads a record specifying a disulfide bond.
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordKEYWDS &record)
Reads a record containing keywords for this entry.
BALL::PDBFile::PDBFile
PDBFile(const Options &new_options)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordSSBOND &record)
BALL::PDBFile::writeRecord_
void writeRecord_(const PDB::RecordCRYST1 &cryst1)
BALL::PDB::Structure::ConectAtomList
Definition: PDBdefs.h:1264
BALL::PDB::RecordORIGX2
Definition: PDBdefs.h:898
BALL::PDB::RecordENDMDL
Definition: PDBdefs.h:628
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordSEQADV &record)
Sequence information conflicts between atom records and dbref content.
BALL::PDBFile::turn_list_
QuadrupleList turn_list_
Definition: PDBFile.h:852
BALL::PDBFile::selectAllModels
void selectAllModels()
Selects all models for reading.
property.h
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordSIGATM &record)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordHETSYN &record)
BALL::PDBFile::chain_ID_
PDB::Character chain_ID_
Definition: PDBFile.h:860
BALL::PDBFile::parseRecordMODRES
virtual bool parseRecordMODRES(const char *line, Size size)
BALL::PDBFile::parseRecordHEADER
virtual bool parseRecordHEADER(const char *line, Size size)
BALL::PDB::RecordKEYWDS
Definition: PDBdefs.h:783
BALL::PDBFile::writeHYDBNDSection_
void writeHYDBNDSection_(const PDB::Structure &structure)
BALL::HashMap< PDB::Integer, PDBAtom * >
BALL::AtomContainer
Definition: atomContainer.h:32
BALL::PDBFile::writeBookKeepingSection_
void writeBookKeepingSection_(const PDB::Structure &structure, const PDBInfo &info)
BALL::PDB::BookKeeping
Definition: PDBdefs.h:1210
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordCRYST1 &record)
BALL::PDB::RecordMTRIX3
Definition: PDBdefs.h:872
BALL::Molecule
Definition: molecule.h:31
BALL::PDBFile::current_chain_
Chain * current_chain_
Definition: PDBFile.h:865
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordMODRES &record)
Reads a record identifying residue modifications.
BALL::System
Definition: KERNEL/system.h:40
BALL::PDBFile::PDB_atom_map_
PDBAtomMap PDB_atom_map_
Definition: PDBFile.h:847
BALL::PDB::RecordSIGUIJ
Definition: PDBdefs.h:1060
BALL::PDBFile::strict_line_checking_
bool strict_line_checking_
Definition: PDBFile.h:880
BALL::PDB::RecordCONECT
Definition: PDBdefs.h:460
BALL::PDBFile::parseRecordREMARK
virtual bool parseRecordREMARK(const char *line, Size size)
BALL::PDBFile::current_protein_
Protein * current_protein_
Definition: PDBFile.h:863
BALL::PDBFile::readNextRecord
bool readNextRecord(bool read_values=true)
Read the next record of a PDB file.
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordFTNOTE &record)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordSOURCE &record)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordHEADER &record)
BALL::PDBFile::readUnknownRecord
virtual bool readUnknownRecord(const char *line)
BALL::PDBFile::isHeteroAtom_
static bool isHeteroAtom_(const Atom &atom)
BALL::PDBFile::writeSSBONDSection_
void writeSSBONDSection_(const PDB::Structure &structure)
BALL::PDBFile::sequence_number_
PDB::Integer sequence_number_
Definition: PDBFile.h:861
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordHYDBND &record)
BALL::PropertyManager
Definition: property.h:344
BALL::Atom
Definition: atom.h:90
BALL::PDB::RecordTURN
Definition: PDBdefs.h:1172
BALL::PDB::RecordMTRIX1
Definition: PDBdefs.h:854
BALL::PDBFile::Default::CHOOSE_MODEL
static const Index CHOOSE_MODEL
Definition: PDBFile.h:141
BALL::PDBFile::parseRecordSOURCE
virtual bool parseRecordSOURCE(const char *line, Size size)
BALL::PDBFile::compare_record_type_format_
PDB::RecordTypeFormat compare_record_type_format_
Definition: PDBFile.h:845
BALL::PDBFile::writeRecord_
void writeRecord_(const PDB::RecordSEQRES &seqres)
BALL::PDBAtom
Definition: PDBAtom.h:40
BALL::PDB::RecordSHEET
Definition: PDBdefs.h:1009
BALL::PDBFile::atom_map_
HashMap< const Atom *, Position > atom_map_
Definition: PDBFile.h:872
BALL::PDB::RecordHETSYN
Definition: PDBdefs.h:740
BALL::PDB::RecordCISPEP
Definition: PDBdefs.h:437
BALL::PDBFile::current_const_atom_
const Atom * current_const_atom_
Definition: PDBFile.h:870
BALL::PDB::RecordSSBOND
Definition: PDBdefs.h:1129
BALL::Residue
Definition: residue.h:38
BALL::PDBFile::SecStructList
std::list< SecondaryStructure * > SecStructList
Definition: PDBFile.h:638
BALL::PDB::RecordMASTER
Definition: PDBdefs.h:807
BALL::PDB::RecordCRYST1
Definition: PDBdefs.h:565
BALL::GenericMolFile
Definition: genericMolFile.h:58
BALL::PDBFile::getRecordType
PDB::RecordType getRecordType() const
Returns the type of the record we are currently reading.
BALL::PDBFile::Default
Definition: PDBFile.h:124
BALL::PDBFile::writeRecord_
void writeRecord_(const PDB::RecordMTRIX2 &mtrix2)
BALL::PDB::RecordSCALE3
Definition: PDBdefs.h:949
BALL::PDB::RecordHET
Definition: PDBdefs.h:703
BALL::PDB::RecordATOM
Definition: PDBdefs.h:397
secondaryStructure.h
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordCRYST1 &record)
BALL::PDB::Character
char Character
Definition: PDBdefs.h:259
BALL::PDBFile::parseRecordSEQRES
virtual bool parseRecordSEQRES(const char *line, Size size)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordDBREF &record)
BALL::PDBFile::writeTURNSection_
void writeTURNSection_(const PDB::Structure &structure)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordMODEL &record)
BALL::PDBFile::helix_list_
QuadrupleList helix_list_
Definition: PDBFile.h:850
BALL::PDBFile::parseRecordCRYST1
virtual bool parseRecordCRYST1(const char *line, Size size)
BALL::PDBFile::parseRecordSEQADV
virtual bool parseRecordSEQADV(const char *line, Size size)
BALL::PDBFile::~PDBFile
virtual ~PDBFile()
BALL::PDBFile::writeAtom_
void writeAtom_(const PDB::Structure::AtomEntry &atom, PDB::AdditionalAtomInfo &cr, bool hetatm=false)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordMTRIX3 &record)
BALL::PDBFile::write
bool write(const System &system, const PDBInfo &info)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordSPRSDE &record)
BALL::PDBFile::PDBFile
PDBFile()
BALL::PDBFile::getAtomRemotenessIndicator
virtual char getAtomRemotenessIndicator(const PDB::Atom atom_name)
Extract the PDB remoteness indicator of an atom record.
BALL::PDBFile::writeCrystallographicSection_
void writeCrystallographicSection_(const PDB::Structure &structure, const PDBInfo &info)
BALL::PDBFile::alternate_location_indicator_
char alternate_location_indicator_
Definition: PDBFile.h:858
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordHEADER &record)
BALL::String
Definition: string.h:57
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordMTRIX1 &record)
BALL::PDBFile::PDBFile
PDBFile(const File &pdbf)
BALL::PDBFile::parseRecordHETNAM
virtual bool parseRecordHETNAM(const char *line, Size size)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordEXPDTA &record)
Reads a record containing data about the experiment.
BALL::PDBFile::readInvalidRecord
virtual bool readInvalidRecord(const char *line)
BALL::PDBFile::parseRecordTER
virtual bool parseRecordTER(const char *line, Size size)
BALL::PDBFile::parseRecordHETSYN
virtual bool parseRecordHETSYN(const char *line, Size size)
BALL::PDBFile::parseRecordSPRSDE
virtual bool parseRecordSPRSDE(const char *line, Size size)
BALL::PDBFile::getVersion
virtual float getVersion() const
Returns the version number this PDB file reader is able to read.
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordSHEET &record)
BALL::PDBFile::countRecordFields
Size countRecordFields() const
Returns the number of record fields.
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordMTRIX2 &record)
BALL::PDBFile
Definition: PDBFile.h:58
BALL::PDB::RecordSCALE1
Definition: PDBdefs.h:933
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordEND &record)
Reads the record defining the end of a PDB file.
BALL::PDB::RecordHEADER
Definition: PDBdefs.h:665
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordTITLE &record)
BALL::Protein
Definition: protein.h:30
BALL::PDBFile::parseRecordSITE
virtual bool parseRecordSITE(const char *line, Size size)
BALL::PDBFile::writeRecord_
void writeRecord_(PDB::RecordType record,...)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordDBREF &record)
Reads a record containing database cross-reference links.
BALL::PDBFile::Default::WRITE_PDBFORMAT_1996
static const bool WRITE_PDBFORMAT_1996
Definition: PDBFile.h:162
BALL::PDBFile::postprocessHelices_
void postprocessHelices_()
BALL::PDBFile::writeHeterogenSection_
void writeHeterogenSection_(const PDB::Structure &structure, const PDBInfo &info)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordREVDAT &record)
BALL::PDBFile::Option::VERBOSITY
static const char * VERBOSITY
Definition: PDBFile.h:74
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordREMARK &record)
Reads a record containing remarks.
BALL::PDBFile::Option::WRITE_PDBFORMAT_1996
static const char * WRITE_PDBFORMAT_1996
Definition: PDBFile.h:118
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordMODRES &record)
BALL
Definition: constants.h:13
BALL::PDBFile::Option::STORE_SKIPPED_RECORDS
static const char * STORE_SKIPPED_RECORDS
Definition: PDBFile.h:98
BALL::PDBFile::writeHELIXSection_
void writeHELIXSection_(const PDB::Structure &structure)
BALL::PDBFile::write_pdbformat_1996_
bool write_pdbformat_1996_
write in the 1996-format?
Definition: PDBFile.h:895
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordMASTER &record)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordORIGX3 &record)
BALL::PDBFile::parseRecordCISPEP
virtual bool parseRecordCISPEP(const char *line, Size size)
BALL::PDBFile::parseRecordHET
virtual bool parseRecordHET(const char *line, Size size)
BALL::PDBFile::parseRecordMODEL
virtual bool parseRecordMODEL(const char *line, Size size)
BALL::PDBFile::ignore_xplor_pseudo_atoms_
bool ignore_xplor_pseudo_atoms_
Ignore XPLOR pseudo atoms?
Definition: PDBFile.h:889
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordLINK &record)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordMASTER &record)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordTER &record)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordORIGX2 &record)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordANISOU &record)
Reads an anisotropic temperature factor record.
BALL::PDBFile::selected_model_
Index selected_model_
The selected model_.
Definition: PDBFile.h:883
BALL::PDBFile::init_
void init_()
BALL::PDBFile::parseRecordREVDAT
virtual bool parseRecordREVDAT(const char *line, Size size)
BALL::PDBFile::read
bool read(Protein &protein)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordAUTHOR &record)
Reads an author record.
BALL::PDBFile::postprocessSheetsTurns_
void postprocessSheetsTurns_(QuadrupleList &sectruct_list, SecStructList &new_secstruct_list)
BALL::PDBFile::writeSLTBRGSection_
void writeSLTBRGSection_(const PDB::Structure &structure)
BALL::PDBFile::parseRecordFTNOTE
virtual bool parseRecordFTNOTE(const char *line, Size size)
BALL::PDBFile::getAtomName
virtual const char * getAtomName(const PDB::Atom atom_name)
Returns the atom name.
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordSITE &record)
BALL::PDBFile::writeRecord_
void writeRecord_(const PDB::RecordMTRIX1 &mtrix1)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordHETNAM &record)
BALL::PDB::RecordSLTBRG
Definition: PDBdefs.h:1091
BALL::PDBFile::new_turn_secstruc_list_
SecStructList new_turn_secstruc_list_
Definition: PDBFile.h:856
BALL::PDB::RecordJRNL
Definition: PDBdefs.h:776
BALL::PDBFile::parseRecordHELIX
virtual bool parseRecordHELIX(const char *line, Size size)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordLINK &record)
Reads a record containing supplemental connectivity information.
BALL::PDB::Atom
char Atom[5]
Definition: PDBdefs.h:257
BALL::Constants::c
BALL_EXTERN_VARIABLE const double c
Definition: constants.h:149
options.h
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordCISPEP &record)
BALL::PDBFile::write_
void write_(const AtomContainer &ac, const PDBInfo &info=PDBInfo())
BALL::PDBFile::Default::STRICT_LINE_CHECKING
static const bool STRICT_LINE_CHECKING
Definition: PDBFile.h:135
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordJRNL &record)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordSHEET &record)
Reads a record defining a beta-sheet.
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordENDMDL &record)
BALL::PDBFile::parseRecordKEYWDS
virtual bool parseRecordKEYWDS(const char *line, Size size)
BALL::File
Definition: file.h:136
BALL::File::OpenMode
std::ios::openmode OpenMode
Definition: file.h:165
BALL::PDBFile::new_sheet_secstruc_list_
SecStructList new_sheet_secstruc_list_
Definition: PDBFile.h:855
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordHELIX &record)
Reads a helix defining record.
BALL_INDEX_TYPE
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordTURN &record)
Reads a record specifying a turn.
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordHET &record)
Reads a record defining a non-standard residue.
BALL::PDBFile::read
Molecule * read()
BALL::PDBFile::current_PDB_atom_
PDBAtom * current_PDB_atom_
Definition: PDBFile.h:869
BALL::PDBFile::parseRecordTVECT
virtual bool parseRecordTVECT(const char *line, Size size)
BALL::PDB::RecordSEQRES
Definition: PDBdefs.h:971
BALL::PDB::RecordHETNAM
Definition: PDBdefs.h:730
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordHYDBND &record)
Reads a record defining a hydrogen bond.
BALL::PDB::RecordCAVEAT
Definition: PDBdefs.h:426
BALL_SIZE_TYPE
BALL::PDBFile::updateAdditionalAtomInfo_
static void updateAdditionalAtomInfo_(const PDB::Structure::AtomEntry &atom, PDB::AdditionalAtomInfo &cr)
BALL::PDBFile::writeRecord_
void writeRecord_(const PDB::RecordSSBOND &helix)
BALL::PDBFile::extractStructure_
static void extractStructure_(const AtomContainer &ac, PDB::Structure &structure)
BALL::PDBFile::postprocessRandomCoils_
void postprocessRandomCoils_()
BALL::PDB::RecordSOURCE
Definition: PDBdefs.h:1109
BALL::PDB::RecordLINK
Definition: PDBdefs.h:791
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordEXPDTA &record)
BALL::PDBFile::Option::IGNORE_XPLOR_PSEUDO_ATOMS
static const char * IGNORE_XPLOR_PSEUDO_ATOMS
Definition: PDBFile.h:105
BALL::PDBFile::parseRecordENDMDL
virtual bool parseRecordENDMDL(const char *line, Size size)
BALL::Hash
HashIndex Hash(const T &key)
Definition: hash.h:47
BALL::PDBFile::parseRecordDBREF
virtual bool parseRecordDBREF(const char *line, Size size)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordATOM &record)
Reads an atom record.
BALL::PDBFile::code_
PDB::AChar code_
Definition: PDBFile.h:862
BALL::PDB::RecordSITE
Definition: PDBdefs.h:1080
BALL::PDBFile::parseRecordEND
virtual bool parseRecordEND(const char *line, Size size)
BALL::PDBFile::Default::PARSE_PARTIAL_CHARGES
static const bool PARSE_PARTIAL_CHARGES
Definition: PDBFile.h:156
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordHETATM &record)
Reads atomic coordinates for atoms in non-standard groups.
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordSPRSDE &record)
List of entries this file supersedes.
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordORIGX1 &record)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordSCALE3 &record)
Reads a scale transformation record.
BALL::PDBFile::countRecord
Size countRecord(PDB::RecordType record_type, bool from_begin_of_file=true)
BALL::Quadruple::third
T3 third
Definition: quadruple.h:132
BALL::PDBFile::getSelectedModel
Index getSelectedModel() const
Return the model currently selected.
PDBAtom.h
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordANISOU &record)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordTER &record)
Reads a record terminating molecule.
BALL::PDBFile::parseRecordORIGX1
virtual bool parseRecordORIGX1(const char *line, Size size)
BALL::PDBFile::writeMTRIXnSection_
void writeMTRIXnSection_(const PDB::Structure &structure)
BALL::PDBFile::parseRecordCONECT
virtual bool parseRecordCONECT(const char *line, Size size)
BALL::PDBFile::clear
virtual void clear()
Clear all members.
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordTITLE &record)
Reads a record specifying the title of the experiment or anaysis.
BALL::PDBFile::Default::IGNORE_XPLOR_PSEUDO_ATOMS
static const bool IGNORE_XPLOR_PSEUDO_ATOMS
Definition: PDBFile.h:151
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordSCALE1 &record)
BALL::PDBFile::current_record_
Index current_record_
Definition: PDBFile.h:842
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordCAVEAT &record)
Reads a caveat record.
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordATOM &record)
BALL::PDBFile::writeCONECTRecords_
void writeCONECTRecords_(PDB::Structure::ConectAtomList &cl)
BALL::PDBFile::skipCurrentRecord
bool skipCurrentRecord()
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordFORMUL &record)
BALL::PDBFile::current_residue_
Residue * current_residue_
Definition: PDBFile.h:867
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordSCALE1 &record)
Reads a scale transformation record.
BALL::PDB::RecordORIGX3
Definition: PDBdefs.h:905
BALL::PDBFile::parseRecordCOMPND
virtual bool parseRecordCOMPND(const char *line, Size size)
BALL::PDBFile::store_skipped_records_
bool store_skipped_records_
Store the skipped records in info?
Definition: PDBFile.h:886
BALL::PDB::RecordEXPDTA
Definition: PDBdefs.h:635
BALL::PDB::RecordSIGATM
Definition: PDBdefs.h:1043
BALL::PDBFile::ssbond_list_
QuadrupleList ssbond_list_
Definition: PDBFile.h:849
BALL::PDB::RecordHYDBND
Definition: PDBdefs.h:750
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordCAVEAT &record)
BALL::PDB::RecordCOMPND
Definition: PDBdefs.h:450
BALL::PDBFile::insertion_code_
PDB::AChar insertion_code_
Definition: PDBFile.h:859
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordSCALE3 &record)
BALL::PDBFile::current_model_
Index current_model_
Definition: PDBFile.h:841
BALL::PDBFile::writeRecord_
void writeRecord_(const PDB::RecordCONECT &helix)
BALL::PDBFile::info
PDBInfo info
Summary information on the last file read.
Definition: PDBFile.h:172
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordHELIX &record)
BALL::PDBInfo
Definition: PDBInfo.h:33
BALL::PDB::RecordSEQADV
Definition: PDBdefs.h:957
BALL::PDB::RecordHETATM
Definition: PDBdefs.h:713
BALL::PDB::RecordAUTHOR
Definition: PDBdefs.h:416
BALL::PDBFile::parseRecordMTRIX1
virtual bool parseRecordMTRIX1(const char *line, Size size)
BALL::PDBFile::ResidueQuadruple
Quadruple< String, PDB::Character, PDB::Integer, PDB::AChar > ResidueQuadruple
Definition: PDBFile.h:635
BALL::PDBFile::parse_partial_charges_
bool parse_partial_charges_
Read partial charges from cols 76-80?
Definition: PDBFile.h:892
BALL::PDBFile::residue_name_
String residue_name_
Definition: PDBFile.h:839
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordMTRIX1 &record)
BALL::PDBFile::parseRecordATOM
virtual bool parseRecordATOM(const char *line, Size size)
BALL::PDBFile::PDBAtomMap
HashMap< PDB::Integer, PDBAtom * > PDBAtomMap
Definition: PDBFile.h:634
BALL::PDBFile::writeSHEETSection_
void writeSHEETSection_(const PDB::Structure &structure)
BALL::PDBFile::residue_sequence_number_
Index residue_sequence_number_
Definition: PDBFile.h:840
BALL::PDBFile::parseRecordMTRIX2
virtual bool parseRecordMTRIX2(const char *line, Size size)
BALL::PDBFile::addAllRecords_
void addAllRecords_(const PDBInfo &info, PDB::RecordType type)
Add all records of a specific type in the info object to the current stream.
BALL::PDBFile::writeSEQRESSection_
void writeSEQRESSection_(const std::vector< std::pair< char, String > > &chain_residues)
BALL::PDB::Structure::AtomEntry
Definition: PDBdefs.h:1248
BALL::PDB::RecordORIGX1
Definition: PDBdefs.h:891
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordSLTBRG &record)
BALL::PDB::RecordEND
Definition: PDBdefs.h:621
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordHETATM &record)
BALL::PDBFile::writeCoordinateSection_
void writeCoordinateSection_(const PDB::Structure &structure, const PDBInfo &info)
BALL::PDBFile::readFirstRecord
bool readFirstRecord(bool read_values=true)
Read the firts record of a file.
BALL::PDB::AChar
char AChar
Definition: PDBdefs.h:255
BALL::PDBFile::writeSecondaryStructureSection_
void writeSecondaryStructureSection_(const PDB::Structure &structure, const PDBInfo &info)
BALL::PDBFile::write
bool write(const Protein &protein)
BALL::PDB::RecordTVECT
Definition: PDBdefs.h:1197
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordFORMUL &record)
BALL::PDB::RecordMTRIX2
Definition: PDBdefs.h:863
BALL::PDBFile::writeRecord_
void writeRecord_(const PDB::RecordTURN &helix)
BALL::PDBFile::Option
Definition: PDBFile.h:67
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordORIGX2 &record)
BALL::PDB::RecordSCALE2
Definition: PDBdefs.h:941
BALL::PDBFile::postprocessSSBonds_
void postprocessSSBonds_()
BALL::PDB::RecordHELIX
Definition: PDBdefs.h:675
BALL::PDB::RecordANISOU
Definition: PDBdefs.h:376
BALL::PDB::Integer
long Integer
Definition: PDBdefs.h:267
BALL::PDBFile::parseRecordTITLE
virtual bool parseRecordTITLE(const char *line, Size size)
quadruple.h
BALL::operator<<
BALL_EXPORT std::ostream & operator<<(std::ostream &os, const Exception::GeneralException &e)
BALL::PDBFile::writeMiscellaneousFeaturesSection_
void writeMiscellaneousFeaturesSection_(const PDB::Structure &structure, const PDBInfo &info)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordSEQRES &record)
Reads a record containing the sequence of residues.
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordEND &record)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordSIGATM &record)
Reads a record giving the standard deviation of atomic coordinates.
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordTVECT &record)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordAUTHOR &record)
residue.h
BALL::PDBFile::parseRecordOBSLTE
virtual bool parseRecordOBSLTE(const char *line, Size size)
BALL::PDBFile::parseRecordSIGUIJ
virtual bool parseRecordSIGUIJ(const char *line, Size size)
BALL::PDBFile::read_done_
bool read_done_
Definition: PDBFile.h:899
system.h
BALL::operator>>
std::istream & operator>>(std::istream &is, TRegularData1D< ValueType > &grid)
Input operator.
Definition: regularData1D.h:802
BALL::PDBFile::write
bool write(const Molecule &molecule)
BALL::PDBFile::getRecordNumber
Index getRecordNumber() const
Returns the number of the record we are currently reading.
BALL::PDBFile::parseRecordORIGX2
virtual bool parseRecordORIGX2(const char *line, Size size)
BALL::PDBFile::open
void open(const String &name, File::OpenMode open_mode=std::ios::in)
BALL::Quadruple
Definition: quadruple.h:23
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordMTRIX2 &record)
BALL::PDBFile::parseRecordSSBOND
virtual bool parseRecordSSBOND(const char *line, Size size)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordSIGUIJ &record)
BALL::PDBFile::parseRecordHYDBND
virtual bool parseRecordHYDBND(const char *line, Size size)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordORIGX3 &record)
BALL::PDBFile::parseRecordSCALE3
virtual bool parseRecordSCALE3(const char *line, Size size)
BALL::PDB::RecordTITLE
Definition: PDBdefs.h:1162
BALL::PDB::RecordMODRES
Definition: PDBdefs.h:844
BALL::PDB::RecordDBREF
Definition: PDBdefs.h:585
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordREVDAT &record)
Reads a record containing a revision history.
BALL::PDBFile::Default::STORE_SKIPPED_RECORDS
static const bool STORE_SKIPPED_RECORDS
Definition: PDBFile.h:146
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordCONECT &record)
BALL::PDBFile::parseRecordSHEET
virtual bool parseRecordSHEET(const char *line, Size size)
BALL::PDB::RecordSPRSDE
Definition: PDBdefs.h:1118
BALL::PDBFile::hasFormat
virtual bool hasFormat()
Check whether the current file is in PDB format.
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordTURN &record)
BALL::PDBFile::getRecordString
char * getRecordString()
Return a mutable pointer to the line buffer.
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordJRNL &record)
Reads a record containing a journal reference.
BALL::PDBFile::parseRecordEXPDTA
virtual bool parseRecordEXPDTA(const char *line, Size size)
PDBInfo.h
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordMODEL &record)
Reads a record indicating the beginning of a new model.
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordSITE &record)
Reads a record containing groups comprising a site.
BALL::PDBFile::writeCRYST1Section_
void writeCRYST1Section_(const PDB::Structure &structure)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordENDMDL &record)
Reads a model ending record.
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordCONECT &record)
Reads a connection record.
BALL::PDBFile::parseRecordSIGATM
virtual bool parseRecordSIGATM(const char *line, Size size)
BALL::PDBFile::parseRecordFORMUL
virtual bool parseRecordFORMUL(const char *line, Size size)
BALL::PDBFile::parseRecordMASTER
virtual bool parseRecordMASTER(const char *line, Size size)
BALL::PDBFile::countRecords
Size countRecords(bool from_begin_of_file=true)
BALL::PDBFile::parseRecordHETATM
virtual bool parseRecordHETATM(const char *line, Size size)
BALL::PDBFile::getRecordString
const char * getRecordString() const
Return a constant pointer to the line buffer.
BALL::PDBFile::writeConnectivityAnnotationSection_
void writeConnectivityAnnotationSection_(const PDB::Structure &structure, const PDBInfo &info)
BALL::PDBFile::book_keeping_
PDB::BookKeeping book_keeping_
Book keeping struct for the number of records written.
Definition: PDBFile.h:875
BALL::PDBFile::parseRecordANISOU
virtual bool parseRecordANISOU(const char *line, Size size)
BALL::PDBFile::parseRecordTURN
virtual bool parseRecordTURN(const char *line, Size size)
BALL::PDBFile::getAtomElementSymbol
virtual const char * getAtomElementSymbol(const PDB::Atom atom_name, PDB::Atom element_symbol)
BALL::PDB::AdditionalAtomInfo
Definition: PDBdefs.h:1334
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordREMARK &record)
BALL::PDB::RecordREVDAT
Definition: PDBdefs.h:920
BALL::PDBFile::PDBFile
PDBFile(const String &filename, File::OpenMode open_mode=std::ios::in)
BALL::PDBFile::Option::PARSE_PARTIAL_CHARGES
static const char * PARSE_PARTIAL_CHARGES
Definition: PDBFile.h:112
BALL::PDB::RecordFTNOTE
Definition: PDBdefs.h:656
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordHET &record)
genericMolFile.h
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordSOURCE &record)
BALL::PDBFile::parseRecordJRNL
virtual bool parseRecordJRNL(const char *line, Size size)
BALL::PDBFile::selectAltLocationIndicator
void selectAltLocationIndicator(char c)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordKEYWDS &record)
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordSEQRES &record)
BALL::PDBFile::interpretRecord
virtual bool interpretRecord(const PDB::RecordSLTBRG &record)
Reads a record defining a salt bridge.
BALL::PDBFile::fillRecord
virtual bool fillRecord(const char *line, Size size, PDB::RecordOBSLTE &record)
BALL::PDBFile::current_const_chain_
const Chain * current_const_chain_
Definition: PDBFile.h:866
BALL::PDBFile::writeConnectivitySection_
void writeConnectivitySection_(const PDB::Structure &structure, const PDBInfo &info)
BALL::PDBFile::parseRecordCAVEAT
virtual bool parseRecordCAVEAT(const char *line, Size size)
BALL::PDBFile::getCurrentModel
Index getCurrentModel() const
Returns the number of the model weare currently reading. (?????)
BALL::PDBFile::Option::CHOOSE_MODEL
static const char * CHOOSE_MODEL
Definition: PDBFile.h:91
BALL::PDBFile::parseRecordSCALE2
virtual bool parseRecordSCALE2(const char *line, Size size)
BALL::PDB::SIZE_OF_PDB_LINE_BUFFER
@ SIZE_OF_PDB_LINE_BUFFER
Definition: PDBdefs.h:52