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_files(self):
     """
     Test the files method
     """
     self.failUnless(files.main(data=None, workspace=None) == None)
 def test_files(self):
     """
     Test the files method
     """
     self.failUnless(files.main(data=None, workspace=None) == None)