def genome_from_genfile(genome_file):
    """
    Given a file pointer to a .gen (from avida analyze mode), return the genome as a list of instructions.
    """
    with open(genome_file, "r") as gen_fp:
        sequence = [line.strip() for line in gen_fp if (line.strip() != "") and (not "#" in line)]
    return sequence