Skip to content

Commit 1d90f6c

Browse files
committed
Merge branch 'release/v0.1.2'
2 parents 0f07cda + bdd0298 commit 1d90f6c

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/UnitTests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ jobs:
1414
julia-version:
1515
- '1.0' # LTS
1616
- '1'
17-
julia-arch: [x86]
17+
julia-arch: [x64, x86]
1818
os: [ubuntu-latest, windows-latest, macOS-latest]
1919
experimental: [false]
2020
include:
2121
- julia-version: nightly
22-
julia-arch: x86
22+
julia-arch: x64
2323
os: ubuntu-latest
2424
experimental: true
2525

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Indexes"
22
uuid = "4ffb77ac-cb80-11e8-1b35-4b78cc642f6d"
33
authors = ["Kenta Sato <bicycle1885@gmail.com>", "Ben J. Ward <benjward@protonmail.com>", "Ciarán O’Mara <CiaranOMara@utas.edu.au>"]
4-
version = "0.1.1"
4+
version = "0.1.2"
55

66
[deps]
77
BGZFStreams = "28d598bf-9b8f-59f1-b38c-5a06b4a0f5e6"

src/overlap.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ function Base.iterate(iter::TabixOverlapIterator, state)
7676
end
7777

7878
function icmp(record, interval)
79-
c = cmp(BioCore.seqname(record), interval.seqname)
79+
c = cmp(BioCore.seqname(record), BioCore.seqname(interval))
8080

81-
if c < 0 || (c == 0 && BioCore.rightposition(record) < interval.first)
81+
if c < 0 || (c == 0 && BioCore.rightposition(record) < BioCore.leftposition(interval))
8282
return -1
8383
end
8484

85-
if c > 0 || (c == 0 && BioCore.leftposition(record) > interval.last)
85+
if c > 0 || (c == 0 && BioCore.leftposition(record) > BioCore.rightposition(interval))
8686
return +1
8787
end
8888

src/tabix.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ Return chunks possibly overlapping with the range specified by `interval`.
7777
Note that records within the returned chunks are not guaranteed to actually overlap the query interval.
7878
"""
7979
function overlapchunks(tabix::Tabix, interval::Interval)
80-
seqid = findfirst(isequal(interval.seqname), tabix.names)
80+
seqid = findfirst(isequal(BioCore.seqname(interval)), tabix.names)
8181
if seqid == 0
82-
throw(ArgumentError("failed to find sequence name '$(interval.seqname)'"))
82+
throw(ArgumentError("failed to find sequence name '$(BioCore.seqname(interval))'"))
8383
end
84-
return overlapchunks(tabix.index, seqid, interval.first:interval.last)
84+
return overlapchunks(tabix.index, seqid, BioCore.leftposition(interval):BioCore.rightposition(interval))
8585
end
8686

8787
# Check if `format` follows the BED rule (half-closed-half-open and 0-based).

0 commit comments

Comments
 (0)