Skip to content

Commit 847f74f

Browse files
authored
Merge pull request #46 from Durbadal0/main
Updated tests functions
2 parents 009a1d6 + f2fb3c5 commit 847f74f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

test/kinship_test.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function kinship_test(kinmat::Matrix{Float64}, testname::String)
3030
println("Test kinship dimensions: ", @test size(kinmat,1)==size(kinmat,2))
3131
# println("Test range: ", @test (maximum(kinmat)<=1.0) && (minimum(kinmat)>=-1.0))
3232
println("Test diagonal: ", @test diag(kinmat) ones(size(kinmat,1)))
33-
println("Test diagonal: ", @test isposdef(kinmat .+ 0.001))
33+
println("Test diagonal: ", @test isposdef(kinmat + 0.001*Matrix{Float64}(I, size(kinmat,1), size(kinmat,1))))
3434

3535
end
3636

@@ -94,10 +94,6 @@ kinship_test(K1, "kinship_std()")
9494
# Test: shrinkg #
9595
#################
9696

97-
K1 = shrinkg(kinship_man, 10, geno1)
98-
K2 = shrinkg(kinship_man, 10, geno2)
99-
100-
kinship_test(K1, "shrinkg()")
10197

10298

10399

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ using DelimitedFiles
1414

1515
@testset "BigRiverQTL" begin
1616
include("kinship_test.jl")
17-
include("datastruct_test.jl")
17+
include("datastruc_test.jl")
18+
include("plots_test.jl")
1819

1920
end

0 commit comments

Comments
 (0)