mirror of
https://github.com/MillironX/beefblup.git
synced 2024-11-13 03:03:08 +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...")
|
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]
|
||||||
|
|
Loading…
Reference in a new issue