Doublesex (dsx) is a gene that is involved in the sex determination system of many insects including the fruit fly Drosophila melanogaster.