Following dual ICC staining for cytokeratin 7 (CK7) and paired box gene 8 (PAX8), we developed an algorithm using immunoreactivity and three-dimensional (3D) cluster patterns to correlate staining and 3D cluster patterns with common primary origins that included stomach, ovarian, pancreatobiliary tract, colon, lung, and breast cancers. Here, PAX8 is linked to breast cancer.