projects
/
tabix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changelog entry marking the package released.
[tabix.git]
/
TabixReader.java
diff --git
a/TabixReader.java
b/TabixReader.java
index 5874202581ee8bf72f4b0c3917a743f59c40c03e..0d359c5968ef218020b22bf3394fb049da16fcf6 100644
(file)
--- a/
TabixReader.java
+++ b/
TabixReader.java
@@
-231,7
+231,7
@@
public class TabixReader
if (col == mSc) {
intv.tid = chr2tid(s.substring(beg, end));
} else if (col == mBc) {
if (col == mSc) {
intv.tid = chr2tid(s.substring(beg, end));
} else if (col == mBc) {
- intv.beg = intv.end = Integer.parseInt(s.substring(beg, end));
+ intv.beg = intv.end = Integer.parseInt(s.substring(beg, end
==-1?s.length():end
));
if ((mPreset&0x10000) != 0) ++intv.end;
else --intv.beg;
if (intv.beg < 0) intv.beg = 0;
if ((mPreset&0x10000) != 0) ++intv.end;
else --intv.beg;
if (intv.beg < 0) intv.beg = 0;