-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
potential bug with writeRecords #154
Comments
Is it because you don’t have phenotypes?
What fix do you propose?
Message ID: ***@***.***>
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. Is e buidheann carthannais a th’ ann an Oilthigh Dhùn Èideann, clàraichte an Alba, àireamh clàraidh SC005336.
|
No, I have phenotypes, they are defined by I also tested with So for some reason, it seems that
|
It's a bug in writeRecords coming from the fact that the reps slot was removed and I forgot to account for this in the writeRecords function. The reps slot was removed when I removed heterogeneous residual variance from the GS functions. The heterogeneous error variance in those models was a function of reps, which performs poorly in the presence of GxE. I guess a separate question is: should writeRecords should be supported in its current form? It's really a legacy function that dates back to a very early iteration of AlphaSimR that wrote and read all GS training data to disk. This method of running GS changed, but I left the function in place. Would it make since to replace this function with something using a more formal file structure, like writePlink? |
It is really up to you, but I think having some kind of output function that creates bunch of potentially standardised files (pedigree, genotypes, phenotypes, ...) is not a bad idea, and then each person can have a separate script to adapt those files and put them to their analysis pipeline. Of course, alternative is to remove it completely and let user to directly output needed files from R. Regarding the "reps" slot, I figured it is gone, but help pages for some functions still include it (e.g., setPheno). |
There are soo many different file formats that one is bound to have to convert the data anyway to their favourite format:( Plink is not a bad default though. Not really practical for repeated phenotypes and, I think, multiple traits. |
I think there might be a bug in writeRecords function (AlphaSimR version 1.4.2), resulting in following:
so the issue is coming from
reps = pop@reps
, which does not exist.Example:
The text was updated successfully, but these errors were encountered: