24 const double dope_threshold = 16;
25 const double spring_constant = 1;
32 for (
unsigned int i = 0; i < 2; ++i) {
52 for (
unsigned int i = 0; i < atoms.size(); ++i) {
53 for (
unsigned int j = 0; j < i; ++j) {
61 int main(
int argc,
char *argv[]) {
66 "Show how to use dope and excluded volume");
73 DopeAndExcludedVolumeDistancePairScore;
77 new DopeAndExcludedVolumeDistancePairScore(
79 SoftSphere(Harmonic(spring_constant))));
86 for (
unsigned int i = 0; i < pips.size(); ++i) {
87 std::cout <<
"Score is " << score->evaluate_index(
88 model, pips[i], IMP_NULLPTR) << std::endl;
92 catch (
const std::exception &e) {
93 std::cerr <<
"ERROR: " << e.what() << std::endl;
Various general useful macros for IMP.
A Score on the distance between a pair of particles.
A Score on the distance between a pair of particles.
ParticleIndex add_particle(std::string name)
Add particle to the model.
void add_child(Hierarchy o)
Add a child and check that the types are appropriate.
static Atom setup_particle(Model *m, ParticleIndex pi, Atom other)
A Score on the distance between a pair of particles.
void add_radii(Hierarchy d, const ForceFieldParameters *ffp=get_all_atom_CHARMM_parameters(), FloatKey radius_key=FloatKey("radius"))
static Residue setup_particle(Model *m, ParticleIndex pi, ResidueType t, int index, int insertion_code)
A Score on the distance between a pair of particles.
Create efficient distance-based pair scores.
static XYZ setup_particle(Model *m, ParticleIndex pi)
Class for storing model, its restraints, constraints, and particles.
Define functions to add bonds and radii to atoms.
A decorator for a particle representing an atom.
A decorator for Residues.
A smart pointer to a ref-counted Object that is a class member.
A harmonic score on the negative directed distance between a pair of particles. The score equals zero...
A decorator for a residue.
Various general useful macros for IMP.
void add_dope_score_data(atom::Hierarchy h)
Store info for a chain of a protein.
Provide a nullptr keyword analog.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.
static Chain setup_particle(Model *m, ParticleIndex pi, std::string id)
Decorator for a sphere-like particle.