def isFasta(nm):
    """does this filename look like a FASTA file?"""
    if nm.endswith(".fa"):
        return True
    if nm.endswith(".fas"):
        return True
    if nm.endswith(".fasta"):
        return True
    if nm.endswith(".fna"):
        return True
    return False