def install(self):
        workspace = self.buildout['extract']['workspace']
        staging = self.options['staging']
        if not os.path.exists(staging):
            os.makedirs(staging)

        data = {}
        for source in [f for f in glob.glob(os.path.join(workspace, '*.csv'))]:
            file_name = os.path.split(source)[-1]
            target = os.path.join(staging, file_name)
            shutil.copyfile(source, target)
            data[file_name] = read_csv(target)

        accessions.main(data, staging)
        annotations.main(data, staging)
        files.main(data, staging)
        genomes.main(data, staging)
        profiles.main(data)
        experiments.main(data, staging)
        read_length.main(data, staging)
        view.main(data, staging)
    def install(self):
        workspace = self.buildout['extract']['workspace']
        staging = self.options['staging']
        if not os.path.exists(staging):
            os.makedirs(staging)

        data = {}
        for source in [f for f in glob.glob(os.path.join(workspace, '*.csv'))]:
            file_name = os.path.split(source)[-1]
            target = os.path.join(staging, file_name)
            shutil.copyfile(source, target)
            data[file_name] = read_csv(target)

        accessions.main(data, staging)
        annotations.main(data, staging)
        files.main(data, staging)
        genomes.main(data, staging)
        profiles.main(data)
        experiments.main(data, staging)
        read_length.main(data, staging)
        view.main(data, staging)
 def test_annotations(self):
     """
     Test the annotations method
     """
     self.failUnless(annotations.main(data=None, workspace=None) == None)
 def test_annotations(self):
     """
     Test the annotations method
     """
     self.failUnless(annotations.main(data=None, workspace=None) == None)