def index_repeatmasker_alignment_by_id(fh, out_fh, vebrose=False):
def extract_UID(rm_alignment):<EOL><INDENT>return rm_alignment.meta[multipleAlignment.RM_ID_KEY]<EOL><DEDENT>index = IndexedFile(fh, repeat_masker_alignment_iterator, extract_UID)<EOL>index.write_index(out_fh)<EOL>
Build an index for a repeat-masker alignment file by repeat-masker ID.