Skip to content

Seeking Help with MethodError on vconvert in HaploADMIXTURE.jl #12

@momosa3

Description

@momosa3

Hello,

I am working on a project using the HaploADMIXTURE.jl, and I've encountered an error while running tests. The error occurs during the execution of a test set defined in my runtests.jl file using param of sparsity. I would appreciate any guidance or suggestions on how to resolve this issue.

The error message I receive is as follows:

HaploADMIXTURE.jl: Error During Test at /public/home/HaploADMIXTURE.jl/test/runtests.jl:4
Got exception outside of a @test
MethodError: no method matching vconvert(::Type{Float64}, ::Bool)

Closest candidates are:
vconvert(::Type{VectorizationBase.EVLMask{W, U}}, ::Bool) where {W, U}
@ VectorizationBase ~/.julia/packages/VectorizationBase/wHnQd/src/llvm_intrin/masks.jl:893
vconvert(::Type{VectorizationBase.EVLMask{W}}, ::Bool) where W
@ VectorizationBase ~/.julia/packages/VectorizationBase/wHnQd/src/llvm_intrin/masks.jl:1164
vconvert(::Type{T}, ::VectorizationBase.MM{W, X}) where {W, X, T<:Union{Bool, Float16, Float32, Float64, Int16, Int32, Int64, Int8, UInt16, UInt32, UInt64, UInt8, SIMDTypes.Bit}}
@ VectorizationBase ~/.julia/packages/VectorizationBase/wHnQd/src/ranges.jl:144

The code I run is as follows:

@testset "HaploADMIXTURE.jl" begin
    EUR = SnpArrays.datadir("EUR_subset.bed")
    rng = StableRNG(12)
    d, _, _ = HaploADMIXTURE.run_admixture(EUR, 6, 1000, 4;rng=rng, admix_rtol=1e-3, sparsity=1000, use_gpu=false, progress_bar=true)
    Sys.iswindows() || rm("test_4_2000aims.bed", force=true)
    Sys.iswindows() || rm("test_4_2000aims.bim", force=true)
    Sys.iswindows() || rm("test_4_2000aims.fam", force=true)
end

...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions