Identify which paritcles’ MSDs are in the central quantile.
Parameters: | msds : DataFrame
frame : integer
lower : float between 0 and 1, default 0.1
upper : float between 0 and 1, default 0.9
|
---|---|
Returns: | Series of boolean values, indexed by particle number True = typical particle, False = outlier particle |
Examples
>>> m = tp.imsd(traj, MPP, FPS)
>>> # Index by particle ID, slice using boolean output from is_typical(), and then
>>> # restore the original index, frame number.
>>> typical_traj = traj.set_index('particle').ix[is_typical(m)] .reset_index().set_index('frame', drop=False)