It might be nice to add a ContactTrajectory class. This would store a separate (single frame) contact map for each time slice. Then you could do interesting things like create a ContactFrequency based on a set of frames determined after the fact. You could also create movies of how the contact map evolves in time (these should be based on some windowing into ContactFrequency instances; the window can be 1 if the user wants).
Relevant matplotlib docs on animation:
Animations that could be generated in real time would be impressive, but I'd be just as happy with something that pre-generates the images and makes a movie out of them, like ArtistAnimation does.
Note that, to use a rolling window to generate the contact frequency plots for each movie frame, we already have add_contact_frequency and subtract_contact_frequency methods. These affect the absolute histogram count, unlike ContactDifference, which compares the after-normalization (to number of frames) contact frequencies. We'd still output a separate plot at each time step, but the underlying data would be cheaper to calculate.
It might be nice to add a
ContactTrajectoryclass. This would store a separate (single frame) contact map for each time slice. Then you could do interesting things like create aContactFrequencybased on a set of frames determined after the fact. You could also create movies of how the contact map evolves in time (these should be based on some windowing intoContactFrequencyinstances; the window can be 1 if the user wants).Relevant matplotlib docs on animation:
Animations that could be generated in real time would be impressive, but I'd be just as happy with something that pre-generates the images and makes a movie out of them, like
ArtistAnimationdoes.Note that, to use a rolling window to generate the contact frequency plots for each movie frame, we already have
add_contact_frequencyandsubtract_contact_frequencymethods. These affect the absolute histogram count, unlikeContactDifference, which compares the after-normalization (to number of frames) contact frequencies. We'd still output a separate plot at each time step, but the underlying data would be cheaper to calculate.