The unit of heredity transmitted from generation to generation during sexual or asexual reproduction. More generally, the term is used in relation to the transmission and inheritance of particular identifiable traits. The simplest gene consists of a segment of nucleic acid that encodes an individual protein or RNA.