scripts/processing/threshold_selector.py
def is_seed_below_reversed(scores_file):
    """
    Checks if any SEED sequences score below REVERSED

    scores_file: The path to rfsearch outlist or species file

    return: True if SEEDs sequences are found below REVERSED. False
    otherwise
    """

    seen_rev = False

    fp = open(scores_file, 'r')

    for line in fp:
        if line[0] != '#':
            if seen_rev is False:
                continue
            else:
                line = [x for x in line.strip().split('\t') if x!='']
                if line[2] == 'SEED':
                    return True
        elif line.find("REVERSED") != -1:
            seen_rev = True

    fp.close()

    return False

    Checks if any SEED sequences score below REVERSED

    scores_file: The path to rfsearch outlist or species file

    return: True if SEEDs sequences are found below REVERSED. False
    otherwise
    
Checks if any SEED sequences score below REVERSED
scores_file: The path to rfsearch outlist or species file

True if SEEDs sequences are found below REVERSED. False
otherwise
Checks if any SEED sequences score below REVERSED scores_file : The path to rfsearch outlist or species file True if SEEDs sequences are found below REVERSED . False otherwise
def is_seed_below_reversed(scores_file):
    seen_rev = False
    fp = open(scores_file, 'r')
    for line in fp:
        if line[0] != '#':
            if seen_rev is False:
                continue
            else:
                line = [x for x in line.strip().split('\t') if x!='']
                if line[2] == 'SEED':
                    return True
        elif line.find("REVERSED") != -1:
            seen_rev = True
    fp.close()
    return False
def is_seed_below_reversed ( scores_file ) : seen_rev = False fp = open ( scores_file , 'r' ) for line in fp : if line [ 0 ] != '#' : if seen_rev is False : continue else : line = [ x for x in line . strip ( ) . split ( '\t' ) if x != '' ] if line [ 2 ] == 'SEED' : return True elif line . find ( "REVERSED" ) != - 1 : seen_rev = True fp . close ( ) return False
Checks if any SEED sequences score below REVERSED
scores_file: The path to rfsearch outlist or species file
Checks if any SEED sequences score below REVERSED scores_file : The path to rfsearch outlist or species file
"""
    Checks if any SEED sequences score below REVERSED

    scores_file: The path to rfsearch outlist or species file

    return: True if SEEDs sequences are found below REVERSED. False
    otherwise
    """
scores_file