def main(args):
    requiredExecutables = ['bcftools', 'tabix', 'bgzip', 'samtools']
    utils.requireExecutables(requiredExecutables)
    downloaderClass = sources[args.source]
    downloader = downloaderClass(args)
    try:
        downloader.downloadVcfs()
        downloader.downloadReference()
        downloader.downloadBams()
        downloader.createRepo()
    finally:
        downloader.cleanup()
Пример #2
0
 def testRequireExecutables(self):
     utils.requireExecutables(self.executables)
     with self.assertRaises(SystemExit):
         utils.requireExecutables([self.nonexistentExecutable])
     self.assertEquals(self.printMock.call_count, 2)