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:
parent
82bf3cfa89
commit
2882f5b932
1 changed files with 3 additions and 3 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue