MeasureExpression#

Measures intensity decays at spcified points in the data.

measure_expression(source, points, search_radius, method='max', sink=None, processes=None, verbose=False)[source]#

Measures the expression around a list of points in a source.

Arguments

sourcearray

Source for measurement.

pointsarray

List of indices to measure radis for.

search_radiusint or array

List of search radii to use around each point. If int use this radius for all points. Array should be of length of points.

method‘max’ or ‘min’, ‘mean’

Measurement type.

processesint or None

Number of processes to use.

verbosebool

If True, print progress info.

search_indices(radii, ndim)[source]#

Creates all relative indices within a sphere of specified radius in an array with specified strides.

Arguments

radiustuple or float

Radius of the sphere of the search index list.

stridestuple of ints

Srides of the array

scalefloat, tuple or None

Spatial scale in each array dimension.

Returns

indicesarray

Array of ints of relative indices for the search area voxels.

test()[source]#