[adegenet-commits] r365 - pkg/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Jun 4 19:53:48 CEST 2009


Author: jombart
Date: 2009-06-04 19:53:47 +0200 (Thu, 04 Jun 2009)
New Revision: 365

Modified:
   pkg/R/haploSim.R
Log:
This version is fixed and without debugging in the code.


Modified: pkg/R/haploSim.R
===================================================================
--- pkg/R/haploSim.R	2009-06-04 15:58:35 UTC (rev 364)
+++ pkg/R/haploSim.R	2009-06-04 17:53:47 UTC (rev 365)
@@ -11,7 +11,7 @@
 haploSim <- function(seq.length=1000, mu=0.0001,
                     Tmax=50, mean.gen.time=5, sd.gen.time=1,
                     mean.repro=2, sd.repro=1,
-                    max.nb.haplo=1e4){
+                    max.nb.haplo=1e3){
 
     ## CHECKS ##
     if(!require(ape)) stop("The ape package is required.")
@@ -134,10 +134,10 @@
 
     ## SHAPE AND RETURN OUTPUT ##
     ## shift ances as characters to indices in others slots
-    cat("\nres$ances\n")
-    print(res$ances)
-    cat("\nres$seq names\n")
-    print(rownames(res$seq))
+    ##     cat("\nres$ances\n")
+    ##     print(res$ances)
+    ##     cat("\nres$seq names\n")
+    ##     print(rownames(res$seq))
 
     nbAncesNAOk <- sum(is.na(res$ances))
     res$ances <- match(res$ances, rownames(res$seq))



More information about the adegenet-commits mailing list