def seq_names(fasta_file):
    """Get sequence names from fasta file."""
    names = []
    f = open(fasta_file)
    fasta = f.read()
    f.close()
    for a in fasta.split(">"):
        names.append(a.split("\n")[0])
    return [a for a in names if a != ""]