impy.frame package¶
Submodules¶
impy.frame.frames module¶
- class impy.frame.frames.AxesFrame(data=None, columns=None, **kwargs)[source]¶
Bases:
DataFrame
- property col_axes¶
- iter(axes: str)[source]¶
Iteration along any axes. This method is almost doing the same thing as groupby, but sub- DataFrames without axes in columns are yielded.
- Parameters:
axes (str) – Along which axes to iterate.
- Yields:
tuple and AxesFrame – slice to generate the AxesFrame.
- property scale¶
- split(axis='c') list[impy.frame.frames.AxesFrame] [source]¶
Split DataFrame according to its indices. For example, if self is an DataFrame with columns “t”, “c”, “y”, “x” and it is split along “c” axis, then output is a list of DataFrame with columns “t”, “y”, “x”.
- Parameters:
axis (str, default is "c") – Along which axis to split
- Returns:
Separate DataFrames.
- Return type:
list of AxesFrame
- class impy.frame.frames.MarkerFrame(data=None, columns=None, **kwargs)[source]¶
Bases:
AxesFrame
- link(search_range: float | tuple[float, ...], *, memory: int = 0, min_dwell: int = 0, dims=None, **kwargs) TrackFrame [source]¶
Link separate points to generate tracks.
- Parameters:
search_range (float or tuple of float) – How far a molecule can move in the next frame. Large value causes long calculation time.
memory (int, default is 0) – How long a molecule can vanish.
min_dwell (int, default is 0) – Minimum number of frames that single track should dwell.
dims (int or str, optional) – Spatial dimensions.
- Returns:
Result of particle tracking.
- Return type: