A gene is a piece of genetic material that codes for proteins that determine features. Alleles are variants of a gene.