Patent attributes
The disclosure provides for methods, compositions, systems, devices, and kits for determining the number of distinct targets in distinct spatial locations within a sample. In some examples, the methods include: stochastically barcoding the plurality of targets in the sample using a plurality of stochastic barcodes, wherein each of the plurality of stochastic barcodes comprises a spatial label and a molecular label; estimating the number of each of the plurality of targets using the molecular label; and identifying the spatial location of each of the plurality of targets using the spatial label. The method can be multiplexed.