diff --git a/dev/beefblup-cli/index.html b/dev/beefblup-cli/index.html index 8222df6..d9c729c 100644 --- a/dev/beefblup-cli/index.html +++ b/dev/beefblup-cli/index.html @@ -1,4 +1,4 @@ - · beefblup

beefblup Command Line Interface (CLI) documentation

A work in progress

Notice: This document is a draft for what the command-line interface for beefblup would look like as of version 1.0, if beefblup was even a command-line application to begin with (it's not). It is modeled (loosely) after the man page format. It is not intended to be taken seriously, but instead to serve as a useful thought experiment and brainstorming ground on the future of beefblup. Please use it if it clarifies things for you. If it doesn't, ignore it.

Input file

beefblup requires a very specific format of input file. The format may be in comma-separated values (CSV) or Excel 2007+ (XLSX) format. CSV files should not be quoted (and therefore cannot have commas within cell values). Other formats may be forthcoming.

A beefblup data file must have at least six columns appearing in this order:

  • ID
  • Sire ID
  • Dam ID
  • Birthdate
  • Fixed effect(s)
  • Response variable(s)

The first row always contains column names. The values of column names are unimportant for the first four columns, as they will always be treated the same regardless of the name. The generated report will use the column names of fixed effects and response variables as given.

Each fixed effect should have its own column, to as many as are needed. There is no limit to the number of fixed effects as defined by beefblup, however its dependencies might have some. The same rules apply to response variables.

Unknown values should be left blank (,,). Do not substitute null placeholders (e.g. NULL, NA, 0, nothing, undefined, etc.) for unknown values.

An example spreadsheet might have the following format

IDSire IDDam IDBirthdateSexWeaning Weight
11/1/1990Male354
211/1/1990Female251
311/1/1991Male327
4121/1/1991Female328
521/1/1991Male301
61/1/1991Female270
71/1/1992Male330

Synopsis

beefblup [-G SNPs_file] [-M num_response_vars] [-o report_spreadsheet]
 [--no-aod] [--no-year] [--no-season] [--no-autob] [--maternal] input_file
-[report_file]

Command line basic syntax

The most basic input is to simply pass the input file name to the program.

beefblup filename.csv

In this case beefblup will insert fixed-effects for age-of-dam, year, and season, and will calculate the EBVs for the response variable in the final column. The report will then be saved as filename_report.txt.

Suppressing automatically-calculated fixed effects

If you don't wish to include one of the automatically calculated fixed-effects from your model, you can pass arguments to suppress them.

Suppress Age-of-dam

beefblup --no-aod filename.csv

Suppress year

beefblup --no-year filename.csv

Suppress season

beefblup --no-season filename.csv

Suppress all calculated fixed effects

beefblup --no-autob filename.csv

The argument --no-autob comes from the nomenclature of assigning fixed-effects to the matrix b in Henderson's mixed-model equations.

+[report_file]

Command line basic syntax

The most basic input is to simply pass the input file name to the program.

beefblup filename.csv

In this case beefblup will insert fixed-effects for age-of-dam, year, and season, and will calculate the EBVs for the response variable in the final column. The report will then be saved as filename_report.txt.

Suppressing automatically-calculated fixed effects

If you don't wish to include one of the automatically calculated fixed-effects from your model, you can pass arguments to suppress them.

Suppress Age-of-dam

beefblup --no-aod filename.csv

Suppress year

beefblup --no-year filename.csv

Suppress season

beefblup --no-season filename.csv

Suppress all calculated fixed effects

beefblup --no-autob filename.csv

The argument --no-autob comes from the nomenclature of assigning fixed-effects to the matrix b in Henderson's mixed-model equations.

diff --git a/dev/how-to-calculate-epds/index.html b/dev/how-to-calculate-epds/index.html index 915b873..880f2ee 100644 --- a/dev/how-to-calculate-epds/index.html +++ b/dev/how-to-calculate-epds/index.html @@ -190,4 +190,4 @@ Z'X & Z'Z+A^{-1}\lambda \begin{bmatrix} X'Y \\ Z'Y -\end{bmatrix}\]

Where

What happened to

Footnotes

a

An animal can share its genome with itself by a factor of more than one: that's called inbreeding! We can account for this, and beefblup does as it calculates A. This is an area that actually merits a good deal of study: see chapter 2 of Linear Models for the Prediction of Animal Breeding Values by Raphael A. Mrode (ISBN 978 1 78064 391 5).

[BIF Guidelines]: https://beefimprovement.org/wp-content/uploads/2018/03/BIFGuidelinesFinalupdated0318.pdf [The Dot Product]: https://www.khanacademy.org/math/precalculus/x9e81a4f98389efdf:matrices/x9e81a4f98389efdf:multiplying-matrices-by-matrices/v/matrix-multiplication-intro [rank of _X]: https://math.stackexchange.com/a/2080577 [Calvin already has an idea about that one]: https://www.gocomics.com/calvinandhobbes/1992/12/02

+\end{bmatrix}\]

Where

What happened to

Footnotes

a

An animal can share its genome with itself by a factor of more than one: that's called inbreeding! We can account for this, and beefblup does as it calculates A. This is an area that actually merits a good deal of study: see chapter 2 of Linear Models for the Prediction of Animal Breeding Values by Raphael A. Mrode (ISBN 978 1 78064 391 5).

[BIF Guidelines]: https://beefimprovement.org/wp-content/uploads/2018/03/BIFGuidelinesFinalupdated0318.pdf [The Dot Product]: https://www.khanacademy.org/math/precalculus/x9e81a4f98389efdf:matrices/x9e81a4f98389efdf:multiplying-matrices-by-matrices/v/matrix-multiplication-intro [rank of _X]: https://math.stackexchange.com/a/2080577 [Calvin already has an idea about that one]: https://www.gocomics.com/calvinandhobbes/1992/12/02

diff --git a/dev/index.html b/dev/index.html index 85c0bef..37c8d28 100644 --- a/dev/index.html +++ b/dev/index.html @@ -1,2 +1,2 @@ -Home · beefblup

beefblup

Documentation for BeefBLUP.

    Missing docstring.

    Missing docstring for beefblup. Check Documenter's build log for details.

    +Home · beefblup

    beefblup

    Documentation for BeefBLUP.

      Missing docstring.

      Missing docstring for beefblup. Check Documenter's build log for details.

      diff --git a/dev/search/index.html b/dev/search/index.html index edc7631..6d96951 100644 --- a/dev/search/index.html +++ b/dev/search/index.html @@ -1,2 +1,2 @@ -Search · beefblup

      Loading search...

        +Search · beefblup

        Loading search...