Molecular data is collected through various techniques such as immunohistochemistry, in situ hybridization, and fluorescence in situ hybridization (FISH). These methods allow for the detection of specific proteins, nucleic acids, and other molecules within tissue sections. Advanced techniques like next-generation sequencing (NGS) and mass spectrometry are also used to analyze genetic and proteomic data from tissue samples.