mirror of
https://github.com/MillironX/XAM.jl.git
synced 2024-12-23 13:28:16 +00:00
Add tests for issue #31
Test for expected results as decribed in https://github.com/BioJulia/XAM.jl/issues/31. # Conflicts: # test/runtests.jl
This commit is contained in:
parent
9dec90fd9c
commit
48ceb8d20e
4 changed files with 11 additions and 0 deletions
BIN
test/data/SRR7993829_1.100K.forward.bam
Normal file
BIN
test/data/SRR7993829_1.100K.forward.bam
Normal file
Binary file not shown.
BIN
test/data/SRR7993829_1.100K.forward.bam.bai
Normal file
BIN
test/data/SRR7993829_1.100K.forward.bam.bai
Normal file
Binary file not shown.
|
@ -26,3 +26,4 @@ end
|
|||
include("test_sam.jl")
|
||||
include("test_bam.jl")
|
||||
include("test_crosscheck.jl")
|
||||
include("test_issues.jl")
|
||||
|
|
10
test/test_issues.jl
Normal file
10
test/test_issues.jl
Normal file
|
@ -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
|
Loading…
Reference in a new issue