An observable trait, such as flower color, is inherited in units of DNA called genes. Alternative versions of a gene are called alleles. An organism's total collection of genes is its genome.