The Drosophila takeout gene is regulated by the somatic sex-determination pathway and affects male courtship behavior.