Skip to content

Commit

Permalink
fixed bug in SimParam$restrSegSites with excluding sites at end of …
Browse files Browse the repository at this point in the history
…chromosome
  • Loading branch information
gaynorr committed Nov 30, 2023
1 parent b597187 commit e7b4eea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 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.5.2
Date: 2023-10-31
Version: 1.5.3
Date: 2023-11-30
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 Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# AlphaSimR 1.5.3

*fixed bug in `SimParam$restrSegSites` with excluding sites at end of chromosome

# AlphaSimR 1.5.2

*fix SimParam examples for CRAN
Expand Down
2 changes: 1 addition & 1 deletion R/Class-SimParam.R
Original file line number Diff line number Diff line change
Expand Up @@ -2235,7 +2235,7 @@ SimParam = R6Class(
cumSumSegSite = cumsum(private$.segSites)
for(i in take){
# Identify chromosome
chr = findInterval(i, cumSumSegSite) + 1L
chr = findInterval(i, cumSumSegSite, left.open = TRUE) + 1L

# Identify position
if(chr>1L){
Expand Down

0 comments on commit e7b4eea

Please sign in to comment.