Assistance with Genomic Selection scenarios with Multi-Trait index #209
-
Hello, In the phenotypic selection scenario, we successfully ran this code: where wE1 is our vector of trait weights. However, when attempting genomic selection with the following code: E1 = selectInd(pop = E1, nInd = 100, use = "ebv", trait = selIndex, b = wE1, simParam = SP) we got an error: "ncol(response) == 1 is not TRUE.", which seems to indicate that the response (trait) must be a single trait. All references we've found in GitHub repositories and papers seem to focus on single-trait rather than multi-trait GS simulations. Could you advise on whether genomic selection can be implemented with a multi-trait index, and if so, any insights into resolving this error? Thank you very much for the time and assistance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @cecilia249 Here is a script showing the various steps with comments. Please ask questions if anything is unclear and I'd be glad to elaborate. I also showed how to run a multi-trait model using the bWGR package. AlphaSimR's implementation of a multi-trait model really slows down with large datasets. Whereas the multi-trait model in bWGR scales nicely to large data. See this link for a good example.
|
Beta Was this translation helpful? Give feedback.
Hi @cecilia249
Here is a script showing the various steps with comments. Please ask questions if anything is unclear and I'd be glad to elaborate.
I also showed how to run a multi-trait model using the bWGR package. AlphaSimR's implementation of a multi-trait model really slows down with large datasets. Whereas the multi-trait model in bWGR scales nicely to large data. See this link for a good example.