Skip to content

Commit

Permalink
Potential fix for bug in #20. Pass initial arguments to Faidx when re…
Browse files Browse the repository at this point in the history
…-initializing after building an index.
  • Loading branch information
mdshw5 committed Aug 27, 2014
1 parent 1f0e219 commit c33b2f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyfaidx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ def __init__(self, filename, default_seq=None, key_function=None,
else:
self.rebuild_index()
self.write_fai()
self.__init__(filename, key_function)
self.__init__(filename, key_function=key_function,
as_raw=as_raw,
strict_bounds=strict_bounds)

def __repr__(self):
return 'Faidx("%s")' % (self.filename)
Expand Down

0 comments on commit c33b2f8

Please sign in to comment.