def run(args, DBCONN): assemblies = Config.assemblies if args.assembly: assemblies = [args.assembly] for assembly in assemblies: print('***********', assembly) with getcursor(DBCONN, "dropTables") as curs: icg = ImportCreGroups(curs, assembly) icg.run() icg.runCts() with db_connect_single(os.path.realpath(__file__)) as conn: vacumnAnalyze(conn, assembly + "_cre_all", [])
def run(args, DBCONN): assemblies = Config.assemblies if args.assembly: assemblies = [args.assembly] for assembly in assemblies: print('***********', assembly) pg = PostgresWrapper(DBCONN) with getcursor(DBCONN, "dropTables") as curs: icg = TopAccessions(curs, assembly, pg) icg.run() with db_connect_single(os.path.realpath(__file__)) as conn: if 0: vacumnAnalyze(conn, assembly + "_cre_all", [])
def vac(self): with db_connect_single(os.path.realpath(__file__)) as conn: vacumnAnalyze(conn, self.tableName)
def vac(self): print('***********', "vacumn") vacumnAnalyze(self.DBCONN.getconn(), self.tableName_cre_all)