METHODS TO CHANGE SEX. “Diverse mechanisms are used to determine sex. All crocodiles, most turtles, and some fish exhibit temperature-dependent sex determination; Wolbachia infections override existing sex determination systems in many arthropod species and either kill/sterilize males or transform them into phenotypic females; male scale insects eliminate their father’s genome after fertilization; marine worm Bonellidae larvae develop as males only if they encounter a female; and many plants and animals—including some snails and fish—change sex during their lifetime in response to environmental or social cues.”
http://journals.plos.org/plosbiology/article?id=10.1371/journal.pbio.1001899