def genome_alignment_iterator(fn, reference_species, index_friendly=False,<EOL>verbose=False):
kw_args = {"<STR_LIT>": reference_species}<EOL>for e in maf.maf_iterator(fn, index_friendly=index_friendly,<EOL>yield_class=GenomeAlignmentBlock,<EOL>yield_kw_args=kw_args,<EOL>verbose=verbose):<EOL><INDENT>yield e<EOL><DEDENT>
build an iterator for an MAF file of genome alignment blocks.

:param fn:                 filename or stream-like object to iterate over.
:param reference_species:  which species in the alignment should be treated
                           as the reference?
:param index_friendly:     if True, buffering is disabled to support using
                           the iterator to build an index.

:return an iterator that yields GenomeAlignment objects