def index_genome_alignment_by_locus(fh, out_fh, verbose=False):
bound_iter = functools.partial(genome_alignment_iterator,<EOL>reference_species="<STR_LIT>", index_friendly=True)<EOL>hash_func = JustInTimeGenomeAlignmentBlock.build_hash<EOL>idx = IndexedFile(fh, bound_iter, hash_func)<EOL>idx.write_index(out_fh, verbose=verbose)<EOL>
Build an index for a genome alig. using coords in ref genome as keys.