File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -104,10 +104,10 @@ int create_grabix_index(string bgzf_file)
104
104
{
105
105
// grab the next line and store the offset
106
106
eof = bgzf_getline (bgzf_fp, ' \n ' , line);
107
- offset = bgzf_tell (bgzf_fp);
107
+ offset = bgzf_tell (bgzf_fp);
108
108
chunk_count++;
109
109
// stop if we have encountered an empty line
110
- if (eof <= 0 )
110
+ if (eof <= 0 || offset == prev_offset )
111
111
{
112
112
if (bgzf_check_EOF (bgzf_fp) == 1 ) {
113
113
if (offset > prev_offset) {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ using namespace std;
7
7
#include " bgzf.h"
8
8
9
9
10
- #define VERSION " 0.1.7 "
10
+ #define VERSION " 0.1.8 "
11
11
// we only want to store the offset for every 10000th
12
12
// line. otherwise, were we to store the position of every
13
13
// line in the file, the index could become very large for
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ echo "indexing"
9
9
time ./grabix index $FQ
10
10
echo " indexed"
11
11
python tests/test-fastq.py $FQ
12
- a=$( grabix grab test.cnt.gz $(( $lines * 4 )) )
12
+ a=$( ./ grabix grab test.cnt.gz $(( $lines * 4 )) )
13
13
b=$( zless $FQ | tail -1)
14
14
if [[ " $a " != " $b " ]]; then
15
15
echo FAIL last record
You can’t perform that action at this time.
0 commit comments