CAST-genomics / haptools

Ancestry and haplotype aware simulation of genotypes and phenotypes for complex trait analysis
https://haptools.readthedocs.io
MIT License
18 stars 4 forks source link

fix: Fixed logic error in simgenotype and docs errors #172

Closed mlamkin7 closed 1 year ago

mlamkin7 commented 1 year ago

Updated simulate_gt to have correct return objects in the documentation.

Fixed logix error that was preventing the end index to be found when the coordinate was less than the first coordinate in the map file and region is being used.

Also added random haplotype selection when selecting genotypes for each individual as opposed to using the current haplotype strand of an individual.