Protamines substitute for histones in the chromatin of sperm during the haploid phase of spermatogenesis. They compact sperm DNA into a highly condensed, stable and inactive complex. . This is the function of PRM2 (protamine 2, Ensembl gene identifier ENSG00000122304).