Hi Pietro,
Yes it is possible to optimize both simultaneously in Core Hunter. Just load both data sources with
> my.data <- coreHunterData(genotypes = genotypes(...), phenotypes = phenotypes(...))
and then optimize a weighted index containing both genetic and phenotypic diversity. By default, Core Hunter will
maximize the entry-to-nearest-entry distance for both, with equal weight, using Modified Roger's distance for the
genotypes and Gower's distance for the phenotypes. If you want you can specify a different combination of objective
functions, and play with the weights. The argument obj of sampleCore can be a list containing any number of
objectives, and you can set a weight for each objective using the weight argument of the function objective.
This call would use the same objectives as the default:
> sampleCore(my.data, obj = list(
objective("EN", "MR", weight = 1),
objective("EN", "GD", weight = 1)
))
Note that the weights need not sum to one, they are relative.
Given that you have only one phenotype and a bunch of SSR markers, you might want to consider decreasing the weight of the phenotypic diversity?
Good luck!
Herman