IMP
2.4.0
The Integrative Modeling Platform
|
A class to store the selection commands for a single crosslink. More...
Inherits object.
A class to store the selection commands for a single crosslink.
Definition at line 266 of file pmi/io/__init__.py.
Public Member Functions | |
def | __init__ |
Add a crosslink. More... | |
def | get_selection |
Return a list of atom pairs (particles) for this crosslink. More... | |
def IMP.pmi.io.CrossLink.__init__ | ( | self, | |
unique_id, | |||
r1, | |||
r2, | |||
score | |||
) |
Add a crosslink.
unique_id | The id is used to group crosslinks that are alternatives |
r1 | A dictionary of selection keywords for the first residue |
r2 | A dictionary of selection keywards for the second residue |
score | A score that might be used later for filtering The dictionaries can contain any Selection argument like molecule or residue_index |
Definition at line 274 of file pmi/io/__init__.py.
def IMP.pmi.io.CrossLink.get_selection | ( | self, | |
mh, | |||
kwargs | |||
) |
Return a list of atom pairs (particles) for this crosslink.
Found by selecting everything with r1 and r2 then returning the cartesian product. you may want to provide some atom specifiers like atom_type=IMP.atom.AtomType("CA")
mh | The hierarchy to select from |
kwargs | Any additional selection arguments |
Definition at line 292 of file pmi/io/__init__.py.