solarKinship2(df, dir, ...)
df2solar
function.df2solar
function.df2solar
.The function runs SOLAR to evaluate the double kinship matirx of the given data.
The function (1) puts the data df
in SOLAR format, (2) separates it into
two parts, pedigree and phenotypes,
and then (3) expots both data sets in
the directory dir
,
(4) read the specific `phi2.gz` file,
where the kinship coefficients multiplied
by 2 are stored by SOLAR.
IDs in df
are assumed to be not duplicated.