slitflow.trj.subtrj module
- class Subtrajectory(info_path=None)[source]
Bases:
TableBreak down a trajectory into multiple subtrajectories.
- Reference:
Ito, Y., Sakata-Sogawa, K. & Tokunaga, M. Multi-color single-molecule tracking and subtrajectory analysis for quantification of spatiotemporal dynamics and kinetics upon T cell activation. Sci Rep 7, 6994 (2017). https://doi.org/10.1038/s41598-017-06960-z
- Parameters:
- Returns:
Subtrajectory Table.
- Return type:
- calc_subtrj(df, param)[source]
Break down a trajectory into multiple subtrajectories using rolling.
The code calculates rolling windows of a specified size on a given DataFrame and adds a new column indicating the subtrajectory number for each window.
- Parameters:
df (pandas.DataFrame) – Trajectory data.
param["step"] (int) – Step number of subtrajectory.
- Returns:
Subtrajectory DataFrame.
- Return type: