diff --git a/test/data/SRR7993829_1.100K.forward.bam b/test/data/SRR7993829_1.100K.forward.bam new file mode 100644 index 0000000..57710dd Binary files /dev/null and b/test/data/SRR7993829_1.100K.forward.bam differ diff --git a/test/data/SRR7993829_1.100K.forward.bam.bai b/test/data/SRR7993829_1.100K.forward.bam.bai new file mode 100644 index 0000000..8846b10 Binary files /dev/null and b/test/data/SRR7993829_1.100K.forward.bam.bai differ diff --git a/test/runtests.jl b/test/runtests.jl index a17a352..19d0b3c 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -26,3 +26,4 @@ end include("test_sam.jl") include("test_bam.jl") include("test_crosscheck.jl") +include("test_issues.jl") diff --git a/test/test_issues.jl b/test/test_issues.jl new file mode 100644 index 0000000..45a6cdc --- /dev/null +++ b/test/test_issues.jl @@ -0,0 +1,10 @@ +@testset "Issues" begin + # https://github.com/BioJulia/XAM.jl/issues/31 + path_bam = joinpath("data", "SRR7993829_1.100K.forward.bam") + open(BAM.Reader, path_bam, index = path_bam * ".bai") do reader + + @test count((r)-> true, eachoverlap(reader, "JH584304.1", 51000:51200)) == 0 + @test count((r)-> true, eachoverlap(reader, "JH584304.1", 51000:51715)) == 1 + + end +end