mirror of
https://github.com/MillironX/XAM.jl.git
synced 2024-11-15 06:43:10 +00:00
28 lines
548 B
Julia
28 lines
548 B
Julia
using Test
|
|
|
|
using BioGenerics
|
|
using FormatSpecimens
|
|
using GenomicFeatures
|
|
using XAM
|
|
|
|
import BioAlignments: Alignment, AlignmentAnchor, OP_START, OP_MATCH, OP_DELETE
|
|
import BGZFStreams: BGZFStream
|
|
import BioGenerics.Exceptions: MissingFieldException
|
|
import BioSequences: @dna_str, @aa_str
|
|
|
|
|
|
# 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
|
|
|
|
|
|
include("test_sam.jl")
|
|
include("test_bam.jl")
|
|
include("test_crosscheck.jl")
|