This example shows how to use the MSConnectivityRestraint to ensure that all the particles that are part of complexes end up in a connected conformation following the optimization. It allows multiple copies of particles and takes an experimental tree as an input.
45 pa = r.add_type([ds[0], ds[1]])
46 pb = r.add_type([ds[2], ds[3]])
47 pc = r.add_type([ds[4]])
48 pd = r.add_type([ds[5]])
54 i1 = r.add_composite([pa, pa, pb, pb, pc])
55 i2 = r.add_composite([pa, pb, pb, pc], i1)
56 i3 = r.add_composite([pa, pa, pb, pb], i1)
57 i4 = r.add_composite([pa, pb], i1)
58 i5 = r.add_composite([pa, pb, pb], i2)
59 i6 = r.add_composite([pb, pc], i2)
60 i7 = r.add_composite([pa, pa, pb], i3)
61 i8 = r.add_composite([pa, pb], i5)