utils/db_utils.py
def fetch_mirna_families():
    """
    Fetches a list of all microRNA families from family table

    :return: A dictionary with metadata describing Rfam microRNA families
    """

    query = """select rfam_acc, rfam_id, description, gathering_cutoff
        from family
        where type like '%mirna%'"""

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

    cursor.execute(query)

    data = cursor.fetchall()

    cursor.close()
    cnx.close()

    return data

    Fetches a list of all microRNA families from family table

    :return: A dictionary with metadata describing Rfam microRNA families
    
Fetches a list of all microRNA families from family table
Fetches a list of all microRNA families from family table
def fetch_mirna_families():
    query = """select rfam_acc, rfam_id, description, gathering_cutoff
        from family
        where type like '%mirna%'"""
    cnx = RfamDB.connect()
    cursor = cnx.cursor(dictionary=True)
    cursor.execute(query)
    data = cursor.fetchall()
    cursor.close()
    cnx.close()
    return data
def fetch_mirna_families ( ) : query = """select rfam_acc, rfam_id, description, gathering_cutoff
        from family
        where type like '%mirna%'""" cnx = RfamDB . connect ( ) cursor = cnx . cursor ( dictionary = True ) cursor . execute ( query ) data = cursor . fetchall ( ) cursor . close ( ) cnx . close ( ) return data
Fetches a list of all microRNA families from family table
Fetches a list of all microRNA families from family table
"""
    Fetches a list of all microRNA families from family table

    :return: A dictionary with metadata describing Rfam microRNA families
    """
A dictionary with metadata describing Rfam microRNA families
A dictionary with metadata describing Rfam microRNA families