Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
95286c3
Genome_Vignette
RosCraddock Sep 10, 2024
2c371eb
Merge branch 'devel' into devel
RosCraddock Sep 10, 2024
6ebba5a
Added asCategorical()
gregorgorjanc Dec 7, 2024
16d0120
asCategorical() added option to provide p instead of thresholds
gregorgorjanc Dec 12, 2024
2928e9e
File rename
gregorgorjanc Dec 22, 2024
555e3b6
Update NEWS.md
gaynorr Dec 25, 2024
f030da2
Merge pull request #211 from gregorgorjanc/devel
gaynorr Dec 25, 2024
59e2619
Provided internal documentation for all R functions
gaynorr Jan 2, 2025
2c72418
close #214
gaynorr Jan 2, 2025
722cd51
Reintroduced count-location model for diploids when p=1
gaynorr Jan 2, 2025
ff2ae8c
added activeQtl to SimParam for adding traits, doesn't handle removin…
gaynorr Feb 16, 2025
55a3552
activeQtl works with removing and modifying traits
gaynorr Feb 16, 2025
b07d249
added getGvIndex for faster multitrait simulations
gaynorr Mar 9, 2025
967df7f
renamed meiosis vignette
gaynorr Mar 9, 2025
81d01de
Merge pull request #199 from RosCraddock/devel
gaynorr Mar 9, 2025
70a77ff
changing intro vignette name to AlphaSimR
gaynorr Mar 9, 2025
26bb3af
webpage test
gaynorr Mar 9, 2025
46b7e1b
minor changes for genMap and finalizePop
gaynorr Apr 5, 2025
7c1ffd3
Added names to recHist
janaobsteter May 28, 2025
fe2d5c1
Added NEWS item, recompiled docs, and ran checks
gregorgorjanc May 28, 2025
01002d5
Update CITATION
gregorgorjanc Aug 1, 2025
9fed26f
Merge pull request #229 from gregorgorjanc/patch-1
gaynorr Aug 7, 2025
8544add
Merge pull request #224 from janaobsteter/devel
gaynorr Aug 7, 2025
40722ed
pre release 2.0.0
gaynorr Sep 1, 2025
79c022a
Merge pull request #230 from gaynorr/devel
gaynorr Sep 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: AlphaSimR
Type: Package
Title: Breeding Program Simulations
Version: 1.6.1
Date: 2024-11-01
Version: 2.0.0
Date: 2025-09-01
Authors@R: c(person("Chris", "Gaynor", email = "gaynor.robert@hotmail.com",
role = c("aut", "cre"), comment = c(ORCID = "0000-0003-0558-6656")),
person("Gregor", "Gorjanc", role = "ctb",
Expand All @@ -17,7 +17,9 @@ Authors@R: c(person("Chris", "Gaynor", email = "gaynor.robert@hotmail.com",
person("Audrey", "Martin", role = "ctb",
comment = c(ORCID = "0000-0003-2235-0098")),
person("Philip", "Greenspoon", role = "ctb",
comment = c(ORCID = "0000-0001-6284-7248")))
comment = c(ORCID = "0000-0001-6284-7248")),
person("Ros", "Craddock", role = "ctb",
comment = c(ORCID = "0009-0004-1578-1580")))
Description: The successor to the 'AlphaSim' software for breeding program
simulation [Faux et al. (2016) <doi:10.3835/plantgenome2016.02.0013>].
Used for stochastic simulations of breeding programs to the level of DNA
Expand Down
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export(RRBLUP_SCA2)
export(SimParam)
export(aa)
export(addSegSite)
export(asCategorical)
export(attrition)
export(bv)
export(cChr)
Expand Down Expand Up @@ -102,7 +103,6 @@ export(solveRRBLUP_EM)
export(solveRRBLUP_EM2)
export(solveRRBLUP_EM3)
export(solveUVM)
export(transMat)
export(usefulness)
export(varA)
export(varAA)
Expand Down
14 changes: 14 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# AlphaSimR 2.0.0

*added names to `SP$recHist`

*added `asCategorical` to convert a normal (Gaussian) trait to an ordered categorical (threshold) trait

*improved computational performance of simulations with multiple traits

*added support for data.frames in SimParam genetic map switching functions

*changed finalizePop function call in `.newPop` to pass simParam as an argument

*updated version numbering to follow tidyverse format with a major version indicating backwards compatibility has been broken

# AlphaSimR 1.6.1

*fixed bug in `mergePops` and `[` (subset) methods - they were failing for populations that had a misc slot with a matrix - we now check if a misc slot element is a matrix and rbind them for `mergePops` and subset rows for `[` (assuming the first dimension represents individuals)
Expand Down
25 changes: 16 additions & 9 deletions R/Class-Pop.R
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ newPop = function(rawPop,simParam=NULL,...){
return(.newPop(rawPop=rawPop,simParam=simParam,...))
}

#' @title Create new population (internal)
#' @title Create new population
#'
#' @description
#' Creates a new \code{\link{Pop-class}} from an object of
Expand All @@ -636,6 +636,8 @@ newPop = function(rawPop,simParam=NULL,...){
#' function in simParam
#'
#' @return Returns an object of \code{\link{Pop-class}}
#'
#' @keywords internal
.newPop = function(rawPop, id=NULL, mother=NULL, father=NULL,
iMother=NULL, iFather=NULL, isDH=NULL,
femaleParentPop=NULL, maleParentPop=NULL,
Expand Down Expand Up @@ -711,14 +713,19 @@ newPop = function(rawPop,simParam=NULL,...){
pheno = gv

if(simParam$nTraits>=1){
tmp = getGvIndex(rawPop, simParam$traits, simParam$activeQtl,
simParam$qtlIndex, simParam$nTraits, simParam$nThreads)

gv = tmp[[1]]
colnames(gv) = simParam$traitNames

gxeTmp = tmp[[2]]
dim(gxeTmp) = NULL # Account for matrix bug in RcppArmadillo

# Move over gxeTmp for traits with GxE
for(i in seq_len(simParam$nTraits)){
tmp = getGv(simParam$traits[[i]], rawPop, simParam$nThreads)
gv[,i] = tmp[[1]]

colnames(gv)[i] = simParam$traits[[i]]@name

if(length(tmp)>1){
gxe[[i]] = tmp[[2]]
if(.hasSlot(simParam$traits[[i]], "gxeEff")){
gxe[[i]] = gxeTmp[[i]]
}
}
}
Expand Down Expand Up @@ -750,7 +757,7 @@ newPop = function(rawPop,simParam=NULL,...){
simParam=simParam)
}

output = simParam$finalizePop(output,...)
output = simParam$finalizePop(output, simParam=simParam, ...)

if(simParam$isTrackPed){
if(simParam$isTrackRec){
Expand Down
Loading
Loading