Differences between revisions 1 and 13 (spanning 12 versions)
Revision 1 as of 2013-01-28 22:00:30
Size: 1634
Editor: mtl-93-187-66-202
Comment:
Revision 13 as of 2013-01-31 16:20:59
Size: 3015
Editor: João
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
{{attachment:interbull loggo webb.png}}
Line 2: Line 3:
The GEBV test is a validation procedure described in the Interbull Code of Practice, [[https://wiki.interbull.org/public/CoPAppendixX?action=print|Appendix X]].
Line 10: Line 12:
Line 13: Line 14:
Download the attached {{attachment:gebvtest.zip}} file.  Download the attached [[attachment:gebvtest20130129.zip]] file.
Line 15: Line 16:
Create a working directory and unzip the zip file in that directory. Two subdirectories will be created, ''programs'' and ''sample data''. Typing    `python gebvtest.py --help`
from a command line prompt, from withing the ''programs'' directory, should print a brief help message if the installation has been successful.
Create a working directory and unzip the zip file in that directory. Two subdirectories will be created, ''programs'' and ''sample data''. Typing
Line 19: Line 18:
 . `python gebvtest.py --help`

from a command line prompt, from within the ''programs'' directory, should print a brief help message if the installation has been successful.
Line 21: Line 23:

* [[public/gtconvert_py|Program gtconvert.py]]
 * [[public/gebvtest_py|Program gebvtest.py]]

== Examples: ==

 * [[public/gtconvert.log|gtconvert.log]]
 * [[https://wiki.interbull.org/public/gtconvert_py?action=print|Program gtconvert.py]]
 * [[https://wiki.interbull.org/public/gebvtest_py?action=print|Program gebvtest.py]]
Line 30: Line 27:
Line 34: Line 30:
python gtconvert.py -v hol abc ../sample_data  python gtconvert.py -v hol abc ../sample_data
Line 37: Line 33:
The outputs should match those in the source zip file.
Line 38: Line 35:
The outputs should match those in the source zip file. == Troubleshooting/FAQ ==
 * Double check your data files and make sure the POP and BRD codes are correct
 * Make sure to use the -v flag and check the log files carefully (look for files with 0 records, for example)
 * If python crashes with an error message:
  * if any "import" statement causes an error, Python or one of the modules is not correctly installed
  * if the gtconvert.py program crashes with an error message that says something about invalid 'utf8' characters, try specifying the '-e iso-8859-1' option (or some other encoding listed on the web page indicated in the --help message) - you may(!) be able to identify input data problems by looking at the program in the area of the line number printed by the error message
  * otherwise, please prepare a zip file with all the inputs and partial outputs (including screen outout from gtconvert.py) and email it to mohammad.nilforooshan@slu.se , clearly showing the exact command line used to launch the program, and pasting in the error message too.
  * if bulls seem to be missing or in excess in the candidate or test groups, use -v -m options, but not -C, and check the merged files.

interbull loggo webb.png

GEBVtest Software

The GEBV test is a validation procedure described in the Interbull Code of Practice, Appendix X.

This software consists of two programs (gtconvert.py and gebvtest.py) and little utility module used by those programs (ibutils.py).

Some sample data is also provided to test the correct functioning of the programs.

Note: In the future, organizations may prefer to prepare the data for the gebvtest.py program directly, bypassing the creation of the legacy file formats and the gtconvert.py program.

Installation

The programs have been tested under Python 2.6, 2.7 and 3.2. As a minimum you will need to have these extra python modules installed on your system: NumPy and, just for Python 2.6, argparse.

Download the attached gebvtest20130129.zip file.

Create a working directory and unzip the zip file in that directory. Two subdirectories will be created, programs and sample data. Typing

  • python gebvtest.py --help

from a command line prompt, from within the programs directory, should print a brief help message if the installation has been successful.

User manuals:

Sample data for program testing

Some sample data for breed HOL and population ABC are available in the sample_data directory. The two programs can be run from the programs directory as follows:

python gtconvert.py -v hol abc ../sample_data
python gebvtest.py -v -m hol abc ../sample_data

The outputs should match those in the source zip file.

Troubleshooting/FAQ

  • Double check your data files and make sure the POP and BRD codes are correct
  • Make sure to use the -v flag and check the log files carefully (look for files with 0 records, for example)
  • If python crashes with an error message:
    • if any "import" statement causes an error, Python or one of the modules is not correctly installed
    • if the gtconvert.py program crashes with an error message that says something about invalid 'utf8' characters, try specifying the '-e iso-8859-1' option (or some other encoding listed on the web page indicated in the --help message) - you may(!) be able to identify input data problems by looking at the program in the area of the line number printed by the error message
    • otherwise, please prepare a zip file with all the inputs and partial outputs (including screen outout from gtconvert.py) and email it to mohammad.nilforooshan@slu.se , clearly showing the exact command line used to launch the program, and pasting in the error message too.

    • if bulls seem to be missing or in excess in the candidate or test groups, use -v -m options, but not -C, and check the merged files.

public/GEBVtest_software (last edited 2021-10-01 11:40:44 by Valentina)