DNA is usually collected using painless cheek swabs rubbed gently inside the mouth. For a personal knowledge test, samples may be collected at home. Legal tests require controlled sample collection and proper chain-of-custody procedures.