Correlations

Commit adds ability to correlate numeric metadata with feature abundance values as well as do paired t tests.
Thanks!

On (Dec-19-14| 9:05), Will Van Treuren wrote:
> > +                    ' was not found in the mapping file.')
> > +            except ValueError:
> > +                pass  # value couldn't be converted to float, ignore this sample
> > +        else:
> > +            pass  # sample in mf, but not bt
> > +
> > +    # remove samples which are not found in the mapping file or do not have
> > +    # metadata that converts to float
> > +    bt.filter(ids_to_keep = samples_to_correlate, axis='sample')
> > +
> > +    # sort the biom table so that feature values are retrieved in the same 
> > +    # order as the metadata in the samples they correspond to
> > +    bt.sort(sort_f = lambda _: samples_to_correlate, axis='sample')
> > +
> > +    if bt.shape[1] <= 3:
> > +        raise ValueError(filtration_error_text)
> 
> Makes perfect sense - changed.
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/biocore/qiime/pull/1758/files#r22115492