Fork me on GitHub

biom-format.org

biom.table.Table.get_table_density

«  biom.table.Table.from_tsv   ::   Contents   ::   biom.table.Table.get_value_by_ids  »

biom.table.Table.get_table_density

Table.get_table_density()

Returns the fraction of nonzero elements in the table.

Returns:

float

The fraction of nonzero elements in the table

«  biom.table.Table.from_tsv   ::   Contents   ::   biom.table.Table.get_value_by_ids  »