utils/db_utils.py
def fetch_metagenomic_regions():
    """
    Fetches all seed_region entries

    return: A list of tuples with all seed_region entries
    """

    # connect to db
    cnx = RfamDB.connect()

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

    # update is_significant field to 0
    query = ("Select rfam_acc, umgseq_acc, seq_start, seq_end "
             "from meta_full_region")

    cursor.execute(query)

    region_rows = cursor.fetchall()

    cursor.close()
    RfamDB.disconnect(cnx)

    return region_rows

    Fetches all seed_region entries

    return: A list of tuples with all seed_region entries
    
Fetches all seed_region entries
return: A list of tuples with all seed_region entries
Fetches all seed_region entries return : A list of tuples with all seed_region entries
def fetch_metagenomic_regions():
    cnx = RfamDB.connect()
    cursor = cnx.cursor(buffered=True)
    query = ("Select rfam_acc, umgseq_acc, seq_start, seq_end "
             "from meta_full_region")
    cursor.execute(query)
    region_rows = cursor.fetchall()
    cursor.close()
    RfamDB.disconnect(cnx)
    return region_rows
def fetch_metagenomic_regions ( ) : cnx = RfamDB . connect ( ) cursor = cnx . cursor ( buffered = True ) query = ( "Select rfam_acc, umgseq_acc, seq_start, seq_end " "from meta_full_region" ) cursor . execute ( query ) region_rows = cursor . fetchall ( ) cursor . close ( ) RfamDB . disconnect ( cnx ) return region_rows
Fetches all seed_region entries
return: A list of tuples with all seed_region entries
Fetches all seed_region entries return : A list of tuples with all seed_region entries
"""
    Fetches all seed_region entries

    return: A list of tuples with all seed_region entries
    """ # connect to db # get a new buffered cursor # update is_significant field to 0