contact_map.Concurrence

class contact_map.Concurrence(values, labels=None)[source]

Superclass for contact concurrence objects.

Contact concurrences measure what contacts occur simultaneously in a trajectory. When defining states, one usually wants to characterize based on multiple contacts that are made simultaneously; contact concurrences makes it easier to identify those.

Parameters:
  • values (list of list of bool) – the whether a contact is present for each contact pair at each point in time; inner list is length number of frames, outer list in length number of (included) contacts
  • labels (list of string) – labels for each contact pair
__init__(values, labels=None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(values[, labels]) Initialize self.
set_labels(labels) Set the contact labels
set_labels(labels)[source]

Set the contact labels

Parameters:labels (list of string) – labels for each contact pair