This function adds phenotypes to an existing 'MagicGen' object. The genotypes are kept only for those individuals with a genotype.
addPhenotypes(x, phenotypes, id) # S4 method for MagicGen addPhenotypes(x, phenotypes, id)
x | an object of class 'MagicGen'. |
---|---|
phenotypes | a 'data.frame' object with phenotypes. |
id | the column name containing the MAGIC IDs in the 'phenotypes' table. |
a 'MagicGenPhen' object with phenotypes added to initial object.
# to be added...