if (i != str->l) str->s[i] = '\t';
} else if (id == idx->conf.bc) {
// here ->beg is 1-based. it will be changed to 0-based at the end of this routine.
- intv->beg = strtol(str->s + b, &s, 0);
- if (idx->conf.preset&TI_FLAG_UCSC) ++intv->beg;
+ intv->beg = intv->end = strtol(str->s + b, &s, 0);
+ if (!(idx->conf.preset&TI_FLAG_UCSC)) --intv->beg;
} else {
if ((idx->conf.preset&0xffff) == TI_PRESET_GENERIC) {
if (id == idx->conf.ec) intv->end = strtol(str->s + b, &s, 0);
#include "bgzf.h"
#include "tabix.h"
-#define PACKAGE_VERSION "0.1.0 (r506)"
+#define PACKAGE_VERSION "0.1.1 (r542)"
static int fetch_func(int l, const char *s, void *data)
{
for (i = optind + 1; i < argc; ++i) {
int tid, beg, end;
if (ti_parse_region(idx, argv[i], &tid, &beg, &end) == 0) {
+ fprintf(stderr, "%d,%d\n", beg, end);
ti_fetch(fp, idx, tid, beg, end, 0, fetch_func);
} else fprintf(stderr, "[main] invalid region: unknown target name or minus interval.\n");
}
-.TH tabix 1 "2 November 2009" "tabix-0.1.0" "Bioinformatics tools"
+.TH tabix 1 "16 March 2009" "tabix-0.1.1" "Bioinformatics tools"
.SH NAME
.PP
bgzip - Block compression/decompression utility
Column of start chromosomal position. [4]
.TP
.BI "-e " INT
-Column of end chromosomal position. [5]
+Column of end chromosomal position. The end column can be the same as
+start column, [5]
.TP
.BI "-S " INT
Skip first INT lines in the data file. [0]