reworkhow / JWAS.jl

Julia for Whole-genome Analysis Software
http://QTL.rocks
GNU General Public License v2.0
96 stars 44 forks source link

Error running JWAS.jl on workflow example data in Julia 1.4.1 #129

Closed lcwheeler closed 2 years ago

lcwheeler commented 2 years ago

Hello,

I was just trying to learn how to use the workflow following these instructions http://reworkhow.github.io/JWAS.jl/latest/manual/workflow/#Workflow.

Tried running this line of code on the example genotypes.txt file from the tutorial. genotypes = get_genotypes("genotypes.txt", method="BayesC",separator=",",header=true) #G is optional

And, received the following error message.

MethodError: no method matching findfirst(::Array{Any,1}, ::String) Closest candidates are: findfirst(::Union{AbstractString, AbstractArray}) at array.jl:1701 findfirst(::Function, ::Union{AbstractString, AbstractArray}) at array.jl:1783 findfirst(::Function, ::Any) at array.jl:1776 ...

Stacktrace: [1] _split(::String, ::Array{Any,1}, ::Int64, ::Bool, ::Array{SubString{String},1}) at ./strings/util.jl:327 [2] split(::String, ::Array{Any,1}; limit::Int64, keepempty::Bool) at ./strings/util.jl:313 [3] get_genotypes(::String, ::Bool; method::String, Pi::Float64, estimatePi::Bool, estimateVariance::Bool, estimateScale::Bool, separator::String, header::Bool, rowID::Bool, center::Bool, G_is_marker_variance::Bool, df::Float64, starting_value::Bool, quality_control::Bool, MAF::Float64, missing_value::Float64) at /home/lcwheeler/.julia/packages/JWAS/Yg6Y7/src/1.JWAS/src/markers/readgenotypes.jl:97

Not sure what the source of this error is. I'm pretty new to Julia.

Thanks!

Luke

reworkhow commented 2 years ago

Can you post your questions here https://groups.io/g/qtlrocks ?