As far as we know, it isn’t. There are a few genes which some researchers have suggested are *loosely* associated with what sexual orientation someone will turn out to be, but the correlation is weak and could easily have other explanations. It just seems to be some kind of developmental roulette game.
Latest Answers