snpmap.nodup <- drop.markers(snpmap, unlist(dup))
karl
> --
> You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
> To post to this group, send email to rqtl...@googlegroups.com.
> To unsubscribe from this group, send email to rqtl-disc+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rqtl-disc?hl=en.
>
cg <- comparegeno(snpmap.nodup)
wh <- which(cg > 0.9, arr=TRUE)
wh <- wh[wh[,1] < wh[,2],,drop=FALSE]
snpmap.nodup <- subset(snpmap.nodup, ind= -wh[,1])
In the second-to-last line, 'drop=FALSE' ensures that the result is a matrix even if it has just one row. That way wh[,1] will still work.
karl