genomoe information including number of chromosomes, chromosome length, number of loci on each chromosome and mutation rate


In [ ]:
%%file genomeInfo.txt
nChrm 3
chrLength 1.0 1.1 0.9
nLoci 5 4 2
mutRate 0.00000001

map postion for each loci on different chromosomes (1 line each chromosome)


In [ ]:
%%file mapPos.txt
0.1 0.2 0.3 0.4 0.5
0.2 0.7 0.8 0.9
0.5 0.6

haplotypes for all individuals (2 lines each individual)


In [1]:
%%file haplotype.txt
1 1 0 0 1 1 1 0 1 0 
0 1 1 1 0 1 0 0 0 1 
1 0 0 1 1 1 1 0 1 1 
0 1 1 1 1 0 1 1 1 0 
1 1 1 0 0 1 0 0 0 1 
0 0 1 0 1 1 1 0 0 1 
1 1 0 1 0 0 1 1 0 1 
0 1 0 0 1 1 1 1 1 1 
1 0 1 0 1 1 1 1 1 1 
0 1 0 1 0 1 1 1 1 1 
1 0 0 0 1 1 1 0 1 1 
0 1 1 0 0 1 1 0 1 1 
1 1 0 1 1 0 1 0 1 1 
0 1 0 0 1 1 1 0 1 1 
1 1 0 0 0 1 1 0 1 1 
0 1 1 1 1 0 1 0 1 1 
1 0 0 0 1 1 1 0 1 0 
0 1 0 1 0 1 0 0 1 0 
1 1 1 0 1 0 1 0 0 1 
1 0 0 0 1 0 1 0 1 1


Writing haplotype1.txt