import React, { useState } from 'react'; import { OrganType } from '../types'; import { GTEX_ORGAN_PROFILES } from '../utils/siderDataset'; import { ResponsiveContainer, BarChart, Bar, XAxis, YAxis, Tooltip, CartesianGrid } from 'recharts'; import { Database, Dna, Activity, Cpu, Layers, Info, BarChart2 } from 'lucide-react'; export const OrganProfilesPanel: React.FC = () => { const [selectedOrgan, setSelectedOrgan] = useState('liver'); const profile = GTEX_ORGAN_PROFILES[selectedOrgan]; // Map 128-dim gene expression vector to 20 sampled feature buckets for clean visualization const sampledExpressionData = profile.geneExpressionValues.slice(0, 20).map((val, idx) => ({ geneDim: `Dim ${idx + 1}`, expression: Number(val.toFixed(2)) })); const organList: { id: OrganType; icon: string; title: string }[] = [ { id: 'liver', icon: '🫀', title: 'Liver (Hepatic)' }, { id: 'heart', icon: '❤️', title: 'Heart (Cardiac)' }, { id: 'kidney', icon: '🩺', title: 'Kidney (Renal)' }, { id: 'brain', icon: '🧠', title: 'Brain (Central Nervous)' }, { id: 'lung', icon: '🫁', title: 'Lung (Pulmonary)' }, ]; return (
{/* Header */}

GTEx V8 Human Organ Transcriptomic Profiles

RNA-Seq Gene Expression Profiles across 5 Primary Human Organs

{/* Organ Selector Chips */}
{organList.map((item) => ( ))}
{/* Main Organ Details Grid */}
{/* Left Column: Marker Genes & Details */}
{selectedOrgan === 'liver' ? '🫀' : selectedOrgan === 'heart' ? '❤️' : selectedOrgan === 'kidney' ? '🩺' : selectedOrgan === 'brain' ? '🧠' : '🫁'}

{profile.name}

GTEx V8 ID: gtex_{profile.id}_v8

{profile.description}

{/* Key Marker Genes */}
Top GTEx Marker & Target Genes:
{profile.markerGenes.map((gene, idx) => ( {gene} ))}
16-Head Cross-Attention Mechanism:

EpiADR-Net projects the 128-dimensional expression vector of this organ into key/value attention heads, cross-querying SMILES atomic feature embeddings to predict tissue-conditioned toxicity.

{/* Right Column: 128-dim Expression Vector Visualizer */}

RNA-Seq Expression Vector Distribution

128-Dim Vector

Showing sampled dimensions 1-20 of 128-dim normalized GTEx V8 transcriptomic organ expression vector.

); };