The chemical composition of DNA that gives rise to a particular phenotype; the genetic code for a particular trait.