A type of cancer that begins in cells that form sperm or eggs.