From e8ad60b086d7a355718d0f4cf6a33a3bb4fd9a19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20O=27Mara?= Date: Sun, 23 Feb 2020 06:49:19 +1100 Subject: [PATCH] Use accessor functions --- src/bam/overlap.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bam/overlap.jl b/src/bam/overlap.jl index 0e184c9..bb7b3c1 100644 --- a/src/bam/overlap.jl +++ b/src/bam/overlap.jl @@ -16,7 +16,7 @@ function Base.eltype(::Type{OverlapIterator{T}}) where T end function GenomicFeatures.eachoverlap(reader::Reader, interval::Interval) - return GenomicFeatures.eachoverlap(reader, interval.seqname, interval.first:interval.last) + return GenomicFeatures.eachoverlap(reader, GenomicFeatures.seqname(interval), GenomicFeatures.leftposition(interval):GenomicFeatures.rightposition(interval)) end function GenomicFeatures.eachoverlap(reader::Reader, interval)