Fix typos in code examples
@@ -124,14 +124,14 @@ AlignmentFile.fetch does not show unmapped reads
:meth:`~pysam.AlignmentFile.fetch` will only iterate over alignments
in the SAM/BAM file. The following thus always works::
- bf = pysam.AlignemFile(fname, "rb")
+ bf = pysam.AlignmentFile(fname, "rb")
for r in bf.fetch():
assert not r.is_unmapped
If the SAM/BAM file contains unaligned reads, they can be included
in the iteration by adding the ``until_eof=True`` flag::
- bf = pysam.AlignemFile(fname, "rb")
+ bf = pysam.AlignmentFile(fname, "rb")
for r in bf.fetch(until_eof=True):
if r.is_unmapped:
print ("read is unmapped")
@@ -143,7 +143,7 @@ I can't call AlignmentFile.fetch on a file without index
iterating over a SAM/BAM file. To iterate over a file without
index, use the ``until_eof=True`::
- bf = pysam.AlignemFile(fname, "rb")
+ bf = pysam.AlignmentFile(fname, "rb")
for r in bf.fetch(until_eof=True):
print (r)
