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 described in https://github.com/BioJulia/XAM.jl/issues/31.
This commit is contained in:
parent
7609f6e24d
commit
99aa013c2b
3 changed files with 15 additions and 0 deletions
|
@ -20,6 +20,7 @@ BGZFStreams = "0.3"
|
|||
BioAlignments = "2"
|
||||
BioGenerics = "0.1"
|
||||
BioSequences = "2.0.4"
|
||||
FormatSpecimens = "1.1"
|
||||
GenomicFeatures = "2"
|
||||
Indexes = "0.1"
|
||||
TranscodingStreams = "0.6, 0.7, 0.8, 0.9"
|
||||
|
|
|
@ -25,3 +25,4 @@ end
|
|||
|
||||
include("test_sam.jl")
|
||||
include("test_bam.jl")
|
||||
include("test_issues.jl")
|
||||
|
|
13
test/test_issues.jl
Normal file
13
test/test_issues.jl
Normal file
|
@ -0,0 +1,13 @@
|
|||
@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
|
Loading…
Reference in a new issue