Skip to content

Commit

Permalink
Release tabix-0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Heng Li committed Jun 3, 2010
1 parent a31101d commit 005435b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
12 changes: 12 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
Beta Release 0.2.1 (3 June, 2010)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Notable changes:

* Allow shared library to be compiled. Added python binding to the
shared library.

(0.2.1: 3 June 2010, r582)



Beta Release 0.2.0 (11 May, 2010)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "bgzf.h"
#include "tabix.h"

#define PACKAGE_VERSION "0.1.6 (r565)"
#define PACKAGE_VERSION "0.2.1 (r582)"

int main(int argc, char *argv[])
{
Expand Down
4 changes: 2 additions & 2 deletions tabix.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def fetch(self, chr, start=-1, end=-1):
within the requested range from the requested file.
"""
if (self.tabix == None): return
if (start < 0): iter = self.tabix.ti_querys(self.fp, chr)
else: iter = self.tabix.ti_query(self.fp, chr, start, end)
if (start < 0): iter = self.tabix.ti_querys(self.fp, chr) # chr looks like: "chr2:1,000-2,000" or "chr2"
else: iter = self.tabix.ti_query(self.fp, chr, start, end) # chr must be a sequence name
if (iter == None):
sys.stderr.write("[Tabix] Malformatted query or wrong sequence name.\n")
return
Expand Down

0 comments on commit 005435b

Please sign in to comment.