utils/db_utils.py
def load_clan_members_from_db(clan_acc):
    """
    Retrieves all clan family members from DB and returns a list of the family
    accessions.

    clan_acc: Clan accession as in Rfam
    """

    clan_members = []

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

    query = ("SELECT rfam_acc FROM clan_membership "
       "WHERE clan_acc=\'%s\'") % (clan_acc)

    cursor.execute(query)

    rows = cursor.fetchall()

    cursor.close()
    RfamDB.disconnect(cnx)

    for fam in rows:
      clan_members.append(str(fam[0]))

      return clan_members

    Retrieves all clan family members from DB and returns a list of the family
    accessions.

    clan_acc: Clan accession as in Rfam
    
Retrieves all clan family members from DB and returns a list of the family
accessions.

Clan accession as in Rfam
Retrieves all clan family members from DB and returns a list of the family accessions . Clan accession as in Rfam
def load_clan_members_from_db(clan_acc):
    clan_members = []
    cnx = RfamDB.connect()
    cursor = cnx.cursor(raw=True)
    query = ("SELECT rfam_acc FROM clan_membership "
       "WHERE clan_acc=\'%s\'") % (clan_acc)
    cursor.execute(query)
    rows = cursor.fetchall()
    cursor.close()
    RfamDB.disconnect(cnx)
    for fam in rows:
      clan_members.append(str(fam[0]))
      return clan_members
def load_clan_members_from_db ( clan_acc ) : clan_members = [ ] cnx = RfamDB . connect ( ) cursor = cnx . cursor ( raw = True ) query = ( "SELECT rfam_acc FROM clan_membership " "WHERE clan_acc=\'%s\'" ) % ( clan_acc ) cursor . execute ( query ) rows = cursor . fetchall ( ) cursor . close ( ) RfamDB . disconnect ( cnx ) for fam in rows : clan_members . append ( str ( fam [ 0 ] ) ) return clan_members
Retrieves all clan family members from DB and returns a list of the family
accessions.
Retrieves all clan family members from DB and returns a list of the family accessions .
"""
    Retrieves all clan family members from DB and returns a list of the family
    accessions.

    clan_acc: Clan accession as in Rfam
    """
clan_acc