Example #1
0
    def tax_diff(self, options):
        """Taxonomy difference command."""

        check_file_exists(options.tax1_file)
        check_file_exists(options.tax2_file)

        if not os.path.exists(options.output_dir):
            os.makedirs(options.output_dir)

        td = TaxDiff()
        td.tax_diff(options.tax1_file, options.tax2_file,
                    options.include_user_taxa, options.output_dir)

        self.logger.info('Done.')
Example #2
0
    def tree_tax_diff(self, options):
        """Taxonomy difference command."""

        check_file_exists(options.input_tree1)
        check_file_exists(options.input_tree2)

        if not os.path.exists(options.output_dir):
            os.makedirs(options.output_dir)

        td = TaxDiff()
        td.tree_tax_diff(options.input_tree1, options.input_tree2,
                         options.output_dir)

        self.logger.info('Done.')
Example #3
0
 def tree_tax_diff(self, options):
     """Taxonomy difference command."""
     
     check_file_exists(options.input_tree1)
     check_file_exists(options.input_tree2)
     
     if not os.path.exists(options.output_dir):
         os.makedirs(options.output_dir)
     
     td = TaxDiff()
     td.tree_tax_diff(options.input_tree1,
                         options.input_tree2,
                         options.output_dir)
     
     self.logger.info('Done.')
Example #4
0
 def tax_diff(self, options):
     """Taxonomy difference command."""
     
     check_file_exists(options.tax1_file)
     check_file_exists(options.tax2_file)
     
     if not os.path.exists(options.output_dir):
         os.makedirs(options.output_dir)
     
     td = TaxDiff()
     td.tax_diff(options.tax1_file,
             options.tax2_file,
             options.include_user_taxa,
             options.output_dir)
     
     self.logger.info('Done.')