The present invention relates to a method for determining whether an epitope is susceptible to elicit a T-cell response to human immunodeficiency virus (HIV) in a subject affected with HIV infection based on the proviral sequences and HLA alleles of the subject. It also relates to a method for preparing a vaccine and for selecting a patient for a defined vaccine.