gravelLab / tracts

A set of tools for modelling ancestry patterns along the genome.
GNU General Public License v2.0
22 stars 14 forks source link

chrom argument in ancestry_at_pos function #18

Closed sgravel closed 3 years ago

sgravel commented 3 years ago

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.

sgravel commented 3 years ago

Resolved by introducing the plaid notation for a haploid copy of the genome.