[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[IMP-users] Maximum distance restraint between spheres



Hi IMP users,

I want to create pairwise distance restraints between IMP particles (spheres XYZR of a given radius) with a maximum distance condition.So I want a given sphere to be in a range between 0 and max distance of 17 Aº. How can I do it in IMP?  Given a set of sphere pairs, and a distance between them, how can I apply a IMP function to force a maximum distance restraint in a similar way then a Harmonic function?

f = IMP.core.Harmonic(float(tag_list[1]), float(tag_list[2]))
s = IMP.core.DistancePairScore(f)
r = IMP.core.PairRestraint(model, s, (bait_p, tag_p))

How can I substiute the IMP.core.Harmonic with a maximum distance function?

Thanks in advance!
Altair