Esempio n. 1
0
    def test_biom_v210_format_to_pandas_data_frame(self):
        input, obs = self.transform_format(BIOMV210Format, pd.DataFrame,
                                           filename='feature-table_v210.biom')

        table = _parse_biom_table_v210(input)
        df = _table_to_dataframe(table)

        assert_frame_equal(df, obs)
Esempio n. 2
0
    def test_biom_v210_format_to_metadata(self):
        input, obs = self.transform_format(BIOMV210Format, qiime2.Metadata,
                                           filename='feature-table_v210.biom')

        table = _parse_biom_table_v210(input)
        df = _table_to_metadata(table)

        self.assertEqual(df, obs)
Esempio n. 3
0
    def test_biom_v210_format_to_pandas_data_frame(self):
        input, obs = self.transform_format(BIOMV210Format,
                                           pd.DataFrame,
                                           filename='feature-table_v210.biom')

        table = _parse_biom_table_v210(input)
        df = _table_to_dataframe(table)

        assert_frame_equal(df, obs)
Esempio n. 4
0
    def test_biom_v210_format_to_metadata(self):
        input, obs = self.transform_format(BIOMV210Format,
                                           qiime2.Metadata,
                                           filename='feature-table_v210.biom')

        table = _parse_biom_table_v210(input)
        df = _table_to_metadata(table)

        self.assertEqual(df, obs)