Skip to content

Commit 77ed097

Browse files
authored
Update runtests.jl
1 parent 0ef549a commit 77ed097

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

test/runtests.jl

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@ using XSim
22
using Base.Test
33

44
# write your own tests here
5-
using StatsBase
6-
numChr,numLoci,chrLength,mutRate = 2,10,0.1,0.0
7-
mapPos = collect(0.005:0.01:0.1)
8-
geneFreq = fill(0.5,numLoci)
9-
qtlMarker = fill(false,numLoci)
10-
qtlMarker[sample(1:numLoci)]= true
11-
qtlEffects = randn(numLoci)
12-
XSim.init(numChr,numLoci,chrLength,geneFreq,mapPos,qtlMarker,qtlEffects,mutRate);
5+
chrLength= 0.1 #length of each chromosome
6+
numChr = 2 #number of chromosomes
7+
nmarkers = 10 #number of loci for each chromosome
8+
nQTL = 1 #number of QTL for each chromosomefects,mutRate);
9+
build_genome(numChr,chrLength,nmarkers,nQTL)
1310

1411
popSizeFounder = 2
1512
sires = sampleFounders(popSizeFounder);

0 commit comments

Comments
 (0)