1
0
Fork 0
mirror of https://github.com/MillironX/XAM.jl.git synced 2024-11-15 06:43:10 +00:00
XAM.jl/test/runtests.jl

28 lines
518 B
Julia
Raw Normal View History

2020-01-17 18:24:09 +00:00
using Test
using BioGenerics
using FormatSpecimens
using GenomicFeatures
using XAM
import BioAlignments: Alignment, AlignmentAnchor, OP_START, OP_MATCH, OP_DELETE
2020-01-17 18:24:09 +00:00
import BGZFStreams: BGZFStream
import BioGenerics.Exceptions: MissingFieldException
2020-01-17 18:24:09 +00:00
import BioSequences: @dna_str, @aa_str
2020-02-02 11:44:55 +00:00
2020-01-17 18:24:09 +00:00
# Generate a random range within `range`.
function randrange(range)
x = rand(range)
y = rand(range)
if x < y
return x:y
else
return y:x
end
end
2020-05-27 11:21:12 +00:00
include("test_sam.jl")
include("test_bam.jl")