IMP
2.4.0
The Integrative Modeling Platform
|
A class for storing groups of crosslinks. More...
Inherits object.
A class for storing groups of crosslinks.
Acts like a dictionary where keys are unique IDs and values are CrossLinks Equivalent (using objects instead of dicts) to a data structure like so: data[1030] = [ { 'r1': {'molecule':'A','residue_index':5}, 'r2': {'molecule':'B','residue_index':100}, 'Score': 123 }, { 'r1': {'molecule':'C','residue_index':63}, 'r2': {'molecule':'D','residue_index':94}, 'Score': 600 } ]
Definition at line 324 of file pmi/io/__init__.py.
Public Member Functions | |
def | __init__ |
Setup a CrossLinkData object. More... | |
def | add_cross_link |
Add a crosslink. More... | |
def IMP.pmi.io.CrossLinkData.__init__ | ( | self | ) |
Setup a CrossLinkData object.
Definition at line 337 of file pmi/io/__init__.py.
def IMP.pmi.io.CrossLinkData.add_cross_link | ( | self, | |
unique_id, | |||
kws1, | |||
kws2, | |||
score | |||
) |
Add a crosslink.
They are organized by their unique_ids.
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 346 of file pmi/io/__init__.py.