DNA sequences that form the coding region for proteins associated with the viral core in retroviruses. gag is short for group-specific antigen.