Fork me on GitHub

biom-format.org

biom.table.Table.min

«  biom.table.Table.metadata_to_dataframe   ::   Contents   ::   biom.table.Table.nonzero  »

biom.table.Table.min

Table.min(axis='sample')

Get the minimum nonzero value over an axis

Parameters:

axis : {‘sample’, ‘observation’, ‘whole’}, optional

Defaults to “sample”. The axis over which to calculate minima.

Returns:

scalar of self.dtype or np.array of self.dtype

Raises:

UnknownAxisError

If provided an unrecognized axis.

Examples

>>> from biom import example_table
>>> print example_table.min(axis='sample')
[ 3.  1.  2.]

«  biom.table.Table.metadata_to_dataframe   ::   Contents   ::   biom.table.Table.nonzero  »