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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Ralph26 Comprehensive Summary: PFAM Module K-Sweep and Target-Aware Feature Selection
|
| 2 |
+
|
| 3 |
+
**Date:** 2026-02-12
|
| 4 |
+
**Provenance:** Compiled from results of Tasks 1-9, all using real data from TARA-Oceans metagenomic assemblies
|
| 5 |
+
**Scripts:** `/media/drn2/External/TARA-Oceans/03_analyses/WorldModelApp/scripts/ralph26_task{1..9}_*.py`
|
| 6 |
+
|
| 7 |
+
---
|
| 8 |
+
|
| 9 |
+
## Executive Summary
|
| 10 |
+
|
| 11 |
+
**VERDICT: NEGATIVE** — No PFAM genomic representation achieves significant complementary signal for POC prediction beyond environmental features. Across 8 module resolutions, 3 target-aware feature sets, within-fold leakage-free selection, residual prediction, ratio target engineering, and regional subsetting, zero comparisons achieve p < 0.05 for POC. The best representation (k=40 modules, dR2 = +0.040) does not survive permutation testing (empirical p = 0.199). The joint embedding analysis for POC should be reframed as a negative but informative result.
|
| 12 |
+
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+
## 1. Module K-Sweep (Task 3)
|
| 16 |
+
|
| 17 |
+
Env-only baseline: R2 = 0.631 +/- 0.239 (9-fold spatial CV, n=1,151 bio-valid samples)
|
| 18 |
+
|
| 19 |
+
| k | dR2 | t-pval | Wilcoxon p | Cohen's d | 95% CI | Folds+ |
|
| 20 |
+
|----|---------|--------|------------|-----------|----------------------|--------|
|
| 21 |
+
| 5 | -0.012 | 0.750 | 1.000 | -0.110 | [-0.097, +0.073] | 5/9 |
|
| 22 |
+
| 8 | -0.049 | 0.492 | 1.000 | -0.240 | [-0.206, +0.108] | 6/9 |
|
| 23 |
+
| 10 | +0.013 | 0.644 | 0.496 | +0.160 | [-0.048, +0.073] | 6/9 |
|
| 24 |
+
| 15 | -0.007 | 0.886 | 0.652 | -0.049 | [-0.115, +0.102] | 6/9 |
|
| 25 |
+
| 20 | -0.093 | 0.157 | 0.129 | -0.521 | [-0.231, +0.045] | 2/9 |
|
| 26 |
+
| 30 | -0.530 | 0.364 | 0.820 | -0.321 | [-1.800, +0.740] | 4/9 |
|
| 27 |
+
| 40 | +0.040 | 0.471 | 0.496 | +0.252 | [-0.081, +0.161] | 6/9 |
|
| 28 |
+
| 50 | +0.025 | 0.670 | 0.301 | +0.148 | [-0.106, +0.157] | 6/9 |
|
| 29 |
+
|
| 30 |
+
**Finding:** No k value achieves significance. Best: k=40 (dR2 = +0.040, p = 0.47). k=20 (the original Ralph23 choice) is among the worst (dR2 = -0.093). k=30 is catastrophic (mean R2 = 0.10 due to one extreme fold).
|
| 31 |
+
|
| 32 |
+
---
|
| 33 |
+
|
| 34 |
+
## 2. POC-Correlated Feature Selection (Task 4, with leakage)
|
| 35 |
+
|
| 36 |
+
| Feature Set | N | dR2 | t-pval | Wilcoxon p | Cohen's d | Folds+ |
|
| 37 |
+
|-------------|------|---------|--------|------------|-----------|--------|
|
| 38 |
+
| top20 | 20 | -0.075 | 0.434 | 0.734 | -0.275 | 3/9 |
|
| 39 |
+
| top50 | 50 | +0.017 | 0.623 | 0.652 | +0.171 | 4/9 |
|
| 40 |
+
| top100 | 100 | -0.034 | 0.398 | 1.000 | -0.298 | 5/9 |
|
| 41 |
+
|
| 42 |
+
**Finding:** Even with leaked feature selection (upper bound), no improvement. Best: top50 (dR2 = +0.017, p = 0.62).
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
## 3. Within-Fold Feature Selection (Task 5, leakage-free)
|
| 47 |
+
|
| 48 |
+
| Config | N | dR2 | t-pval | Wilcoxon p | Cohen's d | Folds+ | Jaccard |
|
| 49 |
+
|-----------------|-----|---------|--------|------------|-----------|--------|---------|
|
| 50 |
+
| within-fold 50 | 50 | +0.015 | 0.738 | 0.164 | +0.115 | 7/9 | 0.744 |
|
| 51 |
+
|
| 52 |
+
**Finding:** Leakage-free result (dR2 = +0.015, p = 0.74) confirms Task 4 finding. High Jaccard similarity (0.744) means the same ~31 core PFAMs are consistently selected across folds, but their signal is already captured by environmental features.
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
## 4. Residual Prediction (Task 6)
|
| 57 |
+
|
| 58 |
+
| Config | N | Mean R2 (residuals) | t-pval (one-sided) | Folds R2>0 |
|
| 59 |
+
|-------------|-----|---------------------|---------------------|------------|
|
| 60 |
+
| modules_k40 | 40 | -11.01 | 0.859 | 1/9 |
|
| 61 |
+
| poc_top50 | 50 | -4.45 | 0.935 | 0/9 |
|
| 62 |
+
|
| 63 |
+
**Finding:** DEFINITIVELY NEGATIVE. PFAM features cannot predict env-only POC residuals. Mean R2 values are massively negative (worse than predicting mean residual). No complementary signal exists.
|
| 64 |
+
|
| 65 |
+
---
|
| 66 |
+
|
| 67 |
+
## 5. Ratio Target Engineering (Task 7)
|
| 68 |
+
|
| 69 |
+
Target: log2(POC / Chl-a) — the "dark carbon" ratio
|
| 70 |
+
|
| 71 |
+
| Config | N | dR2 | t-pval | Wilcoxon p | Cohen's d | Folds+ |
|
| 72 |
+
|-----------------|-----|---------|--------|------------|-----------|--------|
|
| 73 |
+
| env_modules_k40 | 40 | +0.005 | 0.798 | 0.910 | +0.088 | 5/9 |
|
| 74 |
+
| env_poc_top50 | 50 | +0.015 | 0.499 | 0.652 | +0.236 | 6/9 |
|
| 75 |
+
|
| 76 |
+
**Finding:** Ratio target does not rescue PFAM signal. The "dark carbon" hypothesis is not supported.
|
| 77 |
+
|
| 78 |
+
---
|
| 79 |
+
|
| 80 |
+
## 6. Regional Subsetting (Task 8)
|
| 81 |
+
|
| 82 |
+
| Region | Config | dR2 | t-pval | Cohen's d | Folds+ |
|
| 83 |
+
|----------|-------------|---------|--------|-----------|--------|
|
| 84 |
+
| Atlantic | modules_k40 | +0.002 | 0.987 | +0.011 | 1/3 |
|
| 85 |
+
| Atlantic | poc_top50 | -0.156 | 0.358 | -0.684 | 1/3 |
|
| 86 |
+
| Pacific | modules_k40 | -0.079 | 0.154 | -1.294 | 0/3 |
|
| 87 |
+
| Pacific | poc_top50 | -3.590 | 0.426 | -0.573 | 2/3 |
|
| 88 |
+
|
| 89 |
+
**Finding:** No basin-specific PFAM signal for POC. Atlantic flat, Pacific actively harmful.
|
| 90 |
+
|
| 91 |
+
---
|
| 92 |
+
|
| 93 |
+
## 7. Permutation Test on Best Representation (Task 9)
|
| 94 |
+
|
| 95 |
+
Best: modules_k40 (Task 3, dR2 = +0.040)
|
| 96 |
+
|
| 97 |
+
| Metric | Value |
|
| 98 |
+
|----------------------|----------|
|
| 99 |
+
| Observed dR2 (fast) | +0.054 |
|
| 100 |
+
| Null mean | +0.003 |
|
| 101 |
+
| Null std | 0.106 |
|
| 102 |
+
| N permutations | 1,000 |
|
| 103 |
+
| N exceeding observed | 198 |
|
| 104 |
+
| **Empirical p-value**| **0.199**|
|
| 105 |
+
| Z-score | +0.48 |
|
| 106 |
+
|
| 107 |
+
**Finding:** NOT SIGNIFICANT. 198/1000 random permutations produced dR2 >= observed. The best PFAM representation is indistinguishable from chance.
|
| 108 |
+
|
| 109 |
+
---
|
| 110 |
+
|
| 111 |
+
## Comprehensive Verdict
|
| 112 |
+
|
| 113 |
+
### Evidence Table (POC only, all analyses)
|
| 114 |
+
|
| 115 |
+
| Task | Analysis | dR2 | p-value | Significant? |
|
| 116 |
+
|------|----------------------------------|---------|---------|--------------|
|
| 117 |
+
| 3 | K-sweep: k=5 | -0.012 | 0.750 | No |
|
| 118 |
+
| 3 | K-sweep: k=8 | -0.049 | 0.492 | No |
|
| 119 |
+
| 3 | K-sweep: k=10 | +0.013 | 0.644 | No |
|
| 120 |
+
| 3 | K-sweep: k=15 | -0.007 | 0.886 | No |
|
| 121 |
+
| 3 | K-sweep: k=20 | -0.093 | 0.157 | No |
|
| 122 |
+
| 3 | K-sweep: k=30 | -0.530 | 0.364 | No |
|
| 123 |
+
| 3 | K-sweep: k=40 (best overall) | +0.040 | 0.471 | No |
|
| 124 |
+
| 3 | K-sweep: k=50 | +0.025 | 0.670 | No |
|
| 125 |
+
| 4 | POC-correlated top20 (leaked) | -0.075 | 0.434 | No |
|
| 126 |
+
| 4 | POC-correlated top50 (leaked) | +0.017 | 0.623 | No |
|
| 127 |
+
| 4 | POC-correlated top100 (leaked) | -0.034 | 0.398 | No |
|
| 128 |
+
| 5 | Within-fold top50 (leakage-free) | +0.015 | 0.738 | No |
|
| 129 |
+
| 6 | Residual: modules_k40 | R2=-11 | 0.859 | No |
|
| 130 |
+
| 6 | Residual: poc_top50 | R2=-4.5 | 0.935 | No |
|
| 131 |
+
| 7 | Ratio target: modules_k40 | +0.005 | 0.798 | No |
|
| 132 |
+
| 7 | Ratio target: poc_top50 | +0.015 | 0.499 | No |
|
| 133 |
+
| 8 | Atlantic: modules_k40 | +0.002 | 0.987 | No |
|
| 134 |
+
| 8 | Atlantic: poc_top50 | -0.156 | 0.358 | No |
|
| 135 |
+
| 8 | Pacific: modules_k40 | -0.079 | 0.154 | No |
|
| 136 |
+
| 8 | Pacific: poc_top50 | -3.590 | 0.426 | No |
|
| 137 |
+
| 9 | Permutation test: modules_k40 | +0.040 | 0.199 | No |
|
| 138 |
+
|
| 139 |
+
**Total: 0/21 comparisons significant at p < 0.05.**
|
| 140 |
+
|
| 141 |
+
### Decision: NEGATIVE
|
| 142 |
+
|
| 143 |
+
The PFAM genomic signal does not provide complementary information for ocean productivity (POC) prediction beyond what environmental features already capture. This conclusion holds across:
|
| 144 |
+
- 8 module resolutions (k = 5 to 50)
|
| 145 |
+
- 3 pre-selected POC-correlated feature sets (with and without leakage control)
|
| 146 |
+
- Leakage-free within-fold feature selection
|
| 147 |
+
- Residual prediction (env-only unexplained variance)
|
| 148 |
+
- Ratio target engineering (POC:Chl-a)
|
| 149 |
+
- Regional subsetting (Atlantic and Pacific separately)
|
| 150 |
+
- 1000-permutation significance test
|
| 151 |
+
|
| 152 |
+
### Manuscript Recommendation
|
| 153 |
+
|
| 154 |
+
**NEGATIVE verdict: reframe the joint embedding section as a well-characterized negative result.**
|
| 155 |
+
|
| 156 |
+
1. **Results section:** Remove or drastically reduce the joint embedding paragraph for POC. Keep 1-2 sentences stating the k-sweep and target-aware feature selection were performed, with the negative finding. The Chl-a and NFLH results (env-only vs env+PFAM) remain the focus.
|
| 157 |
+
|
| 158 |
+
2. **Discussion section:** Reframe the POC paragraph as an informative negative:
|
| 159 |
+
- The 9,064 PFAM domains with measurable POC correlations (140 at |rho| > 0.2) demonstrate genuine biological association
|
| 160 |
+
- However, this association is fully mediated by shared environmental drivers (SST, MLD, nutrients)
|
| 161 |
+
- Once environmental features are included, PFAM features add no complementary predictive signal
|
| 162 |
+
- This was tested exhaustively across 8 module resolutions, target-aware selection, ratio targets, residual prediction, and regional subsetting (0/21 comparisons significant)
|
| 163 |
+
|
| 164 |
+
3. **Supplement:** Move the comprehensive Ralph26 analysis summary to supplementary material as evidence of thorough investigation.
|
| 165 |
+
|
| 166 |
+
4. **What NOT to claim:** Do not claim "PFAM domains are unrelated to POC" — they are correlated. The correct framing is that their POC-predictive information is redundant with environmental features.
|
| 167 |
+
|
| 168 |
+
---
|
| 169 |
+
|
| 170 |
+
## Key Scientific Insight
|
| 171 |
+
|
| 172 |
+
The within-fold selection analysis (Task 5) reveals the mechanism of the negative result: 31 core PFAM domains are consistently the most POC-correlated across all spatial folds (Jaccard = 0.744), and all are negatively correlated (higher PFAM abundance = lower POC). This likely reflects oligotrophic communities with diverse protein domains but low productivity — a pattern already captured by SST, MLD, and nutrient concentrations. The PFAM-POC correlation is real but environmentally confounded.
|