Skip to content

Commit

Permalink
Throw error in index_snps() if map has missing values (Issue rqtl#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbroman committed Apr 5, 2024
1 parent 9fb9b76 commit 10a5e16
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,6 +1,6 @@
Package: qtl2
Version: 0.35-1
Date: 2024-03-15
Version: 0.35-2
Date: 2024-04-05
Title: Quantitative Trait Locus Mapping in Experimental Crosses
Description: Provides a set of tools to perform quantitative
trait locus (QTL) analysis in experimental crosses. It is a
Expand Down
5 changes: 4 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
## qtl2 0.35-1 (2024-03-15)
## qtl2 0.35-2 (2024-04-05)

### Bug fixes

- Fixed a problem with `sdp_panel=TRUE` in `plot_snpasso()`. (Issue #232)

- Stop `index_snps()` with an error if physical map has missing
values. (Issue #218)


## qtl2 0.34 (2023-11-28)

Expand Down
1 change: 1 addition & 0 deletions R/index_snps.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ index_snps <-

### find snps in map
this_map <- map[[uchr]]
if(any(is.na(this_map))) stop("Missing values in map on chr ", uchr)
snploc <- find_intervals(snpinfo$pos, this_map, tol)
interval <- snploc[,1]
on_map <- (snploc[,2]==1)
Expand Down

0 comments on commit 10a5e16

Please sign in to comment.