Skip to content

Commit

Permalink
find_dup_markers: need to include founder_geno, if available
Browse files Browse the repository at this point in the history
  • Loading branch information
kbroman committed Nov 10, 2023
1 parent 3791e7b commit 4ff007c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: qtl2
Version: 0.33-4
Version: 0.33-5
Date: 2023-11-10
Title: Quantitative Trait Locus Mapping in Experimental Crosses
Description: Provides a set of tools to perform quantitative
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## qtl2 0.33-4 (2023-11-10)
## qtl2 0.33-5 (2023-11-10)

### Major changes

Expand Down
6 changes: 6 additions & 0 deletions R/find_dup_markers.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ find_dup_markers <-
if(!is.cross2(cross))
stop('Input cross should be a "cross2" object.')

# genotypes as one matrix; include founder_geno

g <- do.call("cbind", cross$geno)
if(!is.null(cross$founder_geno)) {
g <- rbind(g, do.call("cbind", cross$founder_geno))
}

markers <- colnames(g)
markerloc <- lapply(n_mar(cross), function(a) 1:a)
if(length(markerloc) > 1) {
Expand Down

0 comments on commit 4ff007c

Please sign in to comment.