Core collection inference
During my adventure here in South Korea I was instructed to infer a core collection from a large phenotyping trials data set. After goggling I found an interesting paper from Tchokponhoué et al. (2020). The authors used corehunter3 package under R environment. So I decide to test it. First of all, let’s intall the package.
Step 1: Install java version 8 or more
Make sure to install Java Oracle JDK version 8 or more. I used a window OS. The CRAN github page recommended to download the java here. I download the Oracle Java JDK installer and installed.
Step2: Install rJava and corehunter
To install rJava and corehunter, do:
It is important to check if the package are well installed. Thus do:
Step3: Prepare the phenotype data set
Corehunter need a specific data format. The details of the specifications are well explained here.
The data that I will use in this tutorial look like this:
| ID | Fruit_diam | Seed_wght | nr_flow_axila | Fruit_wght | Plant_hght | Fruit_length | Seed_nr | Corola_color | Anther_color | Corola_spot_color | Fruit_epid | Fruit_form | Flower_position | Corola_form |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TYPE | R | R | R | R | R | R | R | NI | NI | NI | NI | NI | NI | NI |
| 10 | 20 | 0.3 | 1 | 69.4 | 40.8 | 37.3 | 32.1 | 4 | 2 | 0 | 2 | 2 | 5 | 1 |
| 11 | 9.5 | 0.2 | 2 | 6.7 | 33.7 | 10.7 | 17.5 | 4 | 2 | 0 | 2 | 2 | 5 | 1 |
| 18 | 24.9 | 0.4 | 1.3 | 122.4 | 38.3 | 51 | 42.1 | 4 | 2 | 0 | 2 | 2 | 5 | 1 |
| 41 | 16.3 | 0.4 | 1.7 | 28 | 43.8 | 47.1 | 15.8 | 4 | 2 | 0 | 2 | 2 | 5 | 1 |
| 43 | 14.3 | 0.4 | 2 | 35.5 | 42.7 | 55.3 | 43.3 | 4 | 2 | 0 | 2 | 2 | 5 | 1 |
| 50 | 29.2 | 0.4 | 2 | 104.1 | 55.6 | 51.8 | 84.6 | 4 | 2 | 0 | 2 | 2 | 5 | 1 |
| 51 | 21.9 | 0.4 | 2 | 85.8 | 50.6 | 57.2 | 46.7 | 4 | 2 | 0 | 2 | 2 | 5 | 1 |
| 54 | 27 | 0.4 | 2 | 79.4 | 56.6 | 55 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1 | 160.3 | 66.1 | 97.1 | 118.4 | 4 | 3 | 1 | 1 | 3 | 7 | 3 |
| 363 | 27.3 | 0.7 | 1 | 127.4 | 64.1 | 48.2 | 58 | 4 | 3 | 1 | 1 | 3 | 7 | 3 |
| 406 | 22.5 | 0.3 | 1.3 | 28.5 | 54.5 | 16.6 | 46.1 | 4 | 3 | 1 | 1 | 3 | 7 | 3 |
| 407 | 22.1 | 0.5 | 1.3 | 53.7 | 54 | 29.3 | 53.9 | 4 | 3 | 1 | 1 | 3 | 7 | 3 |
Real phenotypic trait data including 39 accessions for which seven quantitative and seven qualitative traits were recorded. Here, quantitative traits are ratio variables (R) encoded as double values (default for ratio variables) while qualitative traits are integer valued nominal variables (NI).
Let’s import this data in Rstudio
An important step is to convert the csv file into corehunter format using the following code:
Now, let’s infer the core collection
To see the results, just call core
The results are presented like this:
$sel
[1] "1" "12" "18" "23" "24" "32" "34" "37"
$EN
$EN$GD
[1] 0.6833333
attr(,"class")
[1] "chcore" "list"
The accession "1" "12" "18" "23" "24" "32" "34" "37" are the core collection inferred by corehunter
That’s it! The key point in this process is to properly arrange the data following the instructions well defined here.
Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".
For attribution, please cite this work as
Zoclanclounon (2021, Feb. 28). Diary of an Autodidact: Corehunter3: core collection inference with phenotypic data. Retrieved from https://yedomon.netlify.app/posts/2021-02-28-corehuter3-core-collection-inference-with-phenotypic-data/
BibTeX citation
@misc{zoclanclounon2021corehunter3:,
author = {Zoclanclounon, Yedomon Ange Bovys},
title = {Diary of an Autodidact: Corehunter3: core collection inference with phenotypic data},
url = {https://yedomon.netlify.app/posts/2021-02-28-corehuter3-core-collection-inference-with-phenotypic-data/},
year = {2021}
}