utils/db_utils.py
def fetch_max_RG_accession_from_genome():
    """
    Fetches the maximum RFXXXXXXXXX accession from the RfamLive
    genome table. To be used for assigning accessions to genomes
    not found in Uniprot proteomes.

    return: Returns the maximum RGXXXXXXXXX id found in the genome
    table
    """

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

    query = "Select max(upid) from genome where upid like \'RG%\'"

    cursor.execute(query)

    rfam_genome_id = cursor.fetchone()[0]

    return rfam_genome_id

    Fetches the maximum RFXXXXXXXXX accession from the RfamLive
    genome table. To be used for assigning accessions to genomes
    not found in Uniprot proteomes.

    return: Returns the maximum RGXXXXXXXXX id found in the genome
    table
    
Fetches the maximum RFXXXXXXXXX accession from the RfamLive
genome table. To be used for assigning accessions to genomes
not found in Uniprot proteomes.

Returns the maximum RGXXXXXXXXX id found in the genome
table
Fetches the maximum RFXXXXXXXXX accession from the RfamLive genome table . To be used for assigning accessions to genomes not found in Uniprot proteomes . Returns the maximum RGXXXXXXXXX id found in the genome table
def fetch_max_RG_accession_from_genome():
    cnx = RfamDB.connect()
    cursor = cnx.cursor(buffered=True)
    query = "Select max(upid) from genome where upid like \'RG%\'"
    cursor.execute(query)
    rfam_genome_id = cursor.fetchone()[0]
    return rfam_genome_id
def fetch_max_RG_accession_from_genome ( ) : cnx = RfamDB . connect ( ) cursor = cnx . cursor ( buffered = True ) query = "Select max(upid) from genome where upid like \'RG%\'" cursor . execute ( query ) rfam_genome_id = cursor . fetchone ( ) [ 0 ] return rfam_genome_id
Fetches the maximum RFXXXXXXXXX accession from the RfamLive
genome table.
Fetches the maximum RFXXXXXXXXX accession from the RfamLive genome table .
"""
    Fetches the maximum RFXXXXXXXXX accession from the RfamLive
    genome table. To be used for assigning accessions to genomes
    not found in Uniprot proteomes.

    return: Returns the maximum RGXXXXXXXXX id found in the genome
    table
    """