Section 164B. DNA test
(1) Where an offence under section 376, section 377 or section 377B of the Pakistan Penal Code, 1860 (XLV of 1860) is committed or attempted to have been committed or is alleged to have been committed, Deoxyribo Nucleic Acid (DNA) samples, where practicable, shall be collected from the victim with his or her consent or with the consent of his or her natural or legal guardian and the accused during the medical examination conducted under section 164A within optimal time period of receiving information relating to commission of such offence.
(2) The DNA sample collected under sub-section (1) shall at the earliest be sent for investigation to a forensic laboratory where these shall be properly examined and preserved:
Provided that confidentiality of such examination shall at all times be observed.