gaynorr / AlphaSimR

R package for breeding program simulations
https://gaynorr.github.io/AlphaSimR/
Other
42 stars 18 forks source link

writePlink doesn't work when chromosomes with different lengths are simulated #58

Closed alanaselli closed 2 years ago

alanaselli commented 2 years ago

I simulated chromosomes with different lengths, and I wasn't able to use the writePlink function. I tried exporting all chromosomes using a singular chromosome length, but it still wouldn't work, because the data was simulated with different chromosome lengths. It would be an immense improvement if writePlink worked with different chromosome lengths! The package is excellent so far, thanks a lot for providing this tool for us.

EDIT: grammar

gaynorr commented 2 years ago

Thanks for bringing this to my attention. I'll try to look at it tomorrow.

gaynorr commented 2 years ago

@alanaselli, sorry it took me a while to get back to you. I ended up rewriting this function, because there were a couple of bugs that were easier to resolve with a rewrite since it wasn't the original author on this one. The newest version can be tested using the devel branch. devtools::install_github(repo="gaynorr/AlphaSimR@devel")

If you try it, let me know how it works for you as I'm still doing some testing before committing this version to CRAN.