Fork me on GitHub

biom-format.org

biom.table.Table._to_sparse

Contents

biom.table.Table._to_sparse

static Table._to_sparse(values, transpose=False, dtype=<type 'float'>, input_is_dense=False, shape=None)

Try to return a populated scipy.sparse matrix.

NOTE: assumes the max value observed in row and col defines the size of the matrix.

Contents