I don't think its genetic, but something that happens to us in the womb. Sometime after the chromosomes take over, as we all start out gender neutral. The hormones take over. their first job is to decide who we are. Either to make us feminine, masculine, or mixed. The same thing about who we will love. The reason this happens is because of being gender neutral so that our egg does not know what chromosome our father will give us. Then if something happens that the hormones did not do their job right we end of trans other wise we would be born cis gendered.