scripts/preprocessing/relabel_seed.py
def fetch_seed_sequence_coordinates(seed_seq, full_seq):
    """
    Returns seed sequence start and end coordinates based on the
    accession provided as input

    accession: A valid GenBank|ENA\RNAcentral accession

    return: A tuple with start and end coordinates in this order
    """
    start = 0
    end = 0

    # use accession to fetch the coordinates - sequence might be needed
    start = full_seq.find(seed_seq)

    end = start + len(seed_seq)

    # return start and end coordinates if subsequence was found
    if start != -1:
        return (start+1, end)

    return (0, 0)

    Returns seed sequence start and end coordinates based on the
    accession provided as input

    accession: A valid GenBank|ENA\RNAcentral accession

    return: A tuple with start and end coordinates in this order
    
Returns seed sequence start and end coordinates based on the
accession provided as input



A tuple with start and end coordinates in this order
Returns seed sequence start and end coordinates based on the accession provided as input A tuple with start and end coordinates in this order
def fetch_seed_sequence_coordinates(seed_seq, full_seq):
    start = 0
    end = 0
    start = full_seq.find(seed_seq)
    end = start + len(seed_seq)
    if start != -1:
        return (start+1, end)
    return (0, 0)
def fetch_seed_sequence_coordinates ( seed_seq , full_seq ) : start = 0 end = 0 start = full_seq . find ( seed_seq ) end = start + len ( seed_seq ) if start != - 1 : return ( start + 1 , end ) return ( 0 , 0 )
Returns seed sequence start and end coordinates based on the
accession provided as input
Returns seed sequence start and end coordinates based on the accession provided as input
"""
    Returns seed sequence start and end coordinates based on the
    accession provided as input

    accession: A valid GenBank|ENA\RNAcentral accession

    return: A tuple with start and end coordinates in this order
    """ # use accession to fetch the coordinates - sequence might be needed # return start and end coordinates if subsequence was found
seed_seq
full_seq