Your health care provider may also use a DNA test. This test uses a sample of cells from the cervix. The sample is tested for DNA to see which virus is causing the infection. Some types of genital HPV can lead to cancer.