Contact map files¶
-
class mdk::cmap::ContactMap
A POD representing a contact map (a.k.a. structured part), as represented in the legacy contact map file): specifically, the location and extent of the structured part, associated native bond and dihedral angles and Go-model contacts.
This data structure doesn’t provide its own means of parsing (
cmap::LegacyParser
must be used, for example), since a change of format shouldn’t influence this POD.Public Members
-
int len
Length of the structured part.
-
int offset
Offset of the structured part (w.r.t. the chain beginning).
-
std::vector<double> angle
angle[i] denotes the native bond angle value for triple (i-1, i, i+1), relative to the position as indicated by /p off, i.e. if (i+off-1, i+off, i+off+1) relative to the start of the chain. Note: the native angles near the ends of the structured part are undefined.
-
std::vector<double> dihedral
dihedral[i] denotes the native dihedral angle value for quadruple (i-2, i-1, i, i+1), relative to the position as indicated by /p off, i.e. if (i+off-2, i+off-1, i+off, i+off+1) relative to the start of the chain. Note: the native angles near the ends of the structured part are undefined.
-
struct Contact
Public Members
-
int res[2]
Residues forming the contact.
-
double dist0
Native length of the contact.
-
int res[2]
-
int len
-
class mdk::cmap::LegacyParser
A parser of contact map files in the legacy format (as described in legacy README.txt).
Public Functions
-
ContactMap read(std::istream &is)
Read contact map from a stream.
- Parameters
is – Input stream wherefrom to read the contact map
- Returns
Parsed contact map.
-
std::ostream &write(std::ostream &os, ContactMap const &cmap)
Write contact map to a stream.
- Parameters
os – Output stream whereto to write the contact map
cmap – Contact map to write
- Returns
os
-
ContactMap read(std::istream &is)