1
0
Fork 0
mirror of https://github.com/MillironX/beefblup.git synced 2024-12-22 09:08:16 +00:00

Fix equation solving step

This commit is contained in:
Thomas A. Christensen II 2021-06-18 12:36:38 -05:00
parent 82bf3cfa89
commit 2882f5b932
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -48,7 +48,7 @@ h2 = parse(Float64, readline(stdin))
print("[🐮]: Importing data file...") print("[🐮]: Importing data file...")
# Import data from a suitable spreadsheet # Import data from a suitable spreadsheet
data = CSV.File(path) |> DataFrame data = DataFrame(CSV.File(path))
print("Done!\n") print("Done!\n")
@ -128,8 +128,8 @@ for i in 1:length(normal)
# Remove the normal version from the analysis # Remove the normal version from the analysis
effecttraits = traits[findall(x -> x != normal[i], traits)] effecttraits = traits[findall(x -> x != normal[i], traits)]
# Iterate inside of the group # Iterate inside of the group
for j in 1:(length(effecttraits) - 1) for j in 1:(length(effecttraits))
matchedindex = findall(x -> x != effecttraits[j], localdata) matchedindex = findall(x -> x == effecttraits[j], localdata)
X[matchedindex, counter] .= 1 X[matchedindex, counter] .= 1
# Add this trait to the string # Add this trait to the string
adjustedtraits[counter - 1] = traits[j] adjustedtraits[counter - 1] = traits[j]