The master gene that regulates differences between males and females plays a complex role in matching the right physical trait to the right sex, scientists have found. The research reveals new details about the behavior of the gene called ‘doublesex,’ or dsx.