Esempio n. 1
0
    def test_dada2_stats_format_validate_positive(self):
        filenames = [
            'single-default-stats.tsv', 'single-override-stats.tsv',
            'underscore-samples-stats.tsv', 'pyro-default-stats.tsv',
            'paired-default-stats.tsv', 'paired-override-stats.tsv'
        ]
        filepaths = [
            self.get_data_path(os.path.join('expected', filename))
            for filename in filenames
        ]

        for filepath in filepaths:
            format = DADA2StatsFormat(filepath, mode='r')
            # Should pass without error
            format.validate()
Esempio n. 2
0
def _2(obj: qiime2.Metadata) -> DADA2StatsFormat:
    ff = DADA2StatsFormat()
    obj.save(str(ff))
    return ff