1
0
Fork 0
mirror of https://github.com/MillironX/XAM.jl.git synced 2024-11-14 14:23:11 +00:00

Use accessor functions

This commit is contained in:
Ciarán O'Mara 2020-02-23 06:49:19 +11:00
parent b0069d6f27
commit e8ad60b086

View file

@ -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)