19 #ifndef OST_CONOP_PROCESSOR_HH
20 #define OST_CONOP_PROCESSOR_HH
26 namespace ost {
namespace conop {
58 bool strict_hydrogens)
const;
60 bool fix_element)
const;
70 check_bond_feasibility_(bf), assign_torsions_(at), connect_(cn),
71 connect_aa_(aa), connect_hetatm_(ch), zero_occ_treatment_(zo) {}
73 assign_torsions_(true), connect_(true), connect_aa_(true),
74 connect_hetatm_(true), zero_occ_treatment_(
CONOP_SILENT) {}
84 assign_torsions_ = flag;
87 return assign_torsions_;
98 return connect_hetatm_;
105 return check_bond_feasibility_;
109 check_bond_feasibility_ = flag;
113 return zero_occ_treatment_;
116 zero_occ_treatment_ =
action;
123 bool check_bond_feasibility_;
124 bool assign_torsions_;
127 bool connect_hetatm_;
158 bool strict_hydrogens=
false);
virtual bool BeginProcessing(DiagnosticsPtr diags, mol::EntityHandle ent) const
void SetAssignTorsions(bool flag)
DiagnosticsPtr Process(mol::EntityHandle ent, bool log_diags=true) const
void ConnectAtomsOfResidue(mol::ResidueHandle residue, CompoundPtr compound, bool strict_hydrogens) const
void DistanceBasedConnect(mol::AtomHandle atom) const
String OptionsToString() const
void SetConnectAminoAcids(bool c)
void SetZeroOccTreatment(ConopAction action)
void SetConnectHetatm(bool c)
bool GetAssignTorsions() const
void SetCheckBondFeasibility(bool flag)
bool GetCheckBondFeasibility() const
void SetConnect(bool connect)
void FillResidueProps(mol::ResidueHandle residue, CompoundPtr compound) const
virtual ProcessorPtr Copy() const =0
bool HasUnknownAtoms(mol::ResidueHandle residue, CompoundPtr compound, bool strict_hydrogens) const
virtual void DoProcess(DiagnosticsPtr diags, mol::EntityHandle ent) const =0
ConopAction GetZeroOccTreatment() const
mol::AtomHandle LocateAtom(const mol::AtomHandleList &, int ordinal) const
virtual String ToString() const =0
static bool AreResiduesConsecutive(mol::ResidueHandle a, mol::ResidueHandle b)
void ReorderAtoms(mol::ResidueHandle residue, CompoundPtr compound, bool fix_element) const
Processor(bool bf, bool at, bool cn, bool aa, bool ch, ConopAction zo)
bool GetConnectHetatm() const
bool GetConnectAminoAcids() const
virtual bool EndProcessing(DiagnosticsPtr diags, mol::EntityHandle ent) const
void ConnectResidues(mol::ResidueHandle residue, mol::ResidueHandle next) const
#define DLLEXPORT_OST_CONOP
String DLLIMPORT GuessAtomElement(const String &atom_name, bool hetatm, int atom_count)
guess element of atom based on name and hetatm flag
boost::shared_ptr< Compound > CompoundPtr
bool DLLIMPORT IsBondFeasible(const mol::AtomHandle &, const mol::AtomHandle &)
mol::AtomHandleList DLLIMPORT GetUnknownAtomsOfResidue(mol::ResidueHandle residue, CompoundPtr compound, bool strict_hydrogens=false)
mol::ChemClass DLLIMPORT GuessChemClass(mol::ResidueHandle res)
guess chemclass based on atoms of residue
boost::shared_ptr< Diagnostics > DiagnosticsPtr
String DLLIMPORT StringFromConopAction(ConopAction action)
boost::shared_ptr< Processor > ProcessorPtr
void DLLIMPORT AssignBackboneTorsions(mol::ChainHandle chain)
assigns phi/psi/omega to all residues marked peptide-linking of the chain
ConopAction DLLIMPORT ConopActionFromString(const String &name)
std::vector< AtomHandle > AtomHandleList
std::vector< ResidueHandle > ResidueHandleList