def setUp(self): try : B.importGenome("Human.GRCh37.75_Y-Only.tar.gz") except KeyError : print "--> Seems to already exist in db" try : B.importSNPs("Human_agnostic.dummySRY.tar.gz") except KeyError : print "--> Seems to already exist in db" self.ref = Genome(name = 'GRCh37.75_Y-Only')
def runTests(): try: B.importGenome("Human.GRCh37.75_Y-Only.tar.gz") except KeyError: print "--> Seems to already exist in db" try: B.importSNPs("Human_agnostic.dummySRY.tar.gz") except KeyError: print "--> Seems to already exist in db" unittest.main()
def runTests(): try: B.importGenome("Human.GRCh37.75_Y-Only.tar.gz") except KeyError: deleteGenome("human", "GRCh37.75_Y-Only") B.importGenome("Human.GRCh37.75_Y-Only.tar.gz") print("--> Seems to already exist in db") try: B.importSNPs("Human_agnostic.dummySRY.tar.gz") except KeyError: deleteSNPs("dummySRY_AGN") B.importSNPs("Human_agnostic.dummySRY.tar.gz") print("--> Seems to already exist in db") try: B.importSNPs("Human_agnostic.dummySRY_indels") except KeyError: deleteSNPs("dummySRY_AGN_indels") B.importSNPs("Human_agnostic.dummySRY_indels") print("--> Seems to already exist in db") # import time # time.sleep(10) unittest.main()