scripts/preprocessing/relabel_seed.py
def fetch_RNAcentral_id(sequence):
    """
    Looks for a sequence match in RNAcentral based on sequence md5
    and fetches the corresponding RNAcentral accession

    sequence: A valid DNA/RNA sequence

    return: Returns RNAcentral id, otherwise returns None
    """

    sequence_md5 = sequence_to_md5(sequence)
    rnacentral_url = 'https://rnacentral.org/api/v1/rna'
    response = requests.get(rnacentral_url, params={'md5': sequence_md5})

    data = response.json()

    if data['count'] > 0:
        return data['results'][0]['rnacentral_id']

    return None

    Looks for a sequence match in RNAcentral based on sequence md5
    and fetches the corresponding RNAcentral accession

    sequence: A valid DNA/RNA sequence

    return: Returns RNAcentral id, otherwise returns None
    
Looks for a sequence match in RNAcentral based on sequence md5
and fetches the corresponding RNAcentral accession

A valid DNA/RNA sequence

Returns RNAcentral id, otherwise returns None
Looks for a sequence match in RNAcentral based on sequence md5 and fetches the corresponding RNAcentral accession A valid DNA / RNA sequence Returns RNAcentral id otherwise returns None
def fetch_RNAcentral_id(sequence):
    sequence_md5 = sequence_to_md5(sequence)
    rnacentral_url = 'https://rnacentral.org/api/v1/rna'
    response = requests.get(rnacentral_url, params={'md5': sequence_md5})
    data = response.json()
    if data['count'] > 0:
        return data['results'][0]['rnacentral_id']
    return None
def fetch_RNAcentral_id ( sequence ) : sequence_md5 = sequence_to_md5 ( sequence ) rnacentral_url = 'https://rnacentral.org/api/v1/rna' response = requests . get ( rnacentral_url , params = { 'md5' : sequence_md5 } ) data = response . json ( ) if data [ 'count' ] > 0 : return data [ 'results' ] [ 0 ] [ 'rnacentral_id' ] return None
Looks for a sequence match in RNAcentral based on sequence md5
and fetches the corresponding RNAcentral accession
Looks for a sequence match in RNAcentral based on sequence md5 and fetches the corresponding RNAcentral accession
"""
    Looks for a sequence match in RNAcentral based on sequence md5
    and fetches the corresponding RNAcentral accession

    sequence: A valid DNA/RNA sequence

    return: Returns RNAcentral id, otherwise returns None
    """
sequence