added Table.update_ids method

@wasade or @ElDeveloper, can one of you review this one? I haven't contributed to biom in a while - let me know if I'm doing anything wrong. The codebase is looking really nice, btw! 
Thanks for the comments! I'll update my PR soon.


On Sun, Aug 31, 2014 at 2:25 PM, Daniel McDonald <notifications@github.com>
wrote:

> In biom/table.py:
>
> > +        ['s1.1' 's2.2' 's3.3']
> > +        """
> > +        updated_ids = []
> > +        for old_id in self.ids(axis=axis):
> > +            try:
> > +                updated_ids.append(id_map[old_id])
> > +            except KeyError:
> > +                if strict:
> > +                    raise TableException(
> > +                        "Mapping not provided for %s identifier: %s. If this "
> > +                        "identifier should not be updated, pass "
> > +                        "strict=False." % (axis, old_id))
> > +                else:
> > +                    updated_ids.append(old_id)
> > +
> > +        if axis == 'sample':
>
> ah, okay. What I recommend is to set the errors and then make a call to
> errcheck, see here
> <https://github.com/biocore/biom-format/blob/master/biom/table.py#L260>.
> Sorry for not thinking about errcheck on the first pass -- its a new
> addition
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/biocore/biom-format/pull/536/files#r16933149>.
>