The present invention provides a method for identifying multifactorial interactions in a biological sample, comprising (a) selecting a plurality of analytical target factors, (b) labeling
antibody molecules against each of the selected factors with
DNA barcodes, (c) contacting a biological sample containing the analytical target factors with the
antibody molecules labeled with the
DNA barcodes, (d) embedding the biological sample in a hydrogel after step (c), (e) performing, within the hydrogel, a
nucleic acid amplification reaction using a plurality of primers designed such that, when two antibodies come in close proximity, the primers produce an amplification product containing both
DNA barcode sequences from the antibodies, and (f) analyzing a
nucleotide sequence of the produced amplification product to detect a presence of a factor that simultaneously interacts with two or more factors.