impy.frame package

Submodules

impy.frame.frames module

class impy.frame.frames.AxesFrame(data=None, columns=None, **kwargs)[source]

Bases: DataFrame

as_standard_type() AxesFrame[source]

t or c -> uint16 p -> uint32 z, y, x -> float32

property col_axes
get_coords()[source]
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.

proj(axis=None)[source]
property scale
set_scale(other=None, **kwargs) None[source]

Set scales of each axis.

Parameters:
  • other (dict, AxesFrame or MetaArray, optional) – New scales. If dict, it should be like {“x”: 0.1, “y”: 0.1}. If MetaArray, only scales of common axes are copied.

  • kwargs – This enables function call like set_scale(x=0.1, y=0.1).

sort()[source]
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 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:

TrackFrame

class impy.frame.frames.PathFrame(data=None, columns=None, **kwargs)[source]

Bases: AxesFrame

length(dims=None)[source]
class impy.frame.frames.TrackFrame(data=None, columns=None, **kwargs)[source]

Bases: AxesFrame

as_path()[source]
emsd(max_lagt=100, detail=False)[source]
filter_stubs(min_dwell=3)[source]
imsd(max_lagt=100)[source]
msd(max_lagt: int = 100, detail: bool = False)[source]
track_drift(smoothing=0)[source]
impy.frame.frames.tp_no_verbose(func)[source]

Temporary suppress logging in trackpy.

Module contents