utils/db_utils.py
def fetch_family_seed_regions(rfam_acc):
    """
    Fetches family regions from full_region table
    :param rfam_acc:

    :return: A dictionary with all SEED regions per accession belonging to a specific
    family
    """

    query = """select rfamseq_acc, seq_start, seq_end
        from seed_region
        where rfam_acc=\'%s\'"""

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

    cursor.execute(query % rfam_acc)

    regions = cursor.fetchall()

    cursor.close()
    cnx.close()

    return regions

    Fetches family regions from full_region table
    :param rfam_acc:

    :return: A dictionary with all SEED regions per accession belonging to a specific
    family
    
Fetches family regions from full_region table
Fetches family regions from full_region table
def fetch_family_seed_regions(rfam_acc):
    query = """select rfamseq_acc, seq_start, seq_end
        from seed_region
        where rfam_acc=\'%s\'"""
    cnx = RfamDB.connect()
    cursor = cnx.cursor(dictionary=True)
    cursor.execute(query % rfam_acc)
    regions = cursor.fetchall()
    cursor.close()
    cnx.close()
    return regions
def fetch_family_seed_regions ( rfam_acc ) : query = """select rfamseq_acc, seq_start, seq_end
        from seed_region
        where rfam_acc=\'%s\'""" cnx = RfamDB . connect ( ) cursor = cnx . cursor ( dictionary = True ) cursor . execute ( query % rfam_acc ) regions = cursor . fetchall ( ) cursor . close ( ) cnx . close ( ) return regions
Fetches family regions from full_region table
Fetches family regions from full_region table
"""
    Fetches family regions from full_region table
    :param rfam_acc:

    :return: A dictionary with all SEED regions per accession belonging to a specific
    family
    """
A dictionary with all SEED regions per accession belonging to a specific
family
A dictionary with all SEED regions per accession belonging to a specific family
rfam_acc
None