KangchengHou / admix-kit

Toolkit for analyzing genetics data from admixed populations
https://kangchenghou.github.io/admix-kit
22 stars 4 forks source link

the seed in haptools-simu-admix is not randomized #33

Open Arslan-Zaidi opened 2 days ago

Arslan-Zaidi commented 2 days ago

The seed in haptools-simu-admix is always 1234 and cannot be specified by the user. This leads to the simulation to output the same haplotypes every time. I haven't tried it with the other tools within admix-kit.

admix haptools-simu-admix \ --pfile ceu.yri/1kg_hm3_chr2 \ --mapdir ~/lab/shared/recomb_maps/beagle_GRCH38/ \ --admix-prop '{"CEU": 0.5, "YRI": 0.5}' \ --pop-col Population \ --n-gen ${g} \ --n-indiv 5000 \ --out admix/pgen/admix_HIg${g}${rep}

Screenshots

image