def extract_sequence_accessions_from_seed(seed_file):
    """
    Parses a seed MSA and extracts all sequence
    accessions in the form of a dictionary

    seed_file: An Rfam seed alignment

    return: A dictionary of seed accessions
    """

    accessions = {}
    fp = open(seed_file, 'r')

    for line in fp:
        line = line.strip()
        if len(line) > 1 and line[0] != '#' and line != '':
            line = line.split(' ')
            accession = line[0].partition('/')[0]
            if accession != '':
                accessions[accession] = ""

    fp.close()

    return accessions