Example for lipid flip-flop using segmentation

This document contains a worked example for calculating lipid flip-flop using segmentation data. By default the cholesterol will be tracked and plotted. In the end an example of plotting the total flips per frame is given, as well as the total up and down flips seperately.

Dependencies

Loading the data

Ignore the errors MDA throws due to missing masses. It doesn't know what to do with the CG beads, but its fine as long as we do not use any mass related features.

Helper classes

Here we neatly group some of the bookkeeping to keep our logic clean.

General approach for calculating the flip-flops

Here we show some useful syntax in tackling the problem. We need to be able to find the segment for our lipids of interestWe will do this for all the frames. Then we check which lipid segments have changed. Remember that not all lipids will always have a (relevant) segment assigned, which complicates things a little bit.

Plotting our simple flip-flop results