ExpressionHistogram#

class astropathdb.analysis.cell_metrics.ExpressionHistogram(*args, opal='cmembrane520', epsilon=0, step_size=0.05, table_name='celltag', opal_cols=None, **kwargs)#

Bases: AnalysisBase

Class for methods to parse expression histogram inputs.

Parameters:

ExpressionHistogram Attributes#

ExpressionHistogram Methods#

build_and_run_query()

Build and run the query.

build_from_sdata()

Build the histogram from spatialdata object.

compute_metric()

Compute the histogram.

ExpressionHistogram References#

Attribute Reference#

attribute output_data = None#
attribute sdata = None#
attribute astrodb = None#

Method Reference#

method build_and_run_query()#

Build and run the query.

Return type:

None

method build_from_sdata()#

Build the histogram from spatialdata object.

Return type:

None

method compute_metric()#

Compute the histogram.

Return type:

None

Private Attribute Reference#

attribute _opal = 'cmembrane520'#
attribute _epsilon = 0#
attribute _step_size = 0.05#
attribute _opal_cols = None#

Private Method Reference#

method _build_flux_query()#

Build histogram query.

Return type:

str

method _histogram_query()#
Return type:

str

method __get_hist(d)#
Parameters:

d (ndarray)

Return type:

tuple[ndarray, ndarray, ndarray]