1
0
Fork 0
mirror of https://github.com/MillironX/XAM.jl.git synced 2024-11-23 10:19:56 +00:00
XAM.jl/test/test_issues.jl
Ciarán O'Mara 99aa013c2b Add tests for issue #31
Test for expected results as described in https://github.com/BioJulia/XAM.jl/issues/31.
2022-08-15 12:30:27 +10:00

13 lines
420 B
Julia

@testset "Issues" begin
# https://github.com/BioJulia/XAM.jl/issues/31
path_bam = joinpath(path_of_format("BAM"), "SRR7993829_1.100K.forward.bam")
open(BAM.Reader, path_bam, index = path_bam * ".bai") do reader
@test count(overlap -> true, eachoverlap(reader, "JH584304.1", 51000:51200)) == 0
@test count(overlap -> true, eachoverlap(reader, "JH584304.1", 51000:51715)) == 1
end
end