Interesting, will use it.

BTW, there is very little of the code in _remove_rows_csr that is actually
specific to csr...


On Thu, May 15, 2014 at 2:12 PM, Jorge Cañardo Alastuey <
notifications@github.com> wrote:

> In biom/table.py:
>
> > +
> > +        if self.sample_metadata is None:
> > +            samp_md = None
> > +        else:
> > +            samp_md = self.sample_metadata.copy()
> > +
> > +        if self.observation_metadata is None:
> > +            obs_md = None
> > +        else:
> > +            obs_md = self.observation_metadata.copy()
> > +
> > +        table = Table(data, self.observation_ids.copy(),
> > +                      self.sample_ids.copy(), obs_md, samp_md)
> > +
> > +        table.filter(lambda v, i, md: v.sum() > 0)
> > +        table.filter(lambda v, i, md: v.sum() > 0, axis='observation')
>
> Mmm I hadn't noticed that option. I think that case can be worked around
> doing something similar to this approach<https://github.com/biocore/biom-format/blob/master/biom/_filter.pyx#L74>,
> and then a single filter in the opposite axis.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/biocore/biom-format/pull/397/files#r12710472>
> .
>