def test_taxon_significance(self): exp = { 'test': ('FAILED (generate_otu_signifigance_tables_AGP.py: ' 'error: The supplied taxonomy file does not exist ' 'in the path.): ' 'generate_otu_signifigance_tables_AGP.py ' '-i bar.biom -o foo/test -s test -m baz') } ids = ['test'] opts = { 'per-sample': { 'results': 'foo' }, 'taxa': { 'notrim': { 'L6': { 'ag-bar-biom': 'bar.biom' } } }, 'meta': { 'ag-cleaned-md': 'baz' }, 'sample_type': 'bar' } obs = agps.taxon_significance(opts, ids) self.assertEqual(obs, exp)
def test_taxon_significance(self): exp = {'test': ('FAILED (generate_otu_signifigance_tables_AGP.py: ' 'error: The supplied taxonomy file does not exist ' 'in the path.): ' 'generate_otu_signifigance_tables_AGP.py ' '-i bar.biom -o foo/test -s test')} ids = ['test'] opts = {'per-sample-results': 'foo', 'ag-L6-taxa-bar-biom': 'bar.biom', 'sample_type': 'bar'} obs = agps.taxon_significance(opts, ids) self.assertEqual(obs, exp)
def test_taxon_significance(self): exp = {'test': ('FAILED (generate_otu_signifigance_tables_AGP.py: ' 'error: The supplied taxonomy file does not exist ' 'in the path.): ' 'generate_otu_signifigance_tables_AGP.py ' '-i bar.biom -o foo/test -s test -m baz')} ids = ['test'] opts = {'per-sample': {'results': 'foo'}, 'taxa': {'notrim': {'L6': {'ag-bar-biom': 'bar.biom'}}}, 'meta': {'ag-cleaned-md': 'baz'}, 'sample_type': 'bar'} obs = agps.taxon_significance(opts, ids) self.assertEqual(obs, exp)
def test_taxon_significance(self): exp = { 'test': ('FAILED (generate_otu_signifigance_tables_AGP.py: ' 'error: The supplied taxonomy file does not exist ' 'in the path.): ' 'generate_otu_signifigance_tables_AGP.py ' '-i bar.biom -o foo/test -s test') } ids = ['test'] opts = { 'per-sample-results': 'foo', 'ag-L6-taxa-bar-biom': 'bar.biom', 'sample_type': 'bar' } obs = agps.taxon_significance(opts, ids) self.assertEqual(obs, exp)