Skip to content

Commit 277a652

Browse files
committed
Use GenomicInterval type
1 parent 3e9e2f0 commit 277a652

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"
1212
[compat]
1313
BGZFStreams = "0.3"
1414
BioGenerics = "0.1"
15-
GenomicFeatures = "2"
15+
GenomicFeatures = "3"
1616
TranscodingStreams = "0.9.5"
1717
julia = "1"
1818

src/Indexes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ using TranscodingStreams
1212

1313
import BGZFStreams
1414
import BioGenerics
15-
import GenomicFeatures: Interval
15+
import GenomicFeatures: GenomicInterval
1616

1717
function Base.bytesavailable(stream::BGZFStreams.BGZFStream{IOStream})
1818

src/overlap.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
struct TabixOverlapIterator{T}
55
reader::T
6-
interval::Interval
6+
interval::GenomicInterval
77
end
88

99
function Base.eltype(::Type{TabixOverlapIterator{T}}) where T

src/tabix.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ end
7070

7171

7272
"""
73-
overlapchunks(tabix::Tabix, interval::Interval)
73+
overlapchunks(tabix::Tabix, interval::GenomicInterval)
7474
7575
Return chunks possibly overlapping with the range specified by `interval`.
7676
7777
Note that records within the returned chunks are not guaranteed to actually overlap the query interval.
7878
"""
79-
function overlapchunks(tabix::Tabix, interval::Interval)
79+
function overlapchunks(tabix::Tabix, interval::GenomicInterval)
8080
seqid = findfirst(isequal(BioGenerics.seqname(interval)), tabix.names)
8181
if seqid == 0
8282
throw(ArgumentError("failed to find sequence name '$(BioGenerics.seqname(interval))'"))

0 commit comments

Comments
 (0)