From c33b2f8085bacc9e6e48173a096de6a2ece6dfca Mon Sep 17 00:00:00 2001 From: Matt Shirley Date: Wed, 27 Aug 2014 11:16:21 -0400 Subject: [PATCH] Potential fix for bug in #20. Pass initial arguments to Faidx when re-initializing after building an index. --- pyfaidx/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyfaidx/__init__.py b/pyfaidx/__init__.py index 210d583..c13213e 100644 --- a/pyfaidx/__init__.py +++ b/pyfaidx/__init__.py @@ -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)