ROLE OF GENES. “With genotypic sex determination (GSD), which occurs in the majority of species with known sex-determining mechanisms, genetic elements specify whether individuals are female or male. In many animals and some plants, however, the switch to develop into a female or male does not lie in the genes.”
http://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.1001899