Simulate sequence data and complicated pedigree structures
6 Stars
Updated Last
1 Year Ago
Started In
February 2015


Build Status

XSim is a fast and user-friendly tool to simulate sequence data and complicated pedigree structures


  • An efficient CPOS algorithm
  • Using founders that are characterized by real genome sequence data
  • Complicated pedigree structures among descendants


#load XSim package
using XSim

#set genome information
chrLength= 0.1  #length of each chromosome 
numChr   = 2    #number of chromosomes
nLoci    = 10   #number of loci for each chromosome
nQTL     = 1    #number of QTL for each chromosomefects,mutRate);
build_genome(numChr,chrLength,nLoci,nQTL) #this genome information will be used for subsequent computaions

#generate founders
popSizeFounder = 2
sires = sampleFounders(popSizeFounder);
dams  = sampleFounders(popSizeFounder);

#random mating
ngen,popSize = 5,10
sires1,dams1,gen1 = sampleRan(popSize, ngen, sires, dams);


  • homepage: QTL.rocks
  • Installation: at the Julia REPL, Pkg.add("XSim")
  • Documentation: available here
  • Authors: Hao Cheng,Rohan Fernando,Dorian Garrick
  • Citing XSim

Cheng H, Garrick D, and Fernando R (2015) XSim: Simulation of descendants from ancestors with sequence data. G3: Genes-Genomes-Genetics, 5(7):1415-1417.

Used By Packages

No packages found.