Commit 530d1110 by maarten

met selectie outliers/etc

git-svn-id: svn+ssh://gitlab/srv/svn-repos/pdb-redo/trunk@460 a1961a4f-ab94-4bcc-80e8-33b5a54de466
parent d170c8da
......@@ -276,6 +276,7 @@ class Monomer : public Residue
static bool areBonded(const Monomer& a, const Monomer& b, float errorMargin = 0.5f);
static bool isCis(const Monomer& a, const Monomer& b);
static float omega(const Monomer& a, const Monomer& b);
// for LEU and VAL
float chiralVolume() const;
......
......@@ -1077,24 +1077,28 @@ bool Monomer::areBonded(const Monomer& a, const Monomer& b, float errorMargin)
return result;
}
bool Monomer::isCis(const mmcif::Monomer& a, const mmcif::Monomer& b)
float Monomer::omega(const mmcif::Monomer& a, const mmcif::Monomer& b)
{
bool result = false;
float result = 360;
try
{
double omega = DihedralAngle(
result = DihedralAngle(
a.atomByID("CA").location(),
a.atomByID("C").location(),
b.atomByID("N").location(),
b.atomByID("CA").location());
result = abs(omega) <= 30.0;
}
catch (...) {}
return result;
}
bool Monomer::isCis(const mmcif::Monomer& a, const mmcif::Monomer& b)
{
return omega(a, b) < 30.0f;
}
// --------------------------------------------------------------------
// polymer
//
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment