[adegenet-commits] r571 - pkg/R

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Feb 17 18:00:58 CET 2010


Author: jombart
Date: 2010-02-17 18:00:58 +0100 (Wed, 17 Feb 2010)
New Revision: 571

Modified:
   pkg/R/haploGen.R
Log:
mu is now to be given in by generation


Modified: pkg/R/haploGen.R
===================================================================
--- pkg/R/haploGen.R	2010-02-17 16:58:58 UTC (rev 570)
+++ pkg/R/haploGen.R	2010-02-17 17:00:58 UTC (rev 571)
@@ -3,7 +3,7 @@
 ############
 ##
 ## N: number of sequences to simulate
-## mu: mutation rate per nucleotid per year
+## mu: mutation rate per nucleotid per generation
 ## Tmax: periode of time to simulate
 ## mean.gen.time, sd.gen.time: average time for transmission and its standard deviation (normal dist)
 ## mean.repro, sd.repro: average number of transmissions and its standard deviation (normal dist)
@@ -22,7 +22,7 @@
     NUCL <- as.DNAbin(c("a","t","c","g"))
     res <- list(seq=as.matrix(as.DNAbin(character(0))), dates=integer(), ances=character())
     toExpand <- logical()
-    mu <- mu/365 # mutation rate by day
+    ##mu <- mu/365 # mutation rate by day
     myGrid <- matrix(1:grid.size^2, ncol=grid.size, nrow=grid.size)
 
 



More information about the adegenet-commits mailing list