def write_to_pir_alignment(pir_alignment_filehandle, seq_type, seq_name, seq):
    """Write the `*.pir` alignment compatible with modeller.

    Parameters
    ----------
    seq_type : str
        One of: ['sequence', 'structure'], in that order.
    seq_name : str
        Name to appear in the alignment.
    seq : str
        Alignment sequence.
    """
    pir_alignment_filehandle.write('>P1;' + seq_name + '\n')
    pir_alignment_filehandle.write(seq_type + ':' + seq_name + ':.:.:.:.::::\n'
        )
    pir_alignment_filehandle.write(seq + '*')
    pir_alignment_filehandle.write('\n\n')
