utils/db_utils.py
def fetch_family_metadata(rfam_acc):
    """
    Fetches family metadata from family table
    :param rfam_acc:

    :return: A dictionary with metadata describing an Rfam family family
    """

    query = """select rfam_id, description, type
        from family
        where rfam_acc=\'%s\'"""

    cnx = RfamDB.connect()
    cursor = cnx.cursor(dictionary=True)

    cursor.execute(query % rfam_acc)

    metadata = cursor.fetchone()

    cursor.close()
    cnx.close()

    return metadata

    Fetches family metadata from family table
    :param rfam_acc:

    :return: A dictionary with metadata describing an Rfam family family
    
Fetches family metadata from family table
Fetches family metadata from family table
def fetch_family_metadata(rfam_acc):
    query = """select rfam_id, description, type
        from family
        where rfam_acc=\'%s\'"""
    cnx = RfamDB.connect()
    cursor = cnx.cursor(dictionary=True)
    cursor.execute(query % rfam_acc)
    metadata = cursor.fetchone()
    cursor.close()
    cnx.close()
    return metadata
def fetch_family_metadata ( rfam_acc ) : query = """select rfam_id, description, type
        from family
        where rfam_acc=\'%s\'""" cnx = RfamDB . connect ( ) cursor = cnx . cursor ( dictionary = True ) cursor . execute ( query % rfam_acc ) metadata = cursor . fetchone ( ) cursor . close ( ) cnx . close ( ) return metadata
Fetches family metadata from family table
Fetches family metadata from family table
"""
    Fetches family metadata from family table
    :param rfam_acc:

    :return: A dictionary with metadata describing an Rfam family family
    """
A dictionary with metadata describing an Rfam family family
A dictionary with metadata describing an Rfam family family
rfam_acc
None