This example shows how to use IMP::saxs::Restraint.
<!-- File: saxs_representation.xml -->
<Representation>
<Protein id="6lyz">
<Chain filename="data/6lyz.pdb" selector="NonWaterNonHydrogen"/>
</Protein>
</Representation>
<!-- File: saxs_restraint.xml -->
<SAXS name="saxs_restraint_set">
<
Restraint name=
"saxs_restraint" profile_filename=
"data/lyzexp.dat">
</SAXS>
14 restrainer = IMP.restrainer.Main()
17 rep = restrainer.add_representation(
19 rsr = restrainer.add_restraint(
28 model = restrainer.get_model()
31 r = rsr.get_restraint_by_name(
'saxs_restraint')
34 rs = rsr.get_restraint_set_by_name(
'saxs_restraint_set')
37 saxs_restraint = r.imp_restraint
38 saxs_restraint.evaluate(
False)