When the female in a group of clownfish dies, the most dominant male turns into a female to replace her.