Fork me on GitHub

biom-format.org

biom.table.Table._get_row

Contents

biom.table.Table._get_row

Table._get_row(row_idx)

Return the row at row_idx.

A row vector will be returned as a scipy.sparse matrix in csr format.

Notes

Switching between slicing rows and columns is inefficient. Slicing of rows requires a CSR representation, while slicing of columns requires a CSC representation, and transforms are performed on the data if the data are not in the required representation. These transforms can be expensive if done frequently.

Contents