variance of a portfolio with n assets

how to calculate recombination frequency between two genes