Plotting Temporal Localization Part 4 - veeninglab/BactMAP GitHub Wiki
To make cell towers, I use the connected pixel values and cell outlines
(myCells_DnaX and myCells_FtsZ) as input for the function
plotCellsTime(). I can give my
preferred viridis color palette and the cell number cellN to the
function:
plotCellsTime(myCells_DnaX$rawdata_turned, viridisoption="viridis", cellN=4)
As you see, this cell tower has too many intervals to make a good
figure. Let’s subset the data again so we only take every 4th frame. For
this, I use %%, the operator for the
modulus.
plotCellsTime( myCells_DnaX$rawdata_turned[myCells_DnaX$rawdata_turned$frame%%4==0,],
viridisoption="viridis",
cellN=4)
Now the only thing that is left is to do the same for the myCells_FtsZ
dataframe, here I give the cell tower the same color as the FtsZ
kymograph, magma:
plotCellsTime( myCells_FtsZ$rawdata_turned[myCells_FtsZ$rawdata_turned$frame%%4==0,],
viridisoption="magma",
cellN=4)
| ⬅️ Plotting Temporal Localization Part 3: Making Kymographs | Plotting Temporal Localization Part 5: Plotting Cell Trajectories: Preparation ➡️ |
|---|