def load_sequences(contigFile, delimiter):
    """Load sequences into a variable.

    Parameters
    ----------
    contigFile : str
        File where the seqs are stored.
    delimiter : str
        Delimiter of sequences.

    Returns
    -------
    type
        Variable with sequences stored.

    """
    seqs = {}
    name = ""
    s = []
    for line in open(contigFile):
        line = line.strip()
        if ">" in line:
            if name != "":
                seqs[name] = "".join(s)
            if delimiter == "":
                name = line.replace(">", "")
            else:
                name = line.replace(">", "").split(delimiter)[0]
            s = []
        else:
            s.append(line.upper())
    if len(s) != 0:
        seqs[name] = "".join(s)
    return seqs