Barcodes are typically integrated into the genome of cancer cells using techniques like CRISPR, or they can be attached to particular molecules like RNA or proteins. Once these barcoded cells or molecules are introduced into a biological system, their unique sequences can be identified and tracked through high-throughput sequencing methods.