projects
/
tabix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2112b1d
)
Imported Upstream version 0.2.5
author
Charles Plessy
<plessy@debian.org>
Sat, 7 May 2011 12:17:57 +0000
(21:17 +0900)
committer
Charles Plessy
<plessy@debian.org>
Sat, 7 May 2011 12:17:57 +0000
(21:17 +0900)
bedidx.c
patch
|
blob
|
history
main.c
patch
|
blob
|
history
diff --git
a/bedidx.c
b/bedidx.c
index 92978318d4ccfbbabeeddd150458245f669062d8..722877dcc2aa1d414460c328e6e022a22befecfe 100644
(file)
--- a/
bedidx.c
+++ b/
bedidx.c
@@
-4,6
+4,9
@@
#include <stdio.h>
#include <zlib.h>
#include <stdio.h>
#include <zlib.h>
+#include "ksort.h"
+KSORT_INIT_GENERIC(uint64_t)
+
#include "kseq.h"
KSTREAM_INIT(gzFile, gzread, 8192)
#include "kseq.h"
KSTREAM_INIT(gzFile, gzread, 8192)
@@
-53,6
+56,7
@@
void bed_index(void *_h)
if (kh_exist(h, k)) {
bed_reglist_t *p = &kh_val(h, k);
if (p->idx) free(p->idx);
if (kh_exist(h, k)) {
bed_reglist_t *p = &kh_val(h, k);
if (p->idx) free(p->idx);
+ ks_introsort(uint64_t, p->n, p->a);
p->idx = bed_index_core(p->n, p->a, &p->m);
}
}
p->idx = bed_index_core(p->n, p->a, &p->m);
}
}
diff --git
a/main.c
b/main.c
index 46642510d6dfdccf0ab5a628826f1fe9844ae310..364abe5ff6751b3ea4720f3d1a45a7dcd22d84d4 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-7,7
+7,7
@@
#include "bgzf.h"
#include "tabix.h"
#include "bgzf.h"
#include "tabix.h"
-#define PACKAGE_VERSION "0.2.
4 (r949
)"
+#define PACKAGE_VERSION "0.2.
5 (r964
)"
#define error(...) { fprintf(stderr,__VA_ARGS__); return -1; }
#define error(...) { fprintf(stderr,__VA_ARGS__); return -1; }