delete rowID=false in the arguments of get_genotypes() function, because this is only used for matrix input. For internal testing, better to use a Dataframe as input.
when set type for each column, use Float32, instead of Float64 in linefill!(etv,Float32).
for string input (i.e., path), add code to clean the memory of the data variable:
data = nothing
GC.gc()
here we cannot read the matrix directly form path, because the 1st column is string.
clean code for matrix input
for matrix input, also allow Array{Int64,2}, Array{Int32,2} as input
add some comments
improve some format
add argument double_precision which works for both genotypes and GRM.
improve documentation
add a comment to explain why we still choose to use genotypes = Matrix(data[!,2:end]).
rowID=false
in the arguments ofget_genotypes()
function, because this is only used for matrix input. For internal testing, better to use a Dataframe as input.fill!(etv,Float32)
.data
variable:here we cannot read the matrix directly form path, because the 1st column is string.
double_precision
which works for both genotypes and GRM.genotypes = Matrix(data[!,2:end])
.Testing code: