Skip to content

Commit

Permalink
max_scan1() error message with lodcolumn out of range
Browse files Browse the repository at this point in the history
 - Fixes Issue rqtl#132.
  • Loading branch information
kbroman committed Sep 27, 2019
1 parent f088858 commit 63ba6d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@
- In `max_scan1()`, treat the case that the input has no column names.
[Fixes Issue #133.]

- `max_scan1()` was giving a messed up error message if `lodcolumn`
was out of range. [Fixes Issue #132.]


## qtl2 0.20 (2019-06-03)

Expand Down
2 changes: 1 addition & 1 deletion R/max_scan1.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ max_scan1 <-
lodcolumn <- lodcolumn_num
}
if(lodcolumn < 1 || lodcolumn > ncol(scan1_output)) {
stop("column [", lodcolumn, "] out of range (should be in 1, ..., ", ncol(lod), ")")
stop("column [", lodcolumn, "] out of range (should be in 1 - ", ncol(scan1_output), ")")
}

if(is.null(map)) {
Expand Down

0 comments on commit 63ba6d1

Please sign in to comment.