A segment of DNA that encodes the information used to make a protein. Each gene is a set of instructions for making a particular molecular machine that helps a cell, organism, or virus function.