The ancestry_at_pos function is not used in most tracts applications. It is meant to compute the proportion of ancestry at a given position. It uses bad naming conventions. In particular, it seems to redefine the argument chrom in the loop, and the argument chrom itself shadows a global definition.
The ancestry_at_pos function is not used in most tracts applications. It is meant to compute the proportion of ancestry at a given position. It uses bad naming conventions. In particular, it seems to redefine the argument chrom in the loop, and the argument chrom itself shadows a global definition.