utils/db_utils.py
def update_metagenomic_region_md5s(data):

    """
    Updates md5 fields of the seed region table

    data: A list of tuples specifying the entries to populate

    return: void
    """

    # connect to db
    cnx = RfamDB.connect()

    # get a new buffered cursor
    cursor = cnx.cursor(buffered=True)

    # update is_significant field to 0
    query = ("UPDATE meta_full_region SET md5=%s WHERE rfam_acc=%s "
             "AND rfamseq_acc=%s AND seq_start=%s AND seq_end=%s")

    cursor.executemany(query, data)

    cnx.commit()

    cursor.close()
    RfamDB.disconnect(cnx)

    Updates md5 fields of the seed region table

    data: A list of tuples specifying the entries to populate

    return: void
    
Updates md5 fields of the seed region table
data: A list of tuples specifying the entries to populate

void
Updates md5 fields of the seed region table data : A list of tuples specifying the entries to populate void
def update_metagenomic_region_md5s(data):
    cnx = RfamDB.connect()
    cursor = cnx.cursor(buffered=True)
    query = ("UPDATE meta_full_region SET md5=%s WHERE rfam_acc=%s "
             "AND rfamseq_acc=%s AND seq_start=%s AND seq_end=%s")
    cursor.executemany(query, data)
    cnx.commit()
    cursor.close()
    RfamDB.disconnect(cnx)
def update_metagenomic_region_md5s ( data ) : cnx = RfamDB . connect ( ) cursor = cnx . cursor ( buffered = True ) query = ( "UPDATE meta_full_region SET md5=%s WHERE rfam_acc=%s " "AND rfamseq_acc=%s AND seq_start=%s AND seq_end=%s" ) cursor . executemany ( query , data ) cnx . commit ( ) cursor . close ( ) RfamDB . disconnect ( cnx )
Updates md5 fields of the seed region table
data: A list of tuples specifying the entries to populate
Updates md5 fields of the seed region table data : A list of tuples specifying the entries to populate
"""
    Updates md5 fields of the seed region table

    data: A list of tuples specifying the entries to populate

    return: void
    """ # connect to db # get a new buffered cursor # update is_significant field to 0
data