Genetic programs that regulate testicular and ovarian development