From 7cf650992dc3faa67775a00f50dcb67da93a3ace Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 18 Jun 2021 15:25:34 -0500 Subject: [PATCH] Add results filename assumption --- src/BeefBLUP.jl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/BeefBLUP.jl b/src/BeefBLUP.jl index 536f762..14aefa1 100755 --- a/src/BeefBLUP.jl +++ b/src/BeefBLUP.jl @@ -48,6 +48,17 @@ beefblup(path, savepath, h2) end +function beefblup(datafile::String, h2::Float64) + # Assume the data is named the same as the file without the trailing extension + dataname = split(datafile, ".")[1:end-1] + + # Create a new results name + resultsfile = string(dataname, "_results.txt") + + # Pass this info on to the worker + beefblup(datafile, resultsfile, h2) +end + # Main worker function, can perform all the work if given all the user input function beefblup(path::String, savepath::String, h2::Float64)