Spaces:
Paused
Paused
Merge branch 'main' of https://github.com/YR-1/GNN-web into rq-branch4
Browse files- README.md +1 -1
- backend/app/api/analytics.py +1 -1
- backend/app/services/database.py +6 -6
- backend/static/brain_plots/emotsupp_importance_3d.html +0 -0
- backend/static/brain_plots/emotsupp_importance_4panel.png +2 -2
- frontend/app/(dashboard)/dashboard/page.tsx +7 -7
- frontend/app/(dashboard)/history/page.tsx +1 -1
- frontend/lib/model-performance-data.ts +1 -1
- frontend/lib/score-registry.ts +1 -1
README.md
CHANGED
|
@@ -10,7 +10,7 @@ pinned: false
|
|
| 10 |
|
| 11 |
# Project README
|
| 12 |
|
| 13 |
-
## What This Project
|
| 14 |
|
| 15 |
This project is a web app that lets users upload ROI time-series data (.txt) and view a correlation matrix with stats and history.
|
| 16 |
|
|
|
|
| 10 |
|
| 11 |
# Project README
|
| 12 |
|
| 13 |
+
## What This Project Doessss
|
| 14 |
|
| 15 |
This project is a web app that lets users upload ROI time-series data (.txt) and view a correlation matrix with stats and history.
|
| 16 |
|
backend/app/api/analytics.py
CHANGED
|
@@ -44,7 +44,7 @@ MODEL_PERFORMANCE_SEEDS = [
|
|
| 44 |
("listsort_ageadj", "ListSort (Age Adjusted)", 0.882, 0.00041, 3.28, 1.2),
|
| 45 |
("pmat", "PMAT (Fluid Intelligence)", 0.844, 0.00073, 3.71, 2.4),
|
| 46 |
("picseq", "PicSeq (Picture Sequence Memory)", 0.806, 0.00124, 4.09, 3.1),
|
| 47 |
-
("emotsupp_unadj", "
|
| 48 |
("psqi", "PSQI (Sleep Quality)", 0.747, 0.00301, 5.13, 6.2),
|
| 49 |
]
|
| 50 |
|
|
|
|
| 44 |
("listsort_ageadj", "ListSort (Age Adjusted)", 0.882, 0.00041, 3.28, 1.2),
|
| 45 |
("pmat", "PMAT (Fluid Intelligence)", 0.844, 0.00073, 3.71, 2.4),
|
| 46 |
("picseq", "PicSeq (Picture Sequence Memory)", 0.806, 0.00124, 4.09, 3.1),
|
| 47 |
+
("emotsupp_unadj", "EmotSupp (Emotional Support)", 0.769, 0.00215, 4.85, 5.4),
|
| 48 |
("psqi", "PSQI (Sleep Quality)", 0.747, 0.00301, 5.13, 6.2),
|
| 49 |
]
|
| 50 |
|
backend/app/services/database.py
CHANGED
|
@@ -194,7 +194,7 @@ class SupabaseDbService:
|
|
| 194 |
"listsort_ageadj": "listsort_fbnetgen_importance_top100.json",
|
| 195 |
"pmat": "pmat_braingnn_importance_top100.json",
|
| 196 |
"picseq": "picseq_fbnetgen_importance_top100.json",
|
| 197 |
-
"
|
| 198 |
"emotsupp_unadj": "emotsupp_reggnn_importance_top100.json",
|
| 199 |
"psqi": "psqi_reggnn_importance_top100.json",
|
| 200 |
}
|
|
@@ -653,11 +653,11 @@ async def get_dashboard_stats(user_id: str) -> Dict[str, Any]:
|
|
| 653 |
"range": [50.0, 150.0],
|
| 654 |
"defaultInsight": "Picture-sequence memory patterns reflect distributed episodic-memory and associative network coordination.",
|
| 655 |
},
|
| 656 |
-
"
|
| 657 |
-
"label": "
|
| 658 |
-
"shortLabel": "
|
| 659 |
"range": [0.0, 100.0],
|
| 660 |
-
"defaultInsight": "
|
| 661 |
},
|
| 662 |
"psqi": {
|
| 663 |
"label": "PSQI (Sleep Quality)",
|
|
@@ -668,7 +668,7 @@ async def get_dashboard_stats(user_id: str) -> Dict[str, Any]:
|
|
| 668 |
}
|
| 669 |
metric_aliases = {
|
| 670 |
"sustained_attention": "picseq",
|
| 671 |
-
"emotsupp_unadj": "
|
| 672 |
}
|
| 673 |
|
| 674 |
uploads_resp = (
|
|
|
|
| 194 |
"listsort_ageadj": "listsort_fbnetgen_importance_top100.json",
|
| 195 |
"pmat": "pmat_braingnn_importance_top100.json",
|
| 196 |
"picseq": "picseq_fbnetgen_importance_top100.json",
|
| 197 |
+
"emotsupp_unadj": "emotsupp_reggnn_importance_top100.json",
|
| 198 |
"emotsupp_unadj": "emotsupp_reggnn_importance_top100.json",
|
| 199 |
"psqi": "psqi_reggnn_importance_top100.json",
|
| 200 |
}
|
|
|
|
| 653 |
"range": [50.0, 150.0],
|
| 654 |
"defaultInsight": "Picture-sequence memory patterns reflect distributed episodic-memory and associative network coordination.",
|
| 655 |
},
|
| 656 |
+
"emotsupp_unadj": {
|
| 657 |
+
"label": "EmotSupp (Emotional Support)",
|
| 658 |
+
"shortLabel": "EmotSupp",
|
| 659 |
"range": [0.0, 100.0],
|
| 660 |
+
"defaultInsight": "Perceived emotional support reflects default-mode and limbic coordination.",
|
| 661 |
},
|
| 662 |
"psqi": {
|
| 663 |
"label": "PSQI (Sleep Quality)",
|
|
|
|
| 668 |
}
|
| 669 |
metric_aliases = {
|
| 670 |
"sustained_attention": "picseq",
|
| 671 |
+
"emotsupp_unadj": "emotsupp_unadj",
|
| 672 |
}
|
| 673 |
|
| 674 |
uploads_resp = (
|
backend/static/brain_plots/emotsupp_importance_3d.html
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
backend/static/brain_plots/emotsupp_importance_4panel.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
frontend/app/(dashboard)/dashboard/page.tsx
CHANGED
|
@@ -116,19 +116,19 @@ const DASHBOARD_METRICS: DashboardMetric[] = [
|
|
| 116 |
],
|
| 117 |
},
|
| 118 |
{
|
| 119 |
-
id: '
|
| 120 |
-
label: '
|
| 121 |
-
shortLabel: '
|
| 122 |
range: [0, 100],
|
| 123 |
average: 77,
|
| 124 |
trend: 4.2,
|
| 125 |
-
accent: '#
|
| 126 |
-
accentSoft: '#
|
| 127 |
distribution: [29, 36, 42, 48, 54, 60, 66, 71, 77, 81, 84, 88, 91, 94, 97],
|
| 128 |
cohortSplit: [72.8, 80.9],
|
| 129 |
confidence: 0.88,
|
| 130 |
reliability: 'Moderate-high confidence',
|
| 131 |
-
insight: '
|
| 132 |
topRegions: [
|
| 133 |
{ name: 'Amygdala', contribution: 91 },
|
| 134 |
{ name: 'Temporal Cortex', contribution: 84 },
|
|
@@ -165,7 +165,7 @@ const METRIC_VISUALS: Record<string, Pick<DashboardMetric, 'accent' | 'accentSof
|
|
| 165 |
listsort_ageadj: { accent: '#3B82F6', accentSoft: '#DBEAFE' },
|
| 166 |
pmat: { accent: '#8B5CF6', accentSoft: '#EDE9FE' },
|
| 167 |
picseq: { accent: '#EC4899', accentSoft: '#FCE7F3' },
|
| 168 |
-
|
| 169 |
psqi: { accent: '#F97316', accentSoft: '#FFEDD5' },
|
| 170 |
}
|
| 171 |
|
|
|
|
| 116 |
],
|
| 117 |
},
|
| 118 |
{
|
| 119 |
+
id: 'emotsupp_unadj',
|
| 120 |
+
label: 'EmotSupp (Emotional Support)',
|
| 121 |
+
shortLabel: 'EmotSupp',
|
| 122 |
range: [0, 100],
|
| 123 |
average: 77,
|
| 124 |
trend: 4.2,
|
| 125 |
+
accent: '#ef4444',
|
| 126 |
+
accentSoft: '#fee2e2',
|
| 127 |
distribution: [29, 36, 42, 48, 54, 60, 66, 71, 77, 81, 84, 88, 91, 94, 97],
|
| 128 |
cohortSplit: [72.8, 80.9],
|
| 129 |
confidence: 0.88,
|
| 130 |
reliability: 'Moderate-high confidence',
|
| 131 |
+
insight: 'Perceived emotional support reflects default-mode and limbic-prefrontal coordination linked to social cognition.',
|
| 132 |
topRegions: [
|
| 133 |
{ name: 'Amygdala', contribution: 91 },
|
| 134 |
{ name: 'Temporal Cortex', contribution: 84 },
|
|
|
|
| 165 |
listsort_ageadj: { accent: '#3B82F6', accentSoft: '#DBEAFE' },
|
| 166 |
pmat: { accent: '#8B5CF6', accentSoft: '#EDE9FE' },
|
| 167 |
picseq: { accent: '#EC4899', accentSoft: '#FCE7F3' },
|
| 168 |
+
emotsupp_unadj: { accent: '#EF4444', accentSoft: '#FEE2E2' },
|
| 169 |
psqi: { accent: '#F97316', accentSoft: '#FFEDD5' },
|
| 170 |
}
|
| 171 |
|
frontend/app/(dashboard)/history/page.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import Link from 'next/link'
|
|
| 4 |
import { useRouter } from 'next/navigation'
|
| 5 |
import { useEffect, useMemo, useState } from 'react'
|
| 6 |
import { createPortal } from 'react-dom'
|
| 7 |
-
import { AlertTriangle, ArrowUpDown, Check, ChevronDown, Download, MoreVertical, Search,
|
| 8 |
import { api } from '@/lib/api'
|
| 9 |
import type { AnalysisResponse, HistoryItem } from '@/lib/types'
|
| 10 |
import { useAnalysisStore } from '@/lib/store'
|
|
|
|
| 4 |
import { useRouter } from 'next/navigation'
|
| 5 |
import { useEffect, useMemo, useState } from 'react'
|
| 6 |
import { createPortal } from 'react-dom'
|
| 7 |
+
import { AlertTriangle, ArrowUpDown, Check, ChevronDown, Download, MoreVertical, Search, Trash2, X } from 'lucide-react'
|
| 8 |
import { api } from '@/lib/api'
|
| 9 |
import type { AnalysisResponse, HistoryItem } from '@/lib/types'
|
| 10 |
import { useAnalysisStore } from '@/lib/store'
|
frontend/lib/model-performance-data.ts
CHANGED
|
@@ -53,7 +53,7 @@ export const modelPerformanceData: ModelPerformance[] = [
|
|
| 53 |
},
|
| 54 |
{
|
| 55 |
id: 'emotsupp_unadj',
|
| 56 |
-
behavioralScore: '
|
| 57 |
correlation: 0.769,
|
| 58 |
pValue: 0.00215,
|
| 59 |
mse: 4.85,
|
|
|
|
| 53 |
},
|
| 54 |
{
|
| 55 |
id: 'emotsupp_unadj',
|
| 56 |
+
behavioralScore: 'EmotSupp (Emotional Support)',
|
| 57 |
correlation: 0.769,
|
| 58 |
pValue: 0.00215,
|
| 59 |
mse: 4.85,
|
frontend/lib/score-registry.ts
CHANGED
|
@@ -83,7 +83,7 @@ export const SCORE_REGISTRY: ScoreDefinition[] = [
|
|
| 83 |
},
|
| 84 |
{
|
| 85 |
id: 'emotsupp_unadj',
|
| 86 |
-
name: '
|
| 87 |
shortName: 'Emotion',
|
| 88 |
category: 'emotion',
|
| 89 |
description: 'Ability to receive emotional support from others.',
|
|
|
|
| 83 |
},
|
| 84 |
{
|
| 85 |
id: 'emotsupp_unadj',
|
| 86 |
+
name: 'EmotSupp (Emotional Support)',
|
| 87 |
shortName: 'Emotion',
|
| 88 |
category: 'emotion',
|
| 89 |
description: 'Ability to receive emotional support from others.',
|