From 2882f5b932f9530ee3be83d53521b28d8461eff3 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 18 Jun 2021 12:36:38 -0500 Subject: [PATCH] Fix equation solving step --- src/beefblup.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/beefblup.jl b/src/beefblup.jl index 68f8848..406c0e5 100755 --- a/src/beefblup.jl +++ b/src/beefblup.jl @@ -48,7 +48,7 @@ h2 = parse(Float64, readline(stdin)) print("[🐮]: Importing data file...") # Import data from a suitable spreadsheet -data = CSV.File(path) |> DataFrame +data = DataFrame(CSV.File(path)) print("Done!\n") @@ -128,8 +128,8 @@ for i in 1:length(normal) # Remove the normal version from the analysis effecttraits = traits[findall(x -> x != normal[i], traits)] # Iterate inside of the group - for j in 1:(length(effecttraits) - 1) - matchedindex = findall(x -> x != effecttraits[j], localdata) + for j in 1:(length(effecttraits)) + matchedindex = findall(x -> x == effecttraits[j], localdata) X[matchedindex, counter] .= 1 # Add this trait to the string adjustedtraits[counter - 1] = traits[j]