scripts.data.preprocessing.parseTERM.contact_idx¶
- scripts.data.preprocessing.parseTERM.contact_idx(focus)[source]¶
Assign an index per TERM residue based on how close you are to the central element used to create the TERM.
We set 0 to the central element, increment as you go N->C, decrement as you go C->N. Central element is middle residue for a first order TERM, central contact for second order TERM
- Parameters:
focus (list of int) – List of ints representing global indices (e.g. within the protein) for residues in a TERM.
- Returns:
Context indices derived from the focus
- Return type:
list of int