"<!DOCTYPE html>\n<html lang=\"zh\" data-theme=\"light\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>fulltext.txt — Vercel Design System</title>\n<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">\n<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin>\n<link href=\"https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap\" rel=\"stylesheet\">\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.css\">\n<style>\n\n:root {\n  /* Vercel Palette */\n  --geist-foreground: #171717;\n  --geist-background: #ffffff;\n  --geist-secondary: #4d4d4d;\n  --geist-tertiary: #666666;\n  --geist-quaternary: #808080;\n  --geist-border: #ebebeb;\n  --geist-surface-tint: #fafafa;\n  \n  /* Workflow Accents */\n  --develop-blue: #0a72ef;\n  --preview-pink: #de1d8d;\n  --ship-red: #ff5b4f;\n  \n  /* Interactive & Status */\n  --link-blue: #0072f5;\n  --ds-focus-color: hsla(212, 100%, 48%, 1);\n  --badge-blue-bg: #ebf5ff;\n  --badge-blue-text: #0068d6;\n  \n  /* Shadow-as-Border Philosophy */\n  --shadow-border: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(0, 0, 0, 0.16) 0px 0px 0px 1px;\n  --shadow-card: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(0, 0, 0, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.06) 0px 4px 6px, #fafafa 0px 0px 0px 1px;\n  --shadow-card-full: rgba(0, 0, 0, 0.08) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 2px, rgba(0, 0, 0, 0.04) 0px 8px 8px -8px, #fafafa 0px 0px 0px 1px;\n  --shadow-ring: rgb(235, 235, 235) 0px 0px 0px 1px;\n  \n  /* Radius Scale */\n  --radius-xs: 2px;\n  --radius-sm: 4px;\n  --radius-md: 6px;\n  --radius-lg: 8px;\n  --radius-xl: 12px;\n  --radius-pill: 9999px;\n}\n\n[data-theme=\"dark\"] {\n  --geist-foreground: #ededed;\n  --geist-background: #000000;\n  --geist-secondary: #a1a1a1;\n  --geist-tertiary: #888888;\n  --geist-quaternary: #666666;\n  --geist-border: #222222;\n  --geist-surface-tint: #0a0a0a;\n  \n  --shadow-border: rgba(255, 255, 255, 0.14) 0px 0px 0px 1px;\n  --shadow-border-hover: rgba(255, 255, 255, 0.28) 0px 0px 0px 1px;\n  --shadow-card: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.4) 0px 2px 4px, #111111 0px 0px 0px 1px;\n  --shadow-card-hover: rgba(255, 255, 255, 0.2) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 6px 12px, #111111 0px 0px 0px 1px;\n  --shadow-card-full: rgba(255, 255, 255, 0.12) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 8px 16px -4px, #111111 0px 0px 0px 1px;\n  --shadow-ring: rgb(40, 40, 40) 0px 0px 0px 1px;\n  \n  --badge-blue-bg: rgba(10, 114, 239, 0.15);\n  --badge-blue-text: #70b5ff;\n}\n\n* { box-sizing: border-box; }\nhtml { scroll-behavior: smooth; }\nbody {\n  margin: 0;\n  font-family: \"Geist\", Arial, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif;\n  background-color: var(--geist-background);\n  color: var(--geist-foreground);\n  font-feature-settings: \"liga\" 1;\n  -webkit-font-smoothing: antialiased;\n  min-height: 100vh;\n}\n\na {\n  color: inherit;\n  text-decoration: none;\n  transition: color 0.15s ease;\n}\n\n/* 导航栏 (Vercel Clean Sticky Nav) */\n.vercel-nav {\n  position: sticky;\n  top: 0;\n  background-color: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  z-index: 100;\n  padding: 0 24px;\n  height: 64px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n}\n.nav-brand {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n.vercel-triangle {\n  width: 22px;\n  height: 19px;\n  fill: var(--geist-foreground);\n}\n.nav-title {\n  font-size: 16px;\n  font-weight: 600;\n  letter-spacing: -0.32px;\n  color: var(--geist-foreground);\n}\n.nav-badge-pill {\n  font-family: \"Geist Mono\", ui-monospace, monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  background: var(--badge-blue-bg);\n  color: var(--badge-blue-text);\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n}\n\n.nav-links {\n  display: flex;\n  align-items: center;\n  gap: 24px;\n}\n.nav-link {\n  font-size: 14px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.nav-link:hover, .nav-link.active {\n  color: var(--geist-foreground);\n}\n.nav-link.active {\n  font-weight: 600;\n}\n\n.nav-actions {\n  display: flex;\n  align-items: center;\n  gap: 12px;\n}\n\n/* 按钮规范 */\n.btn-primary-dark {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: opacity 0.15s;\n}\n.btn-primary-dark:hover {\n  opacity: 0.9;\n}\n.btn-secondary-white {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 8px 16px;\n  border-radius: var(--radius-md);\n  font-size: 14px;\n  font-weight: 500;\n  cursor: pointer;\n  text-decoration: none;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  transition: background 0.15s, box-shadow 0.15s;\n}\n.btn-secondary-white:hover {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border-hover);\n}\n.theme-toggle-btn {\n  background: transparent;\n  border: none;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  width: 36px;\n  height: 36px;\n  cursor: pointer;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  color: var(--geist-foreground);\n}\n\n/* 核心容器 */\n.vercel-container {\n  max-width: 1200px;\n  margin: 0 auto;\n  padding: 56px 24px 100px;\n}\n\n/* Hero Section (Gallery Emptiness + Negative Letter-spacing) */\n.vercel-hero {\n  text-align: center;\n  max-width: 860px;\n  margin: 0 auto 56px;\n}\n.hero-stage-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 8px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 4px 14px;\n  border-radius: var(--radius-pill);\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  margin-bottom: 24px;\n}\n.stage-dot {\n  width: 7px;\n  height: 7px;\n  border-radius: 50%;\n}\n.vercel-hero h1 {\n  font-size: 48px;\n  font-weight: 600;\n  line-height: 1.05;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 16px;\n}\n.vercel-hero p {\n  font-size: 20px;\n  font-weight: 400;\n  line-height: 1.80;\n  color: var(--geist-secondary);\n  margin: 0 auto 28px;\n}\n\n/* Workflow Pipeline (Develop -> Preview -> Ship) */\n.workflow-pipeline {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 768px) {\n  .workflow-pipeline { grid-template-columns: 1fr; }\n}\n.workflow-step {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px 22px;\n  transition: box-shadow 0.2s;\n}\n.workflow-step:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n.step-mono-label {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  margin-bottom: 8px;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n}\n.step-title {\n  font-size: 20px;\n  font-weight: 600;\n  letter-spacing: -0.96px;\n  color: var(--geist-foreground);\n  margin-bottom: 6px;\n}\n.step-desc {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n\n/* Metric Cards (Section 4 Spec) */\n.metric-grid {\n  display: grid;\n  grid-template-columns: repeat(4, 1fr);\n  gap: 16px;\n  margin-bottom: 48px;\n}\n@media (max-width: 900px) {\n  .metric-grid { grid-template-columns: repeat(2, 1fr); }\n}\n.metric-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n}\n.metric-number {\n  font-size: 40px;\n  font-weight: 600;\n  line-height: 1.0;\n  letter-spacing: -2.4px;\n  color: var(--geist-foreground);\n  margin-bottom: 8px;\n  font-feature-settings: \"tnum\" 1;\n}\n.metric-label {\n  font-size: 14px;\n  color: var(--geist-secondary);\n  line-height: 1.4;\n}\n\n/* VAD 专栏 Banner (Ship Red & Vercel Clean) */\n.vad-showcase {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-xl);\n  padding: 32px;\n  margin-bottom: 48px;\n  position: relative;\n}\n.vad-header-row {\n  display: flex;\n  align-items: baseline;\n  justify-content: space-between;\n  flex-wrap: wrap;\n  gap: 12px;\n  margin-bottom: 12px;\n}\n.vad-header-row h2 {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  color: var(--geist-foreground);\n  margin: 0;\n}\n.vad-pillars-grid {\n  display: grid;\n  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));\n  gap: 14px;\n  margin-top: 24px;\n}\n.vad-pillar-item {\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 14px 16px;\n}\n.vad-pillar-title {\n  font-size: 14px;\n  font-weight: 600;\n  color: var(--ship-red);\n  margin-bottom: 4px;\n}\n.vad-pillar-text {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  line-height: 1.5;\n}\n.vad-filter-bar {\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n  gap: 12px;\n  margin: 24px 0 16px;\n  padding: 12px 16px;\n  background: var(--geist-surface-tint);\n  border-radius: var(--radius-md);\n  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);\n}\n.vad-filter-btn {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  font-weight: 500;\n  padding: 6px 14px;\n  border-radius: 9999px;\n  border: none;\n  background: transparent;\n  color: var(--geist-secondary);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.vad-filter-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0,0,0,0.05);\n}\n.vad-filter-btn.active {\n  background: #171717;\n  color: #ffffff;\n}\n.vad-search-input {\n  font-family: 'Geist', sans-serif;\n  font-size: 13px;\n  padding: 7px 12px;\n  border-radius: 6px;\n  border: 1px solid var(--geist-border);\n  background: #ffffff;\n  color: var(--geist-foreground);\n  width: 280px;\n  outline: none;\n  transition: border-color 0.15s, box-shadow 0.15s;\n}\n.vad-search-input:focus {\n  border-color: #0a72ef;\n  box-shadow: 0 0 0 2px rgba(10, 114, 239, 0.2);\n}\n\n/* 控制栏：搜索、视图、筛选 */\n.control-bar {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  margin-bottom: 24px;\n  flex-wrap: wrap;\n}\n.search-input-wrap {\n  position: relative;\n  flex: 1;\n  max-width: 480px;\n}\n.search-input {\n  width: 100%;\n  height: 40px;\n  padding: 0 38px 0 14px;\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  color: var(--geist-foreground);\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  outline: none;\n  transition: box-shadow 0.15s;\n}\n.search-input:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n.search-kbd {\n  position: absolute;\n  right: 12px;\n  top: 50%;\n  transform: translateY(-50%);\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  color: var(--geist-quaternary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n\n.view-switcher {\n  display: flex;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  background: var(--geist-background);\n  padding: 2px;\n}\n.view-btn {\n  background: transparent;\n  border: none;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-tertiary);\n  padding: 6px 12px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n  transition: color 0.15s, background 0.15s;\n}\n.view-btn.active {\n  background: var(--geist-surface-tint);\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 筛选芯片行 (Filter Pill Strip) */\n.filter-group-strip {\n  display: flex;\n  flex-direction: column;\n  gap: 12px;\n  margin-bottom: 28px;\n  padding: 16px 20px;\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-lg);\n}\n.filter-row {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  flex-wrap: wrap;\n}\n.filter-label-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  min-width: 68px;\n}\n.pill-badge {\n  background: var(--geist-background);\n  color: var(--geist-secondary);\n  box-shadow: var(--shadow-border);\n  border: none;\n  padding: 3px 12px;\n  border-radius: var(--radius-pill);\n  font-size: 12px;\n  font-weight: 500;\n  cursor: pointer;\n  transition: all 0.15s;\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n}\n.pill-badge:hover {\n  color: var(--geist-foreground);\n  box-shadow: var(--shadow-border-hover);\n}\n.pill-badge.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  font-weight: 600;\n  box-shadow: none;\n}\n.pill-badge.active-blue {\n  background: var(--develop-blue);\n  color: #ffffff;\n  box-shadow: none;\n}\n.pill-badge.active-red {\n  background: var(--ship-red);\n  color: #ffffff;\n  box-shadow: none;\n}\n\n/* Bento Grid Cards (Section 4 & 6 Spec) */\n.card-grid-bento {\n  display: grid;\n  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));\n  gap: 16px;\n}\n.vercel-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  display: flex;\n  flex-direction: column;\n  justify-content: space-between;\n  transition: box-shadow 0.2s, transform 0.2s;\n  text-decoration: none;\n  color: inherit;\n  overflow: hidden;\n  min-width: 0;\n  word-break: break-word;\n}\n.vercel-card:hover {\n  box-shadow: var(--shadow-card-hover);\n  transform: translateY(-2px);\n}\n.card-top {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  margin-bottom: 12px;\n  gap: 8px;\n}\n.card-tag-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  font-weight: 500;\n  text-transform: uppercase;\n  color: var(--geist-quaternary);\n  letter-spacing: 0.5px;\n}\n.status-pill-badge {\n  padding: 2px 8px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 500;\n  flex-shrink: 0;\n}\n.pub-accepted { background: #ebfdf2; color: #027a48; }\n.pub-workshop { background: #eff8ff; color: #175cd3; }\n.pub-submitted { background: #fff8e6; color: #b54708; }\n.pub-preprint { background: #f2f4f7; color: #475467; }\n.pub-other { background: #f9f5ff; color: #6941c6; }\n\n[data-theme=\"dark\"] .pub-accepted { background: rgba(2, 122, 72, 0.2); color: #32d583; }\n[data-theme=\"dark\"] .pub-workshop { background: rgba(23, 92, 211, 0.2); color: #84caff; }\n[data-theme=\"dark\"] .pub-submitted { background: rgba(181, 71, 8, 0.2); color: #fec84b; }\n[data-theme=\"dark\"] .pub-preprint { background: rgba(71, 84, 103, 0.2); color: #98a2b3; }\n[data-theme=\"dark\"] .pub-other { background: rgba(105, 65, 198, 0.2); color: #d6bbfb; }\n\n/* 必读标杆徽章 (Vercel Amber Accent) */\n.milestone-badge {\n  display: inline-flex;\n  align-items: center;\n  gap: 3px;\n  padding: 2px 7px;\n  border-radius: var(--radius-pill);\n  font-size: 11px;\n  font-weight: 600;\n  white-space: nowrap;\n  flex-shrink: 0;\n  transition: all 0.15s ease;\n}\n.milestone-badge.ms-idea, .milestone-badge:not([class*=\"ms-\"]) {\n  color: #b54708;\n  background: #fff8e6;\n  border: 1px solid rgba(247, 144, 9, 0.35);\n  box-shadow: 0 1px 2px rgba(181, 71, 8, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-idea, [data-theme=\"dark\"] .milestone-badge:not([class*=\"ms-\"]) {\n  color: #fec84b;\n  background: rgba(181, 71, 8, 0.22);\n  border-color: rgba(254, 200, 75, 0.35);\n}\n.milestone-badge.ms-writing {\n  color: #6941c6;\n  background: #f9f5ff;\n  border: 1px solid rgba(105, 65, 198, 0.3);\n  box-shadow: 0 1px 2px rgba(105, 65, 198, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-writing {\n  color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.22);\n  border-color: rgba(214, 187, 251, 0.35);\n}\n.milestone-badge.ms-value {\n  color: #027a48;\n  background: #ebfdf2;\n  border: 1px solid rgba(2, 122, 72, 0.3);\n  box-shadow: 0 1px 2px rgba(2, 122, 72, 0.05);\n}\n[data-theme=\"dark\"] .milestone-badge.ms-value {\n  color: #32d583;\n  background: rgba(2, 122, 72, 0.22);\n  border-color: rgba(50, 213, 131, 0.35);\n}\n\n/* 论文正文图表与插图卡片样式 (Geist Design) */\n.paper-figure, .article-body figure {\n  margin: 32px auto;\n  text-align: center;\n  max-width: 100%;\n}\n.paper-figure img, .article-body img {\n  max-width: 96%;\n  height: auto;\n  border-radius: var(--radius-md);\n  border: 1px solid var(--geist-border);\n  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);\n  background: #ffffff;\n  transition: transform 0.2s ease, box-shadow 0.2s ease;\n  display: block;\n  margin: 0 auto;\n}\n.paper-figure img:hover, .article-body img:hover {\n  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);\n}\n.paper-figure figcaption, .article-body figcaption {\n  font-size: 13px;\n  color: var(--geist-secondary);\n  margin-top: 10px;\n  line-height: 1.6;\n  font-style: italic;\n  max-width: 850px;\n  margin-left: auto;\n  margin-right: auto;\n}\n\n/* VAD 视图切换器 View Switcher */\n.vad-view-switcher {\n  display: inline-flex;\n  padding: 3px;\n  background: var(--geist-secondary-bg);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  margin-bottom: 20px;\n  gap: 2px;\n}\n.view-switch-btn {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  padding: 6px 14px;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-secondary);\n  border-radius: 6px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.view-switch-btn:hover {\n  color: var(--geist-foreground);\n  background: rgba(0, 0, 0, 0.04);\n}\n[data-theme=\"dark\"] .view-switch-btn:hover {\n  background: rgba(255, 255, 255, 0.06);\n}\n.view-switch-btn.active {\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  font-weight: 600;\n  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n}\n\n/* 关系图谱 Graph View Styles */\n.graph-container {\n  position: relative;\n  width: 100%;\n  height: 720px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: var(--radius-lg);\n  overflow: hidden;\n  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);\n  margin-bottom: 40px;\n}\n.graph-toolbar {\n  position: absolute;\n  top: 14px;\n  left: 14px;\n  right: 14px;\n  z-index: 10;\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  padding: 8px 14px;\n  border-radius: 8px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  flex-wrap: wrap;\n  gap: 8px;\n}\n.graph-tool-title {\n  font-size: 13px;\n  font-weight: 700;\n  display: flex;\n  align-items: center;\n  gap: 6px;\n  color: var(--geist-foreground);\n}\n.graph-filter-group {\n  display: flex;\n  gap: 6px;\n  align-items: center;\n  flex-wrap: wrap;\n}\n.graph-chip {\n  font-size: 11px;\n  padding: 3px 8px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  cursor: pointer;\n  transition: all 0.15s ease;\n}\n.graph-chip:hover { background: var(--geist-secondary-bg); }\n.graph-chip.active {\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-color: var(--geist-foreground);\n}\n.graph-search-input {\n  padding: 3px 8px;\n  font-size: 11px;\n  border-radius: 4px;\n  border: 1px solid var(--geist-border);\n  background: var(--geist-background);\n  color: var(--geist-foreground);\n  outline: none;\n  width: 150px;\n}\n#vad-graph-svg {\n  width: 100%;\n  height: 100%;\n  cursor: grab;\n}\n#vad-graph-svg:active { cursor: grabbing; }\n.graph-legend {\n  position: absolute;\n  bottom: 14px;\n  left: 14px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  padding: 10px 14px;\n  font-size: 11px;\n  box-shadow: 0 4px 16px rgba(0,0,0,0.06);\n  z-index: 10;\n  line-height: 1.6;\n  pointer-events: none;\n}\n.graph-legend-row { display: flex; align-items: center; gap: 8px; }\n.graph-legend-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }\n.graph-info-drawer {\n  position: absolute;\n  top: 66px;\n  right: 14px;\n  width: 310px;\n  max-height: 620px;\n  background: var(--geist-background);\n  border: 1px solid var(--geist-border);\n  border-radius: 8px;\n  box-shadow: 0 8px 30px rgba(0,0,0,0.12);\n  z-index: 10;\n  padding: 16px;\n  overflow-y: auto;\n  display: none;\n  backdrop-filter: blur(10px);\n  transition: transform 0.2s ease, opacity 0.2s ease;\n}\n.graph-drawer-close {\n  position: absolute;\n  top: 10px;\n  right: 12px;\n  cursor: pointer;\n  font-size: 16px;\n  color: var(--geist-tertiary);\n}\n.graph-drawer-badge {\n  display: inline-block;\n  padding: 2px 6px;\n  border-radius: 4px;\n  font-size: 10px;\n  font-weight: 600;\n  margin-bottom: 6px;\n}\n.graph-drawer-title {\n  font-size: 13px;\n  font-weight: 700;\n  line-height: 1.4;\n  margin-bottom: 8px;\n  color: var(--geist-foreground);\n}\n.graph-drawer-meta {\n  font-size: 11px;\n  color: var(--geist-secondary);\n  margin-bottom: 12px;\n}\n.graph-drawer-core {\n  font-size: 12px;\n  line-height: 1.6;\n  color: var(--geist-foreground);\n  background: var(--geist-secondary-bg);\n  padding: 8px 10px;\n  border-radius: 6px;\n  margin-bottom: 12px;\n  border: 1px solid var(--geist-border);\n}\n.graph-drawer-link {\n  display: block;\n  text-align: center;\n  padding: 7px 12px;\n  background: var(--geist-foreground);\n  color: var(--geist-background);\n  border-radius: 6px;\n  font-size: 12px;\n  font-weight: 600;\n  text-decoration: none;\n  transition: opacity 0.15s ease;\n  margin-bottom: 6px;\n}\n.graph-drawer-link:hover { opacity: 0.85; }\n.graph-drawer-pdf-link {\n  display: block;\n  text-align: center;\n  padding: 6px 12px;\n  background: var(--geist-secondary-bg);\n  color: var(--geist-foreground);\n  border: 1px solid var(--geist-border);\n  border-radius: 6px;\n  font-size: 11px;\n  font-weight: 500;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.graph-drawer-pdf-link:hover { background: var(--geist-border); }\n.node-circle {\n  cursor: pointer;\n  transition: r 0.2s, stroke-width 0.2s;\n}\n.node-label {\n  font-size: 10px;\n  font-weight: 600;\n  fill: var(--geist-foreground);\n  pointer-events: none;\n  text-shadow: 0 1px 2px var(--geist-background);\n}\n.link-line {\n  stroke: var(--geist-border);\n  stroke-opacity: 0.6;\n  stroke-width: 1.2;\n  transition: stroke 0.2s, stroke-width 0.2s, stroke-opacity 0.2s;\n}\n.link-label {\n  font-size: 9px;\n  fill: var(--geist-tertiary);\n  pointer-events: none;\n  text-anchor: middle;\n}\n\n/* 引用框与警示框 Alerts */\n.callout-alert {\n  margin: 20px 0;\n  padding: 14px 18px;\n  border-radius: var(--radius-md);\n  transition: all 0.15s ease;\n}\n.callout-important, .callout-idea {\n  border-left: 4px solid #b54708;\n  background: rgba(181, 71, 8, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(247, 144, 9, 0.3);\n}\n[data-theme=\"dark\"] .callout-important, [data-theme=\"dark\"] .callout-idea {\n  border-left-color: #fec84b;\n  background: rgba(181, 71, 8, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(254, 200, 75, 0.25);\n}\n.callout-writing {\n  border-left: 4px solid #6941c6;\n  background: rgba(105, 65, 198, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(105, 65, 198, 0.3);\n}\n[data-theme=\"dark\"] .callout-writing {\n  border-left-color: #d6bbfb;\n  background: rgba(105, 65, 198, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(214, 187, 251, 0.25);\n}\n.callout-value {\n  border-left: 4px solid #027a48;\n  background: rgba(2, 122, 72, 0.06);\n  box-shadow: inset 0 0 0 1px rgba(2, 122, 72, 0.3);\n}\n[data-theme=\"dark\"] .callout-value {\n  border-left-color: #32d583;\n  background: rgba(2, 122, 72, 0.18);\n  box-shadow: inset 0 0 0 1px rgba(50, 213, 131, 0.25);\n}\n\n.card-title {\n  font-size: 16.5px;\n  font-weight: 600;\n  line-height: 1.42;\n  letter-spacing: -0.4px;\n  color: var(--geist-foreground);\n  margin: 0 0 10px;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n  hyphens: auto;\n}\n.card-title a {\n  color: var(--geist-foreground);\n  text-decoration: none;\n  display: inline;\n  transition: color 0.15s ease;\n}\n.card-title a:hover {\n  color: var(--develop-blue);\n  text-decoration: none;\n}\n.card-id-mono {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-quaternary);\n  margin-right: 5px;\n}\n.card-meta-row {\n  display: flex;\n  gap: 6px;\n  flex-wrap: wrap;\n  margin-bottom: 12px;\n}\n.meta-token {\n  font-size: 12px;\n  color: var(--geist-tertiary);\n  background: var(--geist-surface-tint);\n  box-shadow: var(--shadow-ring);\n  padding: 2px 7px;\n  border-radius: var(--radius-sm);\n  white-space: nowrap;\n}\n.card-body-text {\n  font-size: 13.5px;\n  color: var(--geist-secondary);\n  line-height: 1.6;\n  margin-bottom: 16px;\n  flex-grow: 1;\n  word-break: break-word;\n  overflow-wrap: anywhere;\n}\n.card-body-text strong {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n.card-footer {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 14px;\n}\n.card-link-action {\n  font-size: 13.5px;\n  font-weight: 500;\n  color: var(--link-blue);\n  display: inline-flex;\n  align-items: center;\n  gap: 4px;\n  text-decoration: none;\n  transition: all 0.15s ease;\n}\n.card-link-action:hover {\n  opacity: 0.85;\n  transform: translateX(2px);\n}\na.meta-token {\n  transition: all 0.15s ease;\n  cursor: pointer;\n  text-decoration: none;\n}\na.meta-token:hover {\n  background: var(--geist-selection);\n  color: var(--geist-foreground);\n  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);\n}\n\n/* 紧凑列表视图 (List View) */\n.card-list-view {\n  display: flex;\n  flex-direction: column;\n  gap: 8px;\n}\n.list-row-item {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-md);\n  padding: 12px 18px;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  transition: box-shadow 0.15s;\n}\n.list-row-item:hover {\n  box-shadow: var(--shadow-card-hover);\n}\n\n/* 阅读详情页 (Report Detail) */\n.reading-container {\n  display: grid;\n  grid-template-columns: minmax(0, 1fr) 260px;\n  gap: 40px;\n  align-items: start;\n}\n@media (max-width: 960px) {\n  .reading-container { grid-template-columns: 1fr; }\n  .reading-sidebar { display: none; }\n}\n\n.report-header-card {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 28px 32px;\n  margin-bottom: 28px;\n}\n.crumb-bar {\n  font-size: 13px;\n  color: var(--geist-tertiary);\n  margin-bottom: 10px;\n}\n.report-title {\n  font-size: 32px;\n  font-weight: 600;\n  letter-spacing: -1.28px;\n  margin: 0 0 16px;\n  color: var(--geist-foreground);\n}\n.report-action-buttons {\n  display: flex;\n  align-items: center;\n  gap: 10px;\n  flex-wrap: wrap;\n  border-top: 1px solid var(--geist-border);\n  padding-top: 16px;\n  margin-top: 16px;\n}\n\n.article-body {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 36px 42px 80px;\n  font-size: 16px;\n  line-height: 1.75;\n  color: var(--geist-foreground);\n}\n.article-body h1, .article-body h2, .article-body h3 {\n  color: var(--geist-foreground);\n  scroll-margin-top: 80px;\n}\n.article-body h1 { font-size: 28px; font-weight: 600; letter-spacing: -1.28px; border-bottom: 1px solid var(--geist-border); padding-bottom: 8px; margin-top: 32px; }\n.article-body h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.96px; border-bottom: 1px solid var(--geist-border); padding-bottom: 6px; margin-top: 36px; }\n.article-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.32px; margin-top: 26px; }\n.article-body table {\n  width: 100%;\n  border-collapse: collapse;\n  margin: 24px 0;\n  font-size: 14px;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  overflow: hidden;\n}\n.article-body th, .article-body td {\n  padding: 10px 14px;\n  text-align: left;\n  border-bottom: 1px solid var(--geist-border);\n}\n.article-body th {\n  background: var(--geist-surface-tint);\n  font-weight: 600;\n  color: var(--geist-foreground);\n}\n.article-body blockquote {\n  border-left: 2px solid var(--geist-foreground);\n  margin: 20px 0;\n  padding: 8px 18px;\n  color: var(--geist-secondary);\n  font-style: normal;\n}\n.article-body code {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 13.5px;\n  box-shadow: var(--shadow-ring);\n  background: var(--geist-surface-tint);\n  padding: 2px 6px;\n  border-radius: var(--radius-sm);\n}\n.article-body pre {\n  position: relative;\n  background: #000000;\n  color: #ededed;\n  box-shadow: var(--shadow-border);\n  border-radius: var(--radius-md);\n  padding: 18px;\n  margin: 24px 0;\n  overflow-x: auto;\n}\n.article-body pre code {\n  background: transparent;\n  box-shadow: none;\n  padding: 0;\n  color: inherit;\n  font-size: 13px;\n}\n.copy-code-btn {\n  position: absolute;\n  top: 8px;\n  right: 10px;\n  font-family: \"Geist Mono\", monospace;\n  font-size: 11px;\n  background: #171717;\n  color: #ffffff;\n  border: 1px solid #333333;\n  padding: 3px 8px;\n  border-radius: var(--radius-sm);\n  cursor: pointer;\n}\n\n/* 侧边大纲 (TOC) */\n.reading-sidebar {\n  position: sticky;\n  top: 80px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card);\n  border-radius: var(--radius-lg);\n  padding: 20px;\n  max-height: calc(100vh - 100px);\n  overflow-y: auto;\n}\n.sidebar-toc-title {\n  font-family: \"Geist Mono\", monospace;\n  font-size: 12px;\n  font-weight: 500;\n  text-transform: uppercase;\n  letter-spacing: 0.5px;\n  color: var(--geist-quaternary);\n  margin-bottom: 12px;\n}\n.reading-sidebar ul {\n  list-style: none;\n  padding-left: 0;\n  margin: 0;\n  font-size: 13px;\n}\n.reading-sidebar li {\n  margin: 6px 0;\n}\n.reading-sidebar ul ul {\n  padding-left: 14px;\n}\n.reading-sidebar a {\n  color: var(--geist-secondary);\n  text-decoration: none;\n  transition: color 0.15s;\n}\n.reading-sidebar a:hover, .reading-sidebar a.active {\n  color: var(--geist-foreground);\n  font-weight: 600;\n}\n\n/* 后台管理 (/admin) */\n.admin-card-container {\n  background: var(--geist-background);\n  box-shadow: var(--shadow-card-full);\n  border-radius: var(--radius-lg);\n  padding: 32px;\n  margin-bottom: 32px;\n}\n.form-row-2 {\n  display: grid;\n  grid-template-columns: 1fr 1fr;\n  gap: 16px;\n  margin-bottom: 16px;\n}\n@media (max-width: 600px) {\n  .form-row-2 { grid-template-columns: 1fr; }\n}\n.form-field {\n  display: flex;\n  flex-direction: column;\n  gap: 6px;\n  margin-bottom: 16px;\n}\n.form-field label {\n  font-size: 13px;\n  font-weight: 500;\n  color: var(--geist-foreground);\n}\n.form-field input, .form-field select, .form-field textarea {\n  font-family: \"Geist\", sans-serif;\n  font-size: 14px;\n  padding: 9px 12px;\n  background: var(--geist-background);\n  box-shadow: var(--shadow-border);\n  border: none;\n  border-radius: var(--radius-md);\n  color: var(--geist-foreground);\n  outline: none;\n}\n.form-field input:focus, .form-field select:focus, .form-field textarea:focus {\n  outline: 2px solid var(--ds-focus-color);\n  box-shadow: none;\n}\n\n/* 语法高亮 (Console Blue / Purple / Pink) */\n.codehilite .k, .codehilite .kd, .codehilite .kn { color: #eb367f; font-weight: 500; }\n.codehilite .s, .codehilite .s1, .codehilite .s2 { color: #0070f3; }\n.codehilite .nf, .codehilite .na { color: #7928ca; font-weight: 500; }\n.codehilite .c, .codehilite .c1 { color: #666666; font-style: italic; }\n.codehilite .mi, .codehilite .mf { color: #ff5b4f; }\n\n</style>\n\n</head>\n<body>\n\n    <nav class=\"vercel-nav\">\n      <div class=\"nav-brand\">\n        <a href=\"/\" style=\"display:flex;align-items:center;gap:10px;text-decoration:none\">\n          <svg class=\"vercel-triangle\" viewBox=\"0 0 76 65\" fill=\"none\">\n            <path d=\"M37.5274 0L75.0548 65H0L37.5274 0Z\" fill=\"currentColor\"/>\n          </svg>\n          <span class=\"nav-title\">Agent Harness KB</span>\n        </a>\n        <span class=\"nav-badge-pill\">Geist 2.0</span>\n      </div>\n\n      <div class=\"nav-links\">\n        <a class=\"nav-link \" href=\"/\">全景总览</a>\n        <a class=\"nav-link \" href=\"/vad\" style=\"color:var(--ship-red)\">🎯 VAD 专栏 (144)</a>\n        <a class=\"nav-link\" href=\"https://m0rtzz.github.io/paper-notes/\" target=\"_blank\" rel=\"noopener\">顶会 669 篇 ↗</a>\n        <a class=\"nav-link\" href=\"/download/all\">整库打包</a>\n        \n      </div>\n\n      <div class=\"nav-actions\">\n        \n        <button class=\"theme-toggle-btn\" id=\"theme-toggle-btn\" onclick=\"toggleTheme()\" title=\"切换亮暗主题\">🌙</button>\n      </div>\n    </nav>\n    \n<main class=\"vercel-container\">\n\n        <div class=\"report-header-card\">\n          <div class=\"crumb-bar\"><a href=\"/\">Home</a> / <b>fulltext.txt</b></div>\n          <h1 class=\"report-title\">fulltext.txt</h1>\n          <div class=\"report-action-buttons\">\n            <a class=\"btn-primary-dark\" href=\"?dl=1\">Download Text</a>\n          </div>\n        </div>\n        <article class=\"article-body\"><pre><code>This CVPR paper is the Open Access version, provided by the Computer Vision Foundation.\nExcept for this watermark, it is identical to the accepted version;\nthe final published version of the proceedings is available on IEEE Xplore.\n\nBulk RNA-seq Guided Multi-modal Detection of Anomalous Regions in Human\nCancer via Spatial Transcriptomics\nHang Shi1,2 , Ruocheng Yang1,2 , Wenjie You1,2 , Zhilin Huang1,2 , Daoqiang Zhang1,2 , Wei Shao1,2 *\n1\nThe College of Artificial Intelligence, Nanjing University of Aeronautics and Astronautics\n2\nThe Key Laboratory of Brain-Machine Intelligence Technology, Ministry of Education\nshaowei20022005@nuaa.edu.cn\n\nAbstract\nSpatial transcriptomics (ST) has emerged as a revolutionary approach in the field of tissue analysis that can offer spatial resolved molecular insights for the identification of anomalous regions (AR) on human cancers. Current ST-based methods for detecting AR focus narrowly on\nthe molecular features of local tissue spots, overlooking the\nmatched bulk RNA-seq data that contains crucial diagnostic information. This oversight limits their effectiveness in\nidentifying subtle or heterogeneous tumors, where accurate\ndetection depends on broader genetic context. Besides the\ngenomic signatures, the pathological images can also provide rich visual information to reflect the morphology of AR.\nTo utilize the patient-level diagnostic knowledge and harness complementary information from both histology images and ST, we develop a Bulk RNA-seq Guided Multimodal Anomalous Regions Detection method (BRGMAR)\nfor the identification of AR from human tissues. Specifically, to effectively model the dependencies in ST, we introduce a Dynamic Multi-Relational Graph Learning (DMRGL) module to adaptively capture complex relationships\nin ST, including both spatial proximity and gene expression similarity. Then, we design an Optimal Transportationbased Gene Module Alignment (OTGMA) approach to align\nST data with patient-level bulk RNA-seq data by matching\nthe compositional and functional similarities of their corresponding gene modules. Finally, we combine the learned\ngenomic features with pathological image representations\nfor accurate AR detection. We evaluate our method on three\npublic available ST datasets for the purpose of identifying\ncancerous regions from normal tissues, and the experimental results demonstrate the advantage of our method in comparison with the existing studies.\n\nFigure 1. (a) Most of the existing studies rely on gene expression\nprofiles derived from ST for anomalous region detection. (b) Our\nBRGMAR fuses ST and pathological images, as well as leveraging\nthe corresponding bulk RNA-seq with diagnostic information for\nperformance improvement.\n\n1. Introduction\n\n* Corresponding author.\n\nAnomalous regions (AR) in human tissues refer to spatially\nconfined areas that deviate from normal histological or\nmolecular patterns, and are closely associated with the\nonset and progression of various diseases particularly for\nhuman cancer [1, 5, 20]. In the study of tumor biology,\nAR correspond to malignant transformations, such as\ncarcinoma in situ or dysplastic regions, which often\nprecede the development of invasive tumors [58, 60]. The\naccurate detection of these regions is critical not only for\nearly cancer detection and risk stratification, but also for\ntracing clonal evolution and pinpointing potential sites of\nrecurrence or therapeutic resistance [16, 47].\nEarly studies on AR detection of human tissues primarily rely on H&amp;E-stained pathological images due to\ntheir capacity to provide high-resolution visualizations of\ntissue architecture and cellular morphology [10, 61]. In\nthese approaches, AR are typically identified by employing\ncomputer vision and machine learning algorithms to detect\n\nCode and Dataset is available at: github.com/shihangjs/BRGMAR\n\n41815\n\n\fmorphological deviations between normal and abnormal\ntissue regions. For instance, the authors in [61] have\npresented a training system consisting of a CNN-based\nfeature generator and a one-class classifier for the detection\nof abnormal tiles from Whole Slide Images (WSI). Dippel\net al. [10] have introduced a self-supervised learning\nalgorithm to flag anomalous regions in histopathology\nimages without the need for extensive manual annotation.\nHowever, these image-based studies often face limitations\nin accurately detecting subtle anomalies in human cancers,\nparticularly within the context of heterogeneous tumors\nand complex tissue micro-environments [42, 56].\nTo overcome the above limitations, the spatial transcriptomics (ST) technique has been widely adopted to\ndetect anomalous regions at molecular level [36, 44]. By\npreserving the spatial context of gene expression within\ntissue sections, ST facilitates a more comprehensive\ncharacterization of tissue heterogeneity and reveals AR that\nmay not be apparent through tissue morphology. Based\non ST, researchers have designed several AR detection\nalgorithms. For example, Hu et al. [21] formulate the\nproblem of anomaly detection on ST as comparing spatially\nlocalized probability densities of gene expression among\ndifferent conditions. Xu et al. [50] use a deep autoencoder\ncoupled with a masked self-supervised learning mechanism\nfor the identification of AR regions in ST. By considering\nthat both ST and their corresponding visual representations\ncan provide complementary information, other studies\nincluding [51] further adds pathological image to the ST\ndata for further performance improvement.\nAlthough much progress has been achieved, the existing ST-based studies for AR detection still face several\nchallenges. Firstly, these methods primarily rely on local\nmolecular features derived from individual tissue spots\nin ST, without incorporating the broader patient-level\nbulk RNA-seq data that contain diagnostic information.\nIntuitively, the combination of the overall tumor genetic\nprofile and diagnostic information (i.e., cancer patients or\nnormal control) can provide more guidance to identify AR.\nSecondly, for the purpose of aligning the genomic data\nwith different domains or sequencing technologies, most of\nthe existing studies primarily focus on matching individual\ngene expression values [62]. However, such strategy often\noverlooks the fact that the functional abnormalities in\ntissues tend to involve disruptions in gene co-expression\npatterns rather than individual gene expression changes\n[41]. Thirdly, most existing graph-based ST models assume\nadjacent spots share similar profiles and thus construct\ngraphs based on Euclidean distance. This approach fails\nto capture non-local biological relationships, where distant\nspots can also exhibit similar molecular patterns. Last but\nnot least, most of the existing studies have demonstrated\nthe advantages of combining genomic signatures and image\n\ndata for various clinical prediction tasks [28, 31], it can be\nexpected that better results can be achieved if we combine\nST and pathological images for AR detection.\nBased on the above consideration, we propose a\nBulk RNA-seq Guided Multi-modal Anomalous Regions\n(BRGMAR) detection method for the identification of\ncancerous regions in human tissues by the combination\nof ST and pathological images data. BRGMAR aligns\nthe extra bulk RNA-seq data to its corresponding target\nST data with the same cancer subtype that can leverage\nthe diagnostic information derived from bulk RNA-seq to\nenhance the performance for cancerous region detection.\nWe conduct experiments on three ST datasets and the\nexperimental results demonstrate the superiority of our\nmethod when comparing with the existing studies. We\nsummarize the main contributions of this study as follows:\n1) We propose a novel multi-modal AR detection\nmethod by the combination of Spatial Transcriptomics\n(ST), pathological images and prior bulk RNA-seq data\nwith diagnostic information.\n2) For each cancer subtype, we propose an Optimal\nTransportation-based Gene Module Alignment (OTGMA)\napproach to align ST data with bulk RNA-seq data by\nmatching the compositional and functional similarities\nof their corresponding gene modules, allowing for the\nintegration of diagnostic information derived from bulk\nRNA-seq to enhance AR detection on ST data.\n3) We introduce a Dynamic Multi-Relational Graph\nLearning (DMRGL) module to adaptively capture complex\nrelationships in ST, including both spatial proximity and\ngene expression similarity.\n\n2. Related Work\n2.1. Anomalous Region Detection on Human Tissues\n\n41816\n\nAnomalous Region (AR) detection on human tissues is an\nimportant task in personalized medicine aiming at identifying region of interests (ROIs) that deviate from normal\nbiological states [1, 23]. Generally, the existing AR detection approaches on human tissues can be categorized into\ntwo folds i.e., image and spatial transcriptomics (ST) based\nmethods. The image based methods are primarily relying on Hematoxylin and Eosin (H&amp;E) stained pathological\nimages that can capture the cellular morphology [10, 61]\nor tissue architecture [26, 56] difference between AR and\nnormal tissues. However, these image-based studies often\nstruggle to detect subtle anomalies sharing similar visual\nappearance with normal tissues. To address the above limitations, the spatial transcriptomics (ST) technique has been\nutilized that can offer molecular-level perspective to identify AR [36]. Specifically, for the purpose of capturing the\n\n\fspatial correlation among different spots, most of the AR\nprediction models are built upon the graph neural network\n(GNN) [32, 43, 50]. By considering that the pathological\nimages can provide complementary visual information to\nST for AR detection, recent studies in [51, 52] have combined them together for further performance improvement.\nHowever, all the ST-based AR detection studies are relying on spot-level genomic signatures, which overlook using\nthe matched bulk RNA-seq data that can provide valuable\npatient-level diagnostic information to improve the performance for AR detection.\n\nto help infer AR in ST. Finally, we fuse the representations\nfrom the ST and pathological images to facilitate accurate\nAR detection.\n\n3.1. Data Preprocessing\nFor the ST data, we firstly exclude spots located outside the\ntissue region. Then, we follow the approach in [11] that applies the SCANPY package [49] to identify a common set of\n5000 highly variable genes (HVGs). Next, for the matched\npathological images of each ST slice, we crop them into\npatches according to the spatial context of the spots and\nfurther leverage the vision-language model CONCH [34]\nfor feature extraction. On the other hand, as to the bulk\nRNA-seq data of each cancer cohort obtained from the The\nCancer Genome Atlas (TCGA), we also select the top 5000\nHVGs and intersect with the selected genes in ST for alignment. To mitigate the batch effect for both ST and bulk\nRNA-seq data, the SpaCross [13] algorithm is adopted.\n\n2.2. Cross-Domain Alignment for Genomic Data\nAs genomic profiling technologies continue to evolve [8],\nintegrating genomic data across different cohorts or sequencing technologies has become increasingly important that allows researchers to leverage the complementary\nstrengths of each platform to achieve a more comprehensive understanding of disease mechanisms [4, 19]. Specifically, by considering the challenges of acquiring sufficiently\nlabeled survival data for every cancer type, the studies in\n[18, 55] have leveraged the knowledge from related cancer\ntypes by aligning their corresponding gene expression data.\nBulk2Space [29] is a deep learning framework-based spatial\ndeconvolution algorithm that can simultaneously disclose\nthe spatial and cellular heterogeneity of bulk RNA-seq data\nvia the alignment of single-cell and spatial transcriptomics\nreferences. Moreover, SpaGTL [22] is a ST-based transfer learning framework that can realize tissue alignment via\ngene-level transformers and spot-level manifold-dominated\nvariational autoencoder. Other studies include [25] have\npresented a flexible deep transfer learning framework for\nprioritizing single-cell RNA data in relation to bulk-RNA\ndata via a multi-task learning framework. However, most of\nthe existing approaches primarily focus on matching the expression levels of individual genes, which overlook the fact\nthat the functional abnormalities in tissues are often driven\nby disruptions in gene co-expression patterns, rather than\nisolated changes in individual genes [41].\n\n3. Method\nWe show the flowchart of our proposed bulk RNA-seq\nguided multi-modal anomalous region detection method\n(BRGMAR) in Fig. 2, which is consisted of four steps. For\nthe pathological images, the vision-language foundational\nmodel CONCH is applied for feature extraction [34]. As to\nthe ST data, we firstly develop a dynamic multi-relational\ngraph learning (DMRGL) module that can capture complex\ndependencies of spots including the spatial proximity and\ngene expression similarity. Then, we design an optimal\ntransportation-based gene module alignment approach that\ncan match ST and bulk RNA-seq data, by which we can\nleverage the diagnostic information in bulk RNA-seq data\n\n3.2. Dynamic Multi-Relational Graph Learning\nRecently, graph learning has emerged as a powerful tool for\ndetecting cancerous regions in spatial transcriptomics (ST)\n[52]. However, most of the existing methods rely on the\nspatial neighborhood of spots to build graph that fails to\ntake the gene similarity information into consideration. As\na matter of fact, the spots with similar gene expression pattern also show close biological relationship [59]. To overcome the above limitations, we propose a dynamic multirelational graph learning (DMRGL) module that jointly incorporates spatial proximity and gene expression similarity\nto model the relationship among different spots.\nMathematically, we represent each slice of ST as X s =\ns\n[x1 , xs2 , . . . , xsn ]⊤ ∈ RNs ×D , where xsi is the gene expression vector of the i-th spot, and D refers to the number of\ngenes. To capture multiple relational patterns among different spots, a dynamic graph is defined G = (V, E (t) ), where\nV refers to the set of spots and E (t) denotes the edge connections at stage t. In DMRGL, we initially (i.e., t = 0)\nbuild the graph according to the spatial proximity of spots\nby applying the KNN algorithm. Then, by considering that\nthe spots with long-range distance may share the same gene\nexpression patterns, we later (i.e., t &gt; 0) integrate gene\nsimilarity to refine the graph structure by dynamically selecting ks spots for each node with the largest cosine similarities in the gene embedding space. Here, we employ\nthe Graph Attention Network (GAT) to learn genomic representations of different spots. The attention mechanism\nadaptively weights the influence of neighboring nodes as\nfollows:\n\u0010\n\u0010\n\u0011\u0011\nexp LeakyReLU a⊤ [W⃗hsv ∥W⃗hsu ]\n\u0010\n\u0010\n\u0011\u0011\nαvu = P\n⊤\n⃗s\n⃗s\nk∈N (v) exp LeakyReLU a [Whv ∥Whk ]\n(1)\n\n41817\n\n\fFigure 2. The flowchart of the proposed BRGMAR framework. BRGMAR learns the image representations via the vision-language\nfoundation model CONCH [34]. For the ST data, BRGMAR utilizes a Dynamic Multi-Relational Graph Learning (DMRGL) module to\ndelineate their complex dependencies. In addition, to leverage the patient-level diagnostic information from the bulk-RNA seq, an optimal\ntransportation-based gene module alignment approach is proposed. Finally, we fuse the representations from both ST and pathological\nimages to facilitate accurate AR detection.\n\nwhere ⃗hsv denotes the node representation of spot v, W is\na learnable weight matrix, a is the attention vector, and ∥\nrepresents the concatenation operator. The updated node\nrepresentation is then computed as:\n\u0010 X\n\u0011\nαvu W⃗hsu\nhsv = σ\n(2)\nu∈N (v)\n\nprevious subsection. Here, m ∈ {b, s} denotes the bulk\nand ST domains, respectively. Then, given the learnable\nm\ngene-module assignment matrix Rm ∈ RD×Km , where Rik\nindicates the probability of gene i belonging to module k\nin domain m, and Km denotes the number of latent gene\nmodules specific to domain m, we construct a Topological\nOverlap Matrix (TOM) for each unit to capture its internal\nco-expression pattern:\n\n3.3. Optimal Transportation-based Gene Module\nAlignment\n\nm\nm\nm\nTOMm\nk [i, j] = Âij · Rik · Rjk\n\nIt is widely recognized that tissue functional abnormalities often involve disruptions in gene co-expression patterns rather than changes in individual gene expression levels [41]. To transfer diagnostic knowledge from source bulk\nRNA-seq data to the target ST domain, we propose a novel\ngene alignment framework by partitioning the shared D\ngenes across ST and bulk RNA-seq data into latent functional modules and then aligning them by jointly considering their compositional and functional characteristics.\nSpecifically, we first compute domain-specific gene similarity matrices Am ∈ RD×D from learned features, where\nb ⊤\nthe bulk features Z b = [z1b , z2b , . . . , zN\n] ∈ RNb ×D are\nb\nextracted using a multi-layer MLP and the ST features\nH s = [hs1 , hs2 , . . . , hsNs ]⊤ ∈ RNs ×D are taken from the\n\n(3)\n\n41818\n\nwhere TOMm\nk [i, j] quantifies the co-expression relationship\nbetween gene i and gene j in module k, and Âij represents\nthe normalized gene similarity matrix. The following sections detail the composition and function alignment based\non the TOM representation.\nComposition Alignment. To align co-expression modules\nacross the bulk and ST domains, we measure the divergence between their topological representations. Specifically, we treat TOMm\nk as a weighted graph and follow the\nstudy in [39] to compute its Laplacian matrix as Lm\nk =\nm\nm\nDkm − TOMm\n,\nwhere\nD\nis\nthe\ndegree\nmatrix\nof\nTOM\nk\nk .\nk\nThen, the compositional dissimilarity between a source\nmodule (bulk) and a target module (ST) is quantified using\n\n\fthe squared Wasserstein-2 distance between their respective\nLaplacian matrices.\n\u0001\norg\nCij\n= Tr (Lbi )† + (Lsj )†\n\u0011 (4)\n\u0010q\n((Lbi )† )1/2 (Lsj )† ((Lbi )† )1/2\n− 2 Tr\nwhere Tr(·) represents the trace operator, and † indicates\nthe pseudoinverse operator.\nFunction Alignment. Building upon compositional correspondence, we further incorporate functional resemblance\nto refine module alignment. Following prior work [9], we\nleverage pre-trained gene functional embeddings from a\nmatrix E = [e1 , e2 , . . . , eD ]⊤ ∈ RD×Demb , where each\nrow ei corresponds to gene i and is encoded from its NCBI\ndescription using OpenAI’s text-embedding-3-large model.\nGiven the gene module assignment matrix Rm ∈ RD×Km\nfor domain m, the centroid of the k-th module is computed\nas:\nN\nP\nm\nRik\n· ei\ni=1\nm\n(5)\npk = N\nP m\nRik\ni=1\n\nBased on pm\nk , we define the functional distance between\nfun\ncross-domain modules as Cij\n= d(pbi , psj ), where d(·, ·)\nis a distance function (e.g., Euclidean distance). This produces a functional distance matrix C fun ∈ RKb ×Ks , with\nKb and Ks indicating the number of functional gene modules in bulk and ST data, respectively.\nJoint Alignment via Optimal Transport. Finally, we formulate the module matching as an optimal transport (OT)\nproblem. An integrated cost matrix is established by combining structural and functional divergences:\norg\ntotal\nfun\nCij\n= Cij\n+ Cij\n\n(6)\n\nwhere λreg = 0.1 controls the strength of regularization.\nThe optimal transport plan P is efficiently approximated\nusing the Sinkhorn algorithm. The complete algorithmic\nworkflow is provided in Algorithm 1 in the Supplementary\nMaterial.\n\n3.4. Multi-modal Fusion of ST and Image Data\nTo integrate representations from both ST and image modalities, we utilize a cross-attention mechanism. For each spot\nv, the gene expression feature hsv serves as the query, while\nthe corresponding image feature ximg\nprovides keys and\nv\nvalues.\nqv = Wq hsv ,\n\nP\n\ns.t.\n\nKb X\nKs\nX\n\nzvs = MLP([hsv ∥ĥsv ])\n\nWe employ a unified classifier to supervise the shared latent\nrepresentation space across domains. For each domain m ∈\n{b, s}, we define learnable class-specific weight vectors orm\nganized into a matrix W m = [w1m , w2m , ..., wN\n]⊤ ∈\ncls\nNcls ×D\nR\n. Then, the classification probability for sample i\nin domain m is computed as:\nexp((wcm )⊤ zim )\nP (yi = c | zim ) = PNcls\nm ⊤ m\nk=1 exp((wk ) zi )\n\n(7)\n\nL = LbCE + LsCE + LOT\nPN\n1\ntrue\n| zim ).\nwhere Lm\nCE = − N\ni=1 log P (yi = yi\n\nPij = bj .\n\ni\n\nwhere ai = 1/Kb and bj = 1/Ks represent uniform\nmarginal distributions over bulk and ST modules, respectively. To improve numerical stability and optimization\nefficiency, wePintroduce an entropic regularization term\nH(P ) = − i,j Pij (log Pij − 1), resulting in the final\nSinkhorn distance as the loss function:\nX\ntotal\nLOT (C total ) =\nPij · Cij\n− λreg · H(P )\n(8)\ni,j\n\n(12)\n\nFinally, the overall training objective combines crossentropy losses for both domains with optimal transport:\n\nj\n\nX\n\n(11)\n\n3.5. Anomalous Region Detection\n\ntotal\nPij · Cij\n\nPij = ai ,\n\n(9)\n\nThe attended image context ĥsv is then concatenated with the\nlearned gene expression feature and projected to produce\nthe final fused representation:\n\ni=1 j=1\n\nX\n\nvv = Wv ximg\nv\n\nwhere Wq ∈ RD×D , Wk ∈ RD×Dimg , and Wv ∈\nRD×Dimg are learnable projection matrices. The crossattention is computed as:\n\u0013\n\u0012\nqv kv⊤\n√\n, ĥsv = αv vv\n(10)\nαv = softmax\nD\n\nOur objective is to find an optimal transport plan P ∈\nRKb ×Ks that minimizes the overall alignment cost:\nmin\n\nkv = Wk ximg\nv ,\n\n(13)\n\n4. Experimental Results\n4.1. Experimental Settings\nDatasets: In this study, we utilize three public available\nspatial transcriptomics (ST) datasets for experimental validation: BRCA[2], ccRCC[35], and HCC[24]. Specifically, the BRCA dataset, derived from breast cancer tissue samples, comprises eight slices (A1 to H1), each containing between 167 and 659 spatial spots. The number\n\n41819\n\n\fFigure 3. Comparison of the visualization results for anomalous region detection.\n\nof detected genes per slice ranges from 14,861 to 15,671.\nThe ccRCC dataset, obtained from clear cell renal cell carcinoma tissues, consists of eight samples (GSM5924032\nto GSM5924041), with each sample comprising 3,585 to\n4,975 spatial spots and a uniform gene count of 17,943. The\nHCC dataset, sourced from hepatocellular carcinoma specimens, includes ten tissue slices (HCC-1L to HCC-5D), with\nspot counts ranging from 2,755 to 4,750 and gene counts\nvarying between approximately 16,010 and 17,283. Comprehensive statistics for spatial spots including both normal and cancerous spots as well as gene counts across all\nslices are provided in the Supplementary Table 5. For the\nreferenced bulk RNA-seq data of each tissue type, we collect both normal and cancerous samples, which are obtained\nfrom The Cancer Genome Atlas (TCGA), a large-scale cancer genomics program supported by the NCI and NHGRI.\nSince the top 5000 HVGs obtained from bulk RNA-seq and\nST data differ (see Section 3.1), we establish a common\ngene panel for cross-modal alignment by using the intersection of the HVGs identified in both datasets.\nImplementation Details: In this paper, we adopt a leaveone-out cross-validation (LOOCV) protocol for performance evaluation across all datasets. Both our BRGMAR\nand its competitors are trained for 300 epochs using the\nAdam optimizer, with a learning rate of 1 × 10−4 and a\nbatch size of 1. More specifically, the DMRGL module is\nimplemented as a three-layer architecture with hidden dimensions are set as 256 and 512, respectively. In DMRGL,\nthe spatial structure are formed based on the kn = 5 nearest neighbors of each spot, while gene similarity graph is\nconstructed by identifying the ks = 5 most similar nodes\nfor each spot. As to the OTGMA module, both ST and bulk\nRNA-seq data are partitioned into Nm = 10 functional gene\nmodules. We evaluate the performance of our method by the\nmetrics of the Area Under Curve (AUC) and the F1-score.\nAll experiments are conducted on two NVIDIA RTX 3090\nGPU with 24GB memory. We will analysis the time complexity compared with existing methods in Supplementary\n\n41820\n\nMaterials Section 7\nComparing Methods: To thoroughly assess the effectiveness of our proposed framework, we conduct comprehensive benchmarking against a broad spectrum of\nstate-of-the-art methods. These baselines are categorized into four distinct groups: (i) Uni-modal AR detection methods relying on histopathology images, including\nSimpleNet[33], THOR[6], BIHN[61], AnoDDPM[30]; (ii)\nUni-modal AR detection approaches relying on ST data,\nincluding FICT[43], Giotto[12], SEDR[50], SpaGIC[32]\nand BRGMAR-G. Here, BRGMAR-G is a variant of\nour BRGMAR solely relying on ST data; (iii) Multimodal AR detection methods by the combination of ST\nand histopathological image data, including MEATRD[52],\nSTAIG[53], STANDS[51], STGIC[57], stMMC[27]; (iv)\nDomain alignment methods for transfer learning, including Bulk2Space[29], DARE-GRAM[37], IRAD[54],\nLOCIT[46], STEM[19]. More detailed introductions of\nthese comparing methods can be found in Supplementary\nMaterials.\n\n4.2. Comparison with Uni-modal Methods\nWe first evaluate the performance of BRGMAR against\nuni-modal baselines that utilize either histopathology\nimages or gene expression data alone. As shown in\nTable 1, methods relying solely on histopathology images\nconsistently underperformed. For example, on the BRCA\ndataset, the best image-based method achieves relatively\nlower AUCs of 0.601. In contrast, models relying on ST\ndata exhibit substantially better performance, highlighting\nthe advantage of ST that can effectively identify subtle\nmolecular perturbations for AR detection. Notably, our STonly variant, BRGMAR-G, outperforms all other ST-based\nbaselines. These results underscore the effectiveness of our\nDMRGL module in capturing complex, multiple spatial\ndependencies, including non-local biological relationships\nthat are often missed by conventional graph-based or\ntransformer-based approaches.\n\n\fTable 1. Comparison of BRGMAR with Uni-modal Methods on (a) BRCA, (b) HCC, and (c) ccRCC datasets using average AUC and\nF1-score as evaluation metrics. The best results are in bold, and the second-best results are underlined.\nDataset\n\nImage-based\n\nMetric\n\nST-based\n\nSimpleNet\n\nf-AnoGAN\n\nTHOR\n\nBRGMAR-G\n\nSEDR\n\nGiotto\n\nFICT\n\nSpaGIC\n\nBRCA\n\nAUC\nF1\n\n0.601 ± 0.094\n0.579 ± 0.005\n\n0.558 ± 0.001\n0.546 ± 0.101\n\n0.512 ± 0.031\n0.557 ± 0.084\n\n0.726 ± 0.009\n0.734 ± 0.119\n\n0.712 ± 0.046\n0.649 ± 0.078\n\n0.675 ± 0.009\n0.710 ± 0.119\n\n0.674 ± 0.093\n0.585 ± 0.030\n\n0.701 ± 0.082\n0.629 ± 0.037\n\nHCC\n\nAUC\nF1\n\n0.586 ± 0.036\n0.517 ± 0.115\n\n0.673 ± 0.032\n0.581 ± 0.083\n\n0.529 ± 0.045\n0.641 ± 0.070\n\n0.806 ± 0.033\n0.755 ± 0.045\n\n0.773 ± 0.135\n0.654 ± 0.117\n\n0.717 ± 0.033\n0.636 ± 0.045\n\n0.630 ± 0.063\n0.662 ± 0.127\n\n0.633 ± 0.145\n0.752 ± 0.014\n\nccRCC\n\nAUC\nF1\n\n0.536 ± 0.053\n0.540 ± 0.002\n\n0.592 ± 0.128\n0.611 ± 0.048\n\n0.568 ± 0.035\n0.607 ± 0.100\n\n0.671 ± 0.050\n0.678 ± 0.001\n\n0.660 ± 0.181\n0.622 ± 0.005\n\n0.653 ± 0.055\n0.661 ± 0.199\n\n0.668 ± 0.074\n0.655 ± 0.051\n\n0.642 ± 0.057\n0.647 ± 0.066\n\ndata modalities.\n\n4.3. Comparison with Multi-modal Methods\n4.5. Qualitative Analysis of Anomaly Detection:\n\nWe further compare our BRGMAR with multi-modal methods that combine ST data and pathological image for cancerous region detection. As summarized in Table 2, the\nexperimental results show that BRGMAR consistently and\nsignificantly outperforms all competing methods across all\nthe three datasets. For example, on the BRCA dataset,\nBRGMAR achieves an F1-score of 0.775 and an AUC of\n0.801. A similar trend is observed on the HCC dataset,\nwhere our framework attains a leading AUC of 0.897 and an\nF1-score of 0.863, demonstrating a clear performance gain\nover the next-best approach. We attribute this substantial\nimprovement to the incorporation of a novel transfer learning strategy, which effectively leverages the rich diagnostic\nsignals embedded in patient-level bulk RNA-seq data for\ncancerous region detection.\n\n4.4. Comparison with Transfer Learning Methods\n\nTo qualitatively assess the anomaly detection performance\nof our method, we visualize the predicted results across\ndifferent datasets. As shown in Fig. 3, on the BRCA\ndataset, our model can accurately delineate anomalous\nregions, with boundaries closely matching ground truth\nannotations. Similar results can also be observed for\nHCC and ccRCC datasets, where our method consistently\nproduces coherent and well-defined contours aligned with\ntumor regions. By contrast, image-only methods such as\nSimpleNet often yields blurred or diffuse predictions due\nto their limited contextual understanding from the genomic\nperspective, while the gene expression-based approaches\nlike FICT show stronger AR detection ability but may\nproduce fragmented or spatially inconsistent outputs.\nMoreover, by the combination of image and genomic data,\nthe multi-modal approach including MEATRD, STANDS\ncan offer more advanced cancerous region detection results\nbut still exhibits less precise boundary in comparison with\nour approach.\n\nTo comprehensively assess the efficacy of the proposed\nOTGMA within our BRGMAR framework for aligning\nST and bulk RNA-seq data, we conducted the comparison\nagainst several SOTA transfer learning approaches. The\nexperimental outcomes, as detailed in Table 2, unequivocally demonstrate that our method achieves superior\nperformance across multiple evaluation metrics. This\nconsistent advantage stems from the inherent limitations of\nconventional transfer learning techniques, which primarily\nfocus on aligning individual transcriptomic features in\nisolation. Such approaches often overlook the critical\nbiological insight that functional abnormalities in tissues\npredominantly emerge from disruptions in gene coexpression networks, rather than from isolated alterations\nin single-gene expression profiles [14]. In contrast, our OTGMA module innovatively addresses this gap by aligning\nST and bulk RNA-seq data at the granular level of gene\nco-expression modules, leveraging both functional and\ncompositional similarities. This design not only preserves\nthe underlying regulatory architecture but also facilitates a\nmore biologically meaningful transfer of knowledge across\n\n4.6. Ablation Study\n\n41821\n\nIn Table 3, we conduct the ablation study to verify the\neffectiveness of different components in our proposed\nBRGMAR. Here, C org and C f un in OTGMA refer to considering the compositional and functional similarities of\ngene modules for domain alignment via optimal transportation, while E sp and E sim correspond to the incorporation\nof spatial units or gene expression profile similarity edge in\nthe DMRGL module. From Table 3, we can derive the following three observations. Firstly, capturing both compositional and functional similarities for gene module alignment is very important since it can enhance the biological relevance and accuracy of the alignment between ST\nand bulk RNA-seq data. Secondly, the DMRGL module\nthat can combine both spatial proximity and gene expression similarity for graph learning can yield more promis-\n\n\fTable 2. Comparison of BRGMAR with Multi-modal and Transfer Learning Methods on (a) BRCA, (b) HCC, and (c) ccRCC datasets\nusing average AUC and F1-score as evaluation metrics.\nDataset Metric\n\nMulti-modal Methods\n\nBRGMAR\n\nTransfer Learning Methods\n\nMEATRD\n\nSTANDS\n\nSTAIG\n\nSTGIC\n\nstMMC\n\nSTEM\n\nDARE-GRAM\n\nLOCIT\n\nBulk2Space\n\nIRAD\n\nBRCA\n\nAUC\nF1\n\n0.801 ± 0.029\n0.775 ± 0.046\n\n0.764 ± 0.047\n0.732 ± 0.079\n\n0.723 ± 0.164\n0.742 ± 0.049\n\n0.756 ± 0.028\n0.738 ± 0.013\n\n0.769 ± 0.069\n0.744 ± 0.023\n\n0.737 ± 0.052\n0.630 ± 0.023\n\n0.721 ± 0.017\n0.742 ± 0.065\n\n0.738 ± 0.033\n0.722 ± 0.084\n\n0.770 ± 0.028\n0.732 ± 0.043\n\n0.740 ± 0.030\n0.735 ± 0.018\n\n0.719 ± 0.039\n0.701 ± 0.115\n\nHCC\n\nAUC\nF1\n\n0.897 ± 0.010\n0.863 ± 0.037\n\n0.861 ± 0.116\n0.838 ± 0.004\n\n0.854 ± 0.015\n0.835 ± 0.056\n\n0.828 ± 0.087\n0.803 ± 0.063\n\n0.803 ± 0.035\n0.749 ± 0.064\n\n0.748 ± 0.050\n0.807 ± 0.104\n\n0.836 ± 0.036\n0.811 ± 0.116\n\n0.732 ± 0.021\n0.807 ± 0.104\n\n0.827 ± 0.095\n0.842 ± 0.051\n\n0.831 ± 0.111\n0.824 ± 0.141\n\n0.816 ± 0.024\n0.807 ± 0.001\n\nccRCC\n\nAUC\nF1\n\n0.724 ± 0.025\n0.732 ± 0.041\n\n0.681 ± 0.012\n0.707 ± 0.039\n\n0.705 ± 0.143\n0.669 ± 0.031\n\n0.651 ± 0.074\n0.703 ± 0.009\n\n0.648 ± 0.091\n0.676 ± 0.106\n\n0.691 ± 0.051\n0.706 ± 0.009\n\n0.704 ± 0.024\n0.705 ± 0.018\n\n0.685 ± 0.022\n0.701 ± 0.057\n\n0.698 ± 0.122\n0.684 ± 0.081\n\n0.663 ± 0.057\n0.709 ± 0.007\n\n0.697 ± 0.084\n0.684 ± 0.031\n\ning AR detection results. Finally, by leveraging dynamic\ngraph construction, BRGMAR discovers latent tissue organization patterns during feature learning, which considerably enhances the model’s detection capability for cancerous regions.\nTable 3. Ablation study for different components in our proposed\nBRGMAR\nOTGMA\n\nDMRGL\n\nBRCA\n\nHCC\n\nccRCC\n\nC org\n\nC f un\n\nE sp\n\nE sim\n\nAUC\n\nF1\n\nAUC\n\nF1\n\nAUC\n\nF1\n\n×\n✓\n×\n✓\n✓\n✓\n\n✓\n×\n×\n✓\n✓\n✓\n\n✓\n✓\n✓\n×\n✓\n✓\n\n✓\n✓\n✓\n✓\n×\n✓\n\n0.767\n0.752\n0.748\n0.763\n0.785\n0.801\n\n0.729\n0.743\n0.714\n0.752\n0.746\n0.775\n\n0.854\n0.877\n0.830\n0.841\n0.860\n0.897\n\n0.833\n0.842\n0.819\n0.795\n0.816\n0.863\n\n0.694\n0.690\n0.643\n0.721\n0.716\n0.724\n\n0.705\n0.710\n0.669\n0.717\n0.723\n0.732\n\nprobabilities according to the optimal transport plan (shown\nin Supplementary Materials) derived from the OTGMA\nmodule. Then, for each pair, we perform KEGG pathway enrichment analysis and visualize the pathways that are\ncommonly enriched in each paired module. As illustrated\nin Fig. 6 ( in Supplementary Materials), for BRCA cohort, the selected bulk–ST pairs underscored core processes\nsuch as cellular signaling regulation, immune–stromal communication, and hormone response. These pathways are\nwell-known to drive tumor-growth [17], influence the tumor\nmicroenvironment [45], and modulate hormone-dependent\noncogenic programs [3] of breast cancer. Additional discussions for other cancer types can be found in the Supplementary Materials.\n\n5. Conclusion\n\n4.7. Parameter Analysis\nIn this section, we discuss the effects of the following key\nparameters in our proposed BRGMAR method: kn : Number of neighbors used to construct the spatial context graph.\nks : Number of neighbors when building the gene similarity\nedge. Nm : Number of generated gene modules in OTGMA.\nNhvg :The number of top highly variable genes.\nAs shown in Fig. 4 in Supplementary Materials, our\nmodel is robust to variations in kn and ks , and with both\nevaluation metrics fluctuating within a small ranges. Furthermore, increasing the number of gene modules Nm initially improves performance, as the model captures finergrained functional patterns for alignment between ST and\nbulk RNA-seq data. The performance stabilizes when\nNm exceeds 10, suggesting that most biologically relevant patterns for AR detection have been adequately captured. For the number of HVGs, we observe that performance improves as the number increases from 3000 to\n5000, then plateaus beyond 5000 genes, indicating that selecting around 5000 HVGs is sufficient to capture the key\ntranscriptional features for optimal performance.\n\n4.8. Results for Module Alignment\nFor each cancer cohort, We first identify the top three bulkST gene module pairs that exhibit the highest matching\n\n41822\n\nIn this study, we introduces BRGMAR, a multi-modal approach for detecting anomalous tissue regions by jointly\nleveraging spatial transcriptomics, bulk RNA-seq, and histology images. Unlike existing methods that focus only on\nmolecular signals in ST, BRGMAR incorporates broader\npatient-level information and visual features to enhance detection sensitivity. Through dynamic multi-relational graph\nlearning, our model captures multiple relationships among\nspots in ST, while the proposed OTGMA module enables\ndiagnostic knowledge transfer from bulk-RNA data. We\nevaluate our method on three public available ST datasets\nfor the purpose of identifying cancerous regions from normal tissues, and the experimental results demonstrate the\nadvantage of our method in comparison with the existing\nstudies. Overall, our study underscores the value of multimodal integration in spatial genomics and opens avenues\nfor more precise and informative cancer diagnostics.\n\nAcknowledgments\nThis work was supported by the National Natural Science Foundation of China (Nos. 62136004, 62272226),\nNational Key R&amp;D Program of China (Grant No.\n2023YFF1204803).\n\n\fReferences\n[1] Sana Ahuja and Sufian Zaheer. Advancements in pathology: Digital transformation, precision medicine, and beyond. Journal of Pathology Informatics, 16:100408, 2025.\n1, 2\n[2] Alma Andersson, Ludvig Larsson, Linnea Stenbeck, Fredrik\nSalmén, Anna Ehinger, Sunny Wu, Ghamdan Al-Eryani,\nDaniel Roden, Alex Swarbrick, Åke Borg, et al. Spatial\ndeconvolution of her2-positive breast tumors reveals novel\nintercellular relationships. bioRxiv, pages 2020–07, 2020. 5\n[3] Carlos L Arteaga and Jeffrey A Engelman. Erbb receptors:\nfrom oncogene discovery to basic science to mechanismbased cancer therapeutics. Cancer cell, 25(3):282–303,\n2014. 8\n[4] Hamidreza Ashayeri, Navid Sobhi, Paweł Pławiak, Siamak\nPedrammehr, Roohallah Alizadehsani, and Ali Jafarizadeh.\nTransfer learning in cancer genetics, mutation detection,\ngene expression analysis, and syndrome recognition. Cancers, 16(11):2138, 2024. 3\n[5] Cosmin I Bercea, Benedikt Wiestler, Daniel Rueckert, and\nJulia A Schnabel. Generalizing unsupervised anomaly detection: towards unbiased pathology screening. In Medical\nImaging with Deep Learning, 2023. 1\n[6] Cosmin I Bercea, Benedikt Wiestler, Daniel Rueckert, and\nJulia A Schnabel. Diffusion models with implicit guidance\nfor medical anomaly detection. In International Conference\non Medical Image Computing and Computer-Assisted Intervention, pages 211–220. Springer, 2024. 6, 1\n[7] Femke H Burgers, Johannes CK van der Mijn, Tom TP Seijkens, Inge Jedema, Axel Bex, and John BAG Haanen. Immunological features of clear-cell renal-cell carcinoma and\nresistance to immune checkpoint inhibitors. Nature Reviews\nNephrology, pages 1–15, 2025. 2\n[8] Debyani Chakravarty and David B Solit. Clinical cancer genomic profiling. Nature Reviews Genetics, 22(8):483–501,\n2021. 3\n[9] Haotian Cui, Chloe Wang, Hassaan Maan, Kuan Pang,\nFengning Luo, Nan Duan, and Bo Wang. scgpt: toward\nbuilding a foundation model for single-cell multi-omics using generative ai. Nature methods, 21(8):1470–1480, 2024.\n5\n[10] Jonas Dippel, Niklas Prenißl, Julius Hense, Philipp Liznerski, Tobias Winterhoff, Simon Schallenberg, Marius Kloft,\nOliver Buchstab, David Horst, Maximilian Alber, et al. Aibased anomaly detection for clinical-grade histopathological\ndiagnostics. Nejm Ai, 1(11):AIoa2400468, 2024. 1, 2\n[11] Kangning Dong and Shihua Zhang. Deciphering spatial domains from spatially resolved transcriptomics with an adaptive graph attention auto-encoder. Nature communications,\n13(1):1739, 2022. 3\n[12] Ruben Dries, Qian Zhu, Rui Dong, Chee-Huat Linus Eng,\nHuipeng Li, Kan Liu, Yuntian Fu, Tianxiao Zhao, Arpan\nSarkar, Feng Bao, et al. Giotto: a toolbox for integrative\nanalysis and visualization of spatial expression data. Genome\nbiology, 22(1):78, 2021. 6, 1\n[13] Donghai Fang and Wenwen Min. Spacross deciphers spatial structures and corrects batch effects in multi-slice spa-\n\ntially resolved transcriptomics. Communications Biology, 8\n(1):1393, 2025. 3\n[14] Chris Gaiteri, Ying Ding, Beverly French, George C Tseng,\nand Etienne Sibille. Beyond modules and hubs: the potential\nof gene coexpression networks for investigating molecular\nmechanisms of complex brain disorders. Genes, brain and\nbehavior, 13(1):13–24, 2014. 7\n[15] Bocheng Gao, Yan Lu, Xingyue Lai, Xi Xu, Shuhua Gou,\nZhida Yang, Yanju Gong, and Hong Yang. Metabolic reprogramming in hepatocellular carcinoma: mechanisms of\nimmune evasion and therapeutic implications. Frontiers in\nImmunology, 16:1592837, 2025. 2\n[16] Qiangqiang Gu, Chady Meroueh, Jacob Levernier, Trynda\nKroneman, Thomas Flotte, and Steven Hart. Using an\nanomaly detection approach for the segmentation of colorectal cancer tumors in whole slide images. Journal of Pathology Informatics, 14:100336, 2023. 1\n[17] Douglas Hanahan and Robert A Weinberg. Hallmarks of\ncancer: the next generation. cell, 144(5):646–674, 2011. 8\n[18] Blaise Hanczar, Victoria Bourgeais, and Farida Zehraoui.\nAssessment of deep learning and transfer learning for cancer\nprediction based on gene expression data. BMC Bioinformatics, 23:262, 2022. 3\n[19] Minsheng Hao, Erpai Luo, Yixin Chen, Yanhong Wu, Chen\nLi, Sijie Chen, Haoxiang Gao, Haiyang Bian, Jin Gu, Lei\nWei, et al. Stem enables mapping of single-cell and spatial\ntranscriptomics data with transfer learning. Communications\nBiology, 7(1):56, 2024. 3, 6, 1\n[20] Rui Hou, Yifan Peng, Lars J Grimm, Yinhao Ren, Maciej A\nMazurowski, Jeffrey R Marks, Lorraine M King, Carlo C\nMaley, E Shelley Hwang, and Joseph Y Lo. Anomaly detection of calcifications in mammography based on 11,000\nnegative cases. IEEE Transactions on Biomedical Engineering, 69(5):1639–1650, 2021. 1\n[21] Gary Hu, Julian Gold, Uthsav Chitra, Sunay Joshi, and Benjamin J Raphael. Anomaly detection in spatial transcriptomics via spatially localized density comparison. Bioinformatics, 41(Supplement 1):i493–i501, 2025. 2\n[22] Wendong Huang, Yaofeng Hu, Lequn Wang, Guangsheng\nWu, Chuanchao Zhang, and Qianqian Shi. Spatially aligned\ngraph transfer learning for characterizing spatial regulatory\nheterogeneity. Briefings in Bioinformatics, 26(1):bbaf021,\n2025. 3\n[23] Benjamin Jessie, Jingchen Liang, Yinan Li, and Babak\nFahimi. High-frequency excitation and surface temperature\nanalysis of breast tissue for detection of anomaly. BioMed\nResearch International, 2023(1):4406235, 2023. 2\n[24] Ziming Jiang, Yanhong Wu, Yuxin Miao, Kaige Deng, Fan\nYang, Shuhuan Xu, Yupeng Wang, Renke You, Lei Zhang,\nYuhan Fan, et al. Hccdb v2. 0: Decompose expression\nvariations by single-cell rna-seq and spatial transcriptomics\nin hcc. Genomics, Proteomics &amp; Bioinformatics, 22(1):\nqzae011, 2024. 5\n[25] Travis S Johnson, Christina Y Yu, Zhi Huang, Siwen\nXu, Tongxin Wang, Chuanpeng Dong, Wei Shao, Mohammad Abu Zaid, Xiaoqing Huang, Yijie Wang, et al. Diagnostic evidence gauge of single cells (degas): a flexible deep\n\n41823\n\n\ftransfer learning framework for prioritizing cells in relation\nto disease. Genome medicine, 14(1):11, 2022. 3\n[26] Yu-Chen Lai and Wei-Ta Chu. Unsupervised anomaly detection on histopathology images using adversarial learning and\nsimulated anomaly. In Annual Conference on Medical Image Understanding and Analysis, pages 357–371. Springer,\n2024. 2\n[27] Bingjun Li, Mostafa Karami, Masum Shah Junayed, and\nSheida Nabavi. Multi-modal spatial clustering for spatial\ntranscriptomics utilizing high-resolution histology images.\nIn 2024 IEEE International Conference on Bioinformatics\nand Biomedicine (BIBM), pages 3469–3474. IEEE Computer Society, 2024. 6, 1\n[28] Le Li, Hudan Pan, Yong Liang, Mingwen Shao, Shengli Xie,\nShanghui Lu, and Shuilin Liao. Pmfn-ssl: Self-supervised\nlearning-based progressive multimodal fusion network for\ncancer diagnosis and prognosis. Knowledge-Based Systems,\n289:111502, 2024. 2\n[29] Jie Liao, Jingyang Qian, Yin Fang, Zhuo Chen, Xiang\nZhuang, Ningyu Zhang, Xin Shao, Yining Hu, Penghui\nYang, Junyun Cheng, et al. De novo analysis of bulk rnaseq data at spatially resolved single-cell resolution. Nature\nCommunications, 13(1):6498, 2022. 3, 6, 1\n[30] Jasper Linmans, Gabriel Raya, Jeroen van der Laak, and\nGeert Litjens. Diffusion models for out-of-distribution detection in digital pathology. Medical Image Analysis, 93:\n103088, 2024. 6, 1\n[31] Jana Lipkova, Richard J Chen, Bowen Chen, Ming Y Lu,\nMatteo Barbieri, Daniel Shao, Anurag J Vaidya, Chengkuan\nChen, Luoting Zhuang, Drew FK Williamson, et al. Artificial intelligence for multimodal data integration in oncology.\nCancer cell, 40(10):1095–1110, 2022. 2\n[32] Wei Liu, Bo Wang, Yuting Bai, Xiao Liang, Li Xue, and Jiawei Luo. Spagic: graph-informed clustering in spatial transcriptomics via self-supervised contrastive learning. Briefings in Bioinformatics, 25(6):bbae578, 2024. 3, 6, 1\n[33] Zhikang Liu, Yiming Zhou, Yuansheng Xu, and Zilei Wang.\nSimplenet: A simple network for image anomaly detection\nand localization. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages\n20402–20411, 2023. 6, 1\n[34] Ming Y Lu, Bowen Chen, Drew FK Williamson, Richard J\nChen, Ivy Liang, Tong Ding, Guillaume Jaume, Igor\nOdintsov, Long Phi Le, Georg Gerber, et al. A visuallanguage foundation model for computational pathology.\nNature medicine, 30(3):863–874, 2024. 3, 4\n[35] Maxime Meylan, Florent Petitprez, Etienne Becht, Antoine\nBougoüin, Guilhem Pupier, Anne Calvez, Ilenia Giglioli,\nVirginie Verkarre, Guillaume Lacroix, Johanna Verneau,\net al. Tertiary lymphoid structures generate and propagate\nanti-tumor antibody-producing plasma cells in renal cell cancer. Immunity, 55(3):527–541, 2022. 5\n[36] Lambda Moses and Lior Pachter. Museum of spatial transcriptomics. Nature methods, 19(5):534–546, 2022. 2\n[37] Ismail Nejjar, Qin Wang, and Olga Fink. Dare-gram: Unsupervised domain adaptation regression by aligning inverse\ngram matrices. In Proceedings of the IEEE/CVF conference\n\n41824\n\non computer vision and pattern recognition, pages 11744–\n11754, 2023. 6, 1\n[38] Jana Nekvindova, Alena Mrkvicova, Veronika Zubanova,\nAlena Hyrslova Vaculova, Pavel Anzenbacher, Pavel\nSoucek, Lenka Radova, Ondrej Slaby, Igor Kiss, Jan Vondracek, et al. Hepatocellular carcinoma: gene expression profiling and regulation of xenobiotic-metabolizing cytochromes p450. Biochemical pharmacology, 177:113912,\n2020. 2\n[39] Hermina Petric Maretic, Mireille El Gheche, Giovanni\nChierchia, and Pascal Frossard. Got: an optimal transport\nframework for graph comparison. Advances in Neural Information Processing Systems, 32, 2019. 4\n[40] Arya Mariam Roy, Renuka Iyer, and Sayan Chakraborty.\nThe extracellular matrix in hepatocellular carcinoma: Mechanisms and therapeutic vulnerability. Cell Reports Medicine,\n4(9), 2023. 2\n[41] Ashis Saha, Yungil Kim, Ariel DH Gewirtz, Brian Jo, Chuan\nGao, Ian C McDowell, Barbara E Engelhardt, Alexis Battle, François Aguet, Kristin G Ardlie, et al. Co-expression\nnetworks reveal the tissue-specific regulation of transcription\nand splicing. Genome research, 27(11):1843–1858, 2017. 2,\n3, 4\n[42] Tom Shenkar and Lior Wolf. Anomaly detection for tabular data with internal contrastive learning. In International\nconference on learning representations, 2022. 2\n[43] Haotian Teng, Ye Yuan, and Ziv Bar-Joseph. Clustering spatial transcriptomics data. Bioinformatics, 38(4):997–1004,\n2022. 3, 6, 1\n[44] Luyi Tian, Fei Chen, and Evan Z Macosko. The expanding\nvistas of spatial transcriptomics. Nature Biotechnology, 41\n(6):773–782, 2023. 2\n[45] Claudia Urueña, Paola Lasso, David Bernal-Estevez, Diego\nRubio, Ana Janeth Salazar, Mercedes Olaya, Alfonso\nBarreto, Mauricio Tawil, Lilian Torregrosa, and Susana\nFiorentino. The breast cancer immune microenvironment is\nmodified by neoadjuvant chemotherapy. Scientific reports,\n12(1):7981, 2022. 8\n[46] Vercruyssen Vincent, Meert Wannes, and Davis Jesse. Transfer learning for anomaly detection through localized and\nunsupervised instance selection. In Proceedings of the\nAAAI Conference on Artificial Intelligence, pages 6054–\n6061, 2020. 6, 1\n[47] Jue Wang, Yunfang Yu, Yujie Tan, Huan Wan, Nafen Zheng,\nZifan He, Luhui Mao, Wei Ren, Kai Chen, Zhen Lin, et al.\nArtificial intelligence enables precision diagnosis of cervical\ncytology grades and cervical cancer. Nature Communications, 15(1):4369, 2024. 1\n[48] Yongfeng Wang, Ci Yin, Lele Geng, and Weiyang Cai. Immune infiltration landscape in clear cell renal cell carcinoma\nimplications. Frontiers in oncology, 10:491621, 2021. 2\n[49] F Alexander Wolf, Philipp Angerer, and Fabian J Theis.\nScanpy: large-scale single-cell gene expression data analysis. Genome biology, 19(1):15, 2018. 3\n[50] Hang Xu, Huazhu Fu, Yahui Long, Kok Siong Ang, Raman\nSethi, Kelvin Chong, Mengwei Li, Rom Uddamvathanak,\nHong Kai Lee, Jingjing Ling, et al. Unsupervised spatially\n\n\fembedded deep representation of spatial transcriptomics.\nGenome Medicine, 16(1):12, 2024. 2, 3, 6, 1\n[51] Kaichen Xu, Yan Lu, Suyang Hou, Kainan Liu, Yihang Du,\nMengqian Huang, Hao Feng, Hao Wu, and Xiaobo Sun.\nDetecting anomalous anatomic regions in spatial transcriptomics with stands. Nature Communications, 15(1):8223,\n2024. 2, 3, 6, 1\n[52] Kaichen Xu, Qilong Wu, Yan Lu, Yinan Zheng, Wenlin Li,\nXingjie Tang, Jun Wang, and Xiaobo Sun. Meatrd: Multimodal anomalous tissue region detection enhanced with spatial transcriptomics. In Proceedings of the AAAI Conference\non Artificial Intelligence, pages 12918–12926, 2025. 3, 6, 1\n[53] Yitao Yang, Yang Cui, Xin Zeng, Yubo Zhang, Martin Loza,\nSung-Joon Park, and Kenta Nakai. Staig: Spatial transcriptomics analysis via image-aided graph contrastive learning\nfor domain exploration and alignment-free integration. Nature Communications, 16(1):1067, 2025. 6, 1\n[54] Ziyi Yang, Iman Soltani, and Eric Darve. Anomaly detection\nwith domain adaptation. In Proceedings of the IEEE/CVF\nConference on Computer Vision and Pattern Recognition,\npages 2958–2967, 2023. 6, 1\n[55] Qingyan Yin, Wangwang Chen, Chunxia Zhang, and Zhi\nWei. A convolutional neural network model for survival\nprediction based on prognosis-related cascaded wx feature\nselection. Laboratory Investigation, 102(10):1064–1074,\n2022. 3\n[56] Philip Zehnder, Jeffrey Feng, Reina N Fuji, Ruth Sullivan,\nand Fangyao Hu. Multiscale generative model using regularized skip-connections and perceptual loss for anomaly detection in toxicologic histopathology. Journal of Pathology\nInformatics, 13:100102, 2022. 2\n[57] Chen Zhang, Junhui Gao, Hong-Yu Chen, Lingxin Kong,\nGuangshuo Cao, Xiangyu Guo, Wei Liu, Bin Ren, and DongQing Wei. Stgic: A graph and image convolution-based\nmethod for spatial transcriptomic clustering. PLOS Computational Biology, 20(2):e1011935, 2024. 6, 1\n[58] Shaosen Zhang, Xinyi Xiao, Yonglin Yi, Xinyu Wang,\nLingxuan Zhu, Yanrong Shen, Dongxin Lin, and Chen Wu.\nTumor initiation and early tumorigenesis: molecular mechanisms and interventional targets. Signal transduction and\ntargeted therapy, 9(1):149, 2024. 1\n[59] Ran Zhou, Gaoxia Yang, Yan Zhang, and Yuan Wang. Spatial transcriptomics in development and disease. Molecular\nBiomedicine, 4(1):32, 2023. 3\n[60] Ran Zhou, Xiwen Tang, and Yuan Wang. Emerging strategies to investigate the biology of early cancer. Nature Reviews Cancer, 24(12):850–866, 2024. 1\n[61] Igor Zingman, Birgit Stierstorfer, Charlotte Lempp, and\nFabian Heinemann. Learning image representations for\nanomaly detection: application to discovery of histological\nalterations in drug development. Medical Image Analysis,\n92:103067, 2024. 1, 2, 6\n[62] Yun Zuo, Bangyi Zhang, Wenying He, Yue Bi, Xiangrong\nLiu, Xiangxiang Zeng, and Zhaohong Deng. Mslocpred:\ndeep transfer learning-based identification of multi-label\nmrna subcellular localization. Briefings in Bioinformatics,\n25(6):bbae504, 2024. 2\n\n41825\n\n\f</code></pre></article>\n        \n</main>\n\n<script src=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/katex.min.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/katex@0.16.8/dist/contrib/auto-render.min.js\"></script>\n<script>\n\nfunction initTheme() {\n  const saved = localStorage.getItem('kb-theme') || 'light';\n  document.documentElement.setAttribute('data-theme', saved);\n  updateThemeIcon(saved);\n}\nfunction toggleTheme() {\n  const cur = document.documentElement.getAttribute('data-theme') || 'light';\n  const next = cur === 'light' ? 'dark' : 'light';\n  document.documentElement.setAttribute('data-theme', next);\n  localStorage.setItem('kb-theme', next);\n  updateThemeIcon(next);\n}\nfunction updateThemeIcon(t) {\n  const btn = document.getElementById('theme-toggle-btn');\n  if (btn) btn.innerHTML = t === 'dark' ? '☀️' : '🌙';\n}\ndocument.addEventListener('DOMContentLoaded', initTheme);\n\nfunction setViewMode(m) {\n  const grid = document.getElementById('bento-grid-view');\n  const list = document.getElementById('list-table-view');\n  const bGrid = document.getElementById('view-grid-btn');\n  const bList = document.getElementById('view-list-btn');\n  if (m === 'list') {\n    if (grid) grid.style.display = 'none';\n    if (list) list.style.display = 'flex';\n    if (bGrid) bGrid.classList.remove('active');\n    if (bList) bList.classList.add('active');\n  } else {\n    if (grid) grid.style.display = 'grid';\n    if (list) list.style.display = 'none';\n    if (bGrid) bGrid.classList.add('active');\n    if (bList) bList.classList.remove('active');\n  }\n  localStorage.setItem('kb-view', m);\n}\ndocument.addEventListener('DOMContentLoaded', () => {\n  const s = localStorage.getItem('kb-view') || 'grid';\n  setViewMode(s);\n});\n\ndocument.addEventListener('DOMContentLoaded', () => {\n  document.querySelectorAll('pre').forEach(pre => {\n    const b = document.createElement('button');\n    b.className = 'copy-code-btn';\n    b.innerText = 'Copy';\n    b.onclick = () => {\n      const c = pre.querySelector('code') ? pre.querySelector('code').innerText : pre.innerText;\n      navigator.clipboard.writeText(c).then(() => {\n        b.innerText = 'Copied!';\n        setTimeout(() => { b.innerText = 'Copy'; }, 2000);\n      });\n    };\n    pre.appendChild(b);\n  });\n});\n\nwindow.addEventListener('keydown', (e) => {\n  if ((e.key === '/' || (e.metaKey && e.key === 'k')) && document.activeElement.tagName !== 'INPUT' && document.activeElement.tagName !== 'TEXTAREA') {\n    e.preventDefault();\n    const q = document.getElementById('global-search-input');\n    if (q) q.focus();\n  }\n});\n\n// Scrollspy for TOC\nwindow.addEventListener('scroll', () => {\n  const headers = document.querySelectorAll('.article-body h1, .article-body h2, .article-body h3');\n  const scrollPos = window.scrollY + 100;\n  headers.forEach(h => {\n    if (h.offsetTop <= scrollPos) {\n      const id = h.getAttribute('id');\n      if (id) {\n        document.querySelectorAll('.reading-sidebar a').forEach(a => {\n          a.classList.toggle('active', a.getAttribute('href') === '#' + id);\n        });\n      }\n    }\n  });\n});\n\ndocument.addEventListener(\"DOMContentLoaded\", function() {\n  if (window.renderMathInElement) {\n    renderMathInElement(document.body, {\n      delimiters: [\n        {left: '$$', right: '$$', display: true},\n        {left: '$', right: '$', display: false},\n      ],\n      throwOnError : false\n    });\n  }\n});\n</script>\n\n</body>\n</html>\n"