magnusdv/pedtools

Functions for manipulating the allele matrix

Closed this issue · 1 comments

These would be useful to have:

  • getAlleles(x, ids, markers)
  • setAlleles(x, ids, markers, alleles)

For instance, to remove all genotypes of individuals "a" should be done by

x = setAlleles(x, ids = "a", alleles = 0)

Alternative function names: getAlleleMatrix, setAlleleMatrix.

Implemented in a85cbff.
(Forgot to close issue).