biom.table.Table.nonzero

Table.nonzero()

Yields locations of nonzero elements within the data matrix

Returns:
generator

Yields (observation_id, sample_id) for each nonzero element