def removeAmbiguousBases(seq):
    """ Converts ambiguous bases to - as required by PhyML"""
    new_seq = ""
    for char in seq:
        if char not in  ["A", "T", "C", "G"]:
            char = "-"
        new_seq += char
    return new_seq