Higher pre-vaccination anti-hepatitis B surface antibody (HBs) titres due to prior hepatitis B vaccination were associated with higher peak anti-CSP titres in children (P = 0.005) and lower peak anti-CSP titres in adults (P = 0.002). This evidence concerns the gene DNAJC5 and hepatitis B virus infection.