scripts/release/rethreshold_family.py
def extract_unique_seeds_from_seedoutlist(seedoutlist):
    """
    Extracts all unique SEED accessions in the form of rfamseq_acc/start-end.
    Ignores duplicated hits.

    """

    seeds_found = {}

    fp = open(seedoutlist, 'r')

    for line in fp:
        if line[0] != '#':
            line = [x for x in line.strip().split(' ') if x != '']
            if line[3] not in seeds_found:
                seeds_found[line[3]] = float(line[0])

    fp.close()

    return seeds_found

    Extracts all unique SEED accessions in the form of rfamseq_acc/start-end.
    Ignores duplicated hits.

    
Extracts all unique SEED accessions in the form of rfamseq_acc/start-end.
Ignores duplicated hits.
Extracts all unique SEED accessions in the form of rfamseq_acc / start - end . Ignores duplicated hits .
def extract_unique_seeds_from_seedoutlist(seedoutlist):
    seeds_found = {}
    fp = open(seedoutlist, 'r')
    for line in fp:
        if line[0] != '#':
            line = [x for x in line.strip().split(' ') if x != '']
            if line[3] not in seeds_found:
                seeds_found[line[3]] = float(line[0])
    fp.close()
    return seeds_found
def extract_unique_seeds_from_seedoutlist ( seedoutlist ) : seeds_found = { } fp = open ( seedoutlist , 'r' ) for line in fp : if line [ 0 ] != '#' : line = [ x for x in line . strip ( ) . split ( ' ' ) if x != '' ] if line [ 3 ] not in seeds_found : seeds_found [ line [ 3 ] ] = float ( line [ 0 ] ) fp . close ( ) return seeds_found
Extracts all unique SEED accessions in the form of rfamseq_acc/start-end.
Extracts all unique SEED accessions in the form of rfamseq_acc / start - end .
"""
    Extracts all unique SEED accessions in the form of rfamseq_acc/start-end.
    Ignores duplicated hits.

    """
seedoutlist