32print(
'min_q = ' + str(exp_profile.get_min_q()))
33print(
'max_q = ' + str(exp_profile.get_max_q()))
34print(
'delta_q = ' + str(exp_profile.get_delta_q()))
41for i
in range(0, len(particles)):
42 radius = ft.get_radius(particles[i])
46surface_area = s.get_solvent_accessibility(
IMP.core.XYZRs(particles))
51model_profile.calculate_profile_partial(particles, surface_area)
55saxs_score = IMP.saxs.ProfileFitterChi(exp_profile)
56chi = saxs_score.compute_score(model_profile)
57print(
'Chi without parameter fitting = ' + str(chi))
59chi = (saxs_score.fit_profile(model_profile)).get_chi_square()
60print(
'Chi after adjustment of excluded volume and water layer parameters = '
62saxs_score.fit_profile(model_profile, 0.95, 1.05, -2.0, 4.0,
False,
Class for storing model, its restraints, constraints, and particles.
Hierarchies get_by_type(Hierarchy mhd, GetByType t)
Gather all the molecular particles of a certain level in the hierarchy.
Select non water and non hydrogen atoms.
static XYZR setup_particle(Model *m, ParticleIndex pi)
Functionality for loading, creating, manipulating and scoring atomic structures.
Hierarchy read_pdb(TextInput input, Model *model, PDBSelector *selector=get_default_pdb_selector(), bool select_first_model=true)
Read all the molecules in the first model of the PDB file.
Basic functionality that is expected to be used by a wide variety of IMP users.
Support for small angle X-ray scattering (SAXS) data.
FormFactorTable * get_default_form_factor_table()
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.