Ejemplo n.º 1
0
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", [])
Ejemplo n.º 2
0
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", [])
Ejemplo n.º 3
0
 def vac(self):
     with db_connect_single(os.path.realpath(__file__)) as conn:
         vacumnAnalyze(conn, self.tableName)
Ejemplo n.º 4
0
 def vac(self):
     print('***********', "vacumn")
     vacumnAnalyze(self.DBCONN.getconn(), self.tableName_cre_all)