[adegenet-commits] r432 - pkg/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Sep 1 16:37:47 CEST 2009


Author: jombart
Date: 2009-09-01 16:37:47 +0200 (Tue, 01 Sep 2009)
New Revision: 432

Modified:
   pkg/R/seqTrack.R
Log:
Small fix


Modified: pkg/R/seqTrack.R
===================================================================
--- pkg/R/seqTrack.R	2009-09-01 11:11:35 UTC (rev 431)
+++ pkg/R/seqTrack.R	2009-09-01 14:37:47 UTC (rev 432)
@@ -898,8 +898,8 @@
 get.likelihood.seqTrack <-function(x, method=("genetic"), mu0=NULL, seq.length=NULL,...){
     method <- match.arg(method)
     if(method=="genetic"){ # p(nb mutations occur in the time interval)
-        if(any(na.omit(res$weight - round(res$weight)) > 1e-10)){
-            stop("Non-integer weights: number of mutations expected in x$weight.")
+        if(any(na.omit(x$weight - round(x$weight)) > 1e-10)){
+            warning("Non-integer weights: number of mutations expected in x$weight.")
         }
 
         if(is.null(mu0)) stop("mu0 is required.")



More information about the adegenet-commits mailing list