==============================================================================
STRATIFIED COMPARISON: PROVIRUS-ENCODED (n=1,054) vs VIRAL-CONTIG-ENCODED (n=532)
Prophage lysin discovery project, 2026-11-06
Source topology from geNomad summary (prophage_all.tsv, 4,751 viral predictions).
Groups assigned by protein ID format: "|provirus_" tag = provirus; plain = viral contig.
==============================================================================

0. TOPOLOGY JOIN VERIFICATION
   Tagged IDs mapping to "Provirus": 1054
   Tagged IDs mapping elsewhere: 0
   Plain IDs mapping to "No terminal repeats": 532
   Plain IDs mapping elsewhere: 0
   Unmapped proteins: 0
   Conclusion: join is exact, 0 mismatches, 0 unmapped.

1. DOMAIN COMPOSITION
   PROVIRUS     n=1054: Phage_lysozyme 613 (58.2%)  SLT 331 (31.4%)  NLPC_P60 108 (10.2%)  Amidase_2 2 (0.2%)
   VIRAL-CONTIG n=532: Phage_lysozyme 327 (61.5%)  SLT 51 (9.6%)  NLPC_P60 154 (28.9%)  Amidase_2 0 (0.0%)
   Chi-square test (4 domains x 2 groups): chi2 = 146.38, df = 3, p = 1.591e-31
   Fisher Phage_lysozyme: provirus 613/1054 vs viral-contig 327/532, p = 2.135e-01
   Fisher SLT: provirus 331/1054 vs viral-contig 51/532, p = 4.795e-24
   Fisher NLPC_P60: provirus 108/1054 vs viral-contig 154/532, p = 5.016e-20
   Fisher Amidase_2: provirus 2/1054 vs viral-contig 0/532, p = 5.539e-01

2. LENGTH DISTRIBUTION (aa)
   PROVIRUS     median 171 (IQR 150-190), mean 195.2, min 32, max 906; <100 aa: 3 (0.3%), 100-350: 1018 (96.6%), >350: 33 (3.1%)
   VIRAL-CONTIG median 160 (IQR 129-245), mean 198.4, min 46, max 2373; <100 aa: 60 (11.3%), 100-350: 447 (84.0%), >350: 25 (4.7%)
   Mann-Whitney U: U = 317671, p = 1.278e-05

3. NOVELTY vs PhaLP 2.0 (DIAMOND best-hit % identity)
   PROVIRUS     median pident 69.4% (IQR 60.1-77.6), mean 71.5%; novel <70%: 549 (52.1%), divergent 70-90%: 301 (28.6%), known >=90%: 204 (19.4%)
   VIRAL-CONTIG median pident 69.1% (IQR 62.4-76.3), mean 71.7%; novel <70%: 274 (51.5%), divergent 70-90%: 187 (35.2%), known >=90%: 71 (13.3%)
   Mann-Whitney U: U = 256685, p = 5.814e-03

4. PHYSICOCHEMICAL PROPERTIES
   PROVIRUS     median pI 9.34 (IQR 8.97-9.51); cationic 941/1054 (89.3%); median charge 6.02 (IQR 1.90-7.53); pI 0.0 proteins: []
   VIRAL-CONTIG median pI 8.98 (IQR 5.56-9.26); cationic 354/532 (66.5%); median charge 2.60 (IQR -9.43-4.41); pI 0.0 proteins: ['JALACU010000067.1_2', 'JCCFNK010000084.1_3']
   Mann-Whitney U (pI): U = 371642, p = 1.914e-26
   Mann-Whitney U (charge): U = 393118, p = 2.356e-39

5. PER-GENOME DISTRIBUTION
   PROVIRUS     genomes with >=1 lysin: 499; median lysins per carrying genome 2, max 9
   VIRAL-CONTIG genomes with >=1 lysin: 225; median lysins per carrying genome 2, max 8
   Genomes with provirus lysins only: 305
   Genomes with viral-contig lysins only: 31
   Genomes with both: 194
   Genomes with neither (of 602): 72
   QC genomes (n=542): provirus lysins 499, viral-contig lysins 225, only-provirus 305, only-viral-contig 31, both 194
   Viral-contig lysins per genome: distribution {1: 64, 2: 56, 3: 77, 4: 21, 5: 4, 6: 1, 7: 1, 8: 1}

6. SEROVAR / PopPUNK DISTRIBUTION
   PROVIRUS     top serovars: Typhimurium 298 (28.3%), Enteritidis 198 (18.8%), Monophasic Typhimurium 109 (10.3%), Typhi 94 (8.9%), Newport 36 (3.4%)
   VIRAL-CONTIG top serovars: Typhimurium 325 (61.1%), Monophasic Typhimurium 90 (16.9%), Enteritidis 26 (4.9%), Weltevreden 8 (1.5%), Bovismorbificans 6 (1.1%)
   PopPUNK cluster counts (QC genomes only):
   PP1: provirus 396, viral-contig 413, total 809 (51% viral-contig) <-- 532-enriched
   PP2: provirus 196, viral-contig 26, total 222 (12% viral-contig)
   PP3: provirus 94, viral-contig 5, total 99 (5% viral-contig)
   PP4: provirus 12, viral-contig 6, total 18 (33% viral-contig)
   PP5: provirus 28, viral-contig 6, total 34 (18% viral-contig)
   PP6: provirus 8, viral-contig 0, total 8 (0% viral-contig)
   PP7: provirus 23, viral-contig 0, total 23 (0% viral-contig)
   PP8: provirus 9, viral-contig 4, total 13 (31% viral-contig)
   PP9: provirus 11, viral-contig 0, total 11 (0% viral-contig)
   PP10: provirus 5, viral-contig 6, total 11 (55% viral-contig) <-- 532-enriched
   PP11: provirus 9, viral-contig 2, total 11 (18% viral-contig)
   PP12: provirus 8, viral-contig 1, total 9 (11% viral-contig)
   PP13: provirus 18, viral-contig 1, total 19 (5% viral-contig)
   PP14: provirus 10, viral-contig 1, total 11 (9% viral-contig)
   PP15: provirus 6, viral-contig 5, total 11 (45% viral-contig)
   PP16: provirus 9, viral-contig 0, total 9 (0% viral-contig)
   PP17: provirus 11, viral-contig 2, total 13 (15% viral-contig)
   PP18: provirus 2, viral-contig 1, total 3 (33% viral-contig)
   PP19: provirus 3, viral-contig 0, total 3 (0% viral-contig)
   PP20: provirus 8, viral-contig 0, total 8 (0% viral-contig)
   PP21: provirus 10, viral-contig 6, total 16 (38% viral-contig)
   PP22: provirus 2, viral-contig 5, total 7 (71% viral-contig) <-- 532-enriched
   PP23: provirus 6, viral-contig 5, total 11 (45% viral-contig)
   PP24: provirus 11, viral-contig 8, total 19 (42% viral-contig)
   PP25: provirus 7, viral-contig 0, total 7 (0% viral-contig)
   PP26: provirus 11, viral-contig 1, total 12 (8% viral-contig)
   PP27: provirus 3, viral-contig 3, total 6 (50% viral-contig)
   PP28: provirus 3, viral-contig 0, total 3 (0% viral-contig)
   PP29: provirus 2, viral-contig 3, total 5 (60% viral-contig) <-- 532-enriched
   PP30: provirus 6, viral-contig 0, total 6 (0% viral-contig)
   PP31: provirus 6, viral-contig 0, total 6 (0% viral-contig)
   PP32: provirus 4, viral-contig 0, total 4 (0% viral-contig)
   PP33: provirus 6, viral-contig 0, total 6 (0% viral-contig)
   PP34: provirus 2, viral-contig 0, total 2 (0% viral-contig)
   PP35: provirus 2, viral-contig 0, total 2 (0% viral-contig)
   PP36: provirus 12, viral-contig 0, total 12 (0% viral-contig)
   PP38: provirus 5, viral-contig 0, total 5 (0% viral-contig)
   PP39: provirus 3, viral-contig 0, total 3 (0% viral-contig)
   PP40: provirus 1, viral-contig 0, total 1 (0% viral-contig)
   PP41: provirus 0, viral-contig 1, total 1 (100% viral-contig) <-- 532-enriched
   PP42: provirus 6, viral-contig 2, total 8 (25% viral-contig)
   PP43: provirus 1, viral-contig 0, total 1 (0% viral-contig)
   PP44: provirus 4, viral-contig 0, total 4 (0% viral-contig)
   PP45: provirus 3, viral-contig 0, total 3 (0% viral-contig)
   PP47: provirus 1, viral-contig 0, total 1 (0% viral-contig)
   PP49: provirus 3, viral-contig 0, total 3 (0% viral-contig)
   PP50: provirus 5, viral-contig 0, total 5 (0% viral-contig)
   PP51: provirus 2, viral-contig 0, total 2 (0% viral-contig)
   PP53: provirus 1, viral-contig 1, total 2 (50% viral-contig)
   PP55: provirus 0, viral-contig 2, total 2 (100% viral-contig) <-- 532-enriched
   PP56: provirus 3, viral-contig 0, total 3 (0% viral-contig)
   PP57: provirus 0, viral-contig 2, total 2 (100% viral-contig) <-- 532-enriched
   PP58: provirus 1, viral-contig 0, total 1 (0% viral-contig)
   PP59: provirus 1, viral-contig 0, total 1 (0% viral-contig)
   PP60: provirus 2, viral-contig 0, total 2 (0% viral-contig)
   PP61: provirus 4, viral-contig 1, total 5 (20% viral-contig)
   PP62: provirus 1, viral-contig 0, total 1 (0% viral-contig)
   PP63: provirus 2, viral-contig 0, total 2 (0% viral-contig)
   PP66: provirus 1, viral-contig 2, total 3 (67% viral-contig) <-- 532-enriched
   PP67: provirus 2, viral-contig 0, total 2 (0% viral-contig)
   PP68: provirus 3, viral-contig 0, total 3 (0% viral-contig)
   PP69: provirus 1, viral-contig 0, total 1 (0% viral-contig)
   PP70: provirus 5, viral-contig 0, total 5 (0% viral-contig)
   PP71: provirus 2, viral-contig 2, total 4 (50% viral-contig)
   PP72: provirus 2, viral-contig 0, total 2 (0% viral-contig)
   PP73: provirus 4, viral-contig 0, total 4 (0% viral-contig)
   PP74: provirus 0, viral-contig 3, total 3 (100% viral-contig) <-- 532-enriched
   PP75: provirus 4, viral-contig 0, total 4 (0% viral-contig)
   PP77: provirus 3, viral-contig 0, total 3 (0% viral-contig)
   PP78: provirus 3, viral-contig 0, total 3 (0% viral-contig)
   PP79: provirus 3, viral-contig 0, total 3 (0% viral-contig)
   PP80: provirus 4, viral-contig 0, total 4 (0% viral-contig)
   PP81: provirus 4, viral-contig 0, total 4 (0% viral-contig)
   PP82: provirus 1, viral-contig 3, total 4 (75% viral-contig) <-- 532-enriched
   PP83: provirus 1, viral-contig 0, total 1 (0% viral-contig)
   PP84: provirus 0, viral-contig 3, total 3 (100% viral-contig) <-- 532-enriched
   PP85: provirus 1, viral-contig 0, total 1 (0% viral-contig)
   PP87: provirus 2, viral-contig 0, total 2 (0% viral-contig)
   Chi-square (PP1/PP2/PP3/other x group): chi2 = 236.27, df = 3, p = 6.111e-51
   PP1: provirus 396, viral-contig 413 (51.1% viral-contig)
   PP2: provirus 196, viral-contig 26 (11.7% viral-contig)
   PP3: provirus 94, viral-contig 5 (5.1% viral-contig)
   PPother: provirus 368, viral-contig 88 (19.3% viral-contig)

7. THE ~255 bp FRAGMENT (Reviewer 2 flag)
   Viral sequences 200-320 bp in prophage_all.tsv: 17
   230 bp  JANKGI010000126.1  No terminal repeats  genome P305  lysins: none
   230 bp  JBNDND010000096.1  No terminal repeats  genome P022  lysins: none
   240 bp  JBVZBO010000107.1  No terminal repeats  genome P536  lysins: none
   246 bp  JAICCM010000040.1  No terminal repeats  genome P311  lysins: none
   247 bp  JRBR01000274.1  No terminal repeats  genome P444  lysins: none
   255 bp  JBRBKV010000082.1  No terminal repeats  genome P020  lysins: ['JBRBKV010000082.1_2']
   259 bp  JANKGI010000104.1  No terminal repeats  genome P305  lysins: none
   263 bp  JAVMPG010000091.1  No terminal repeats  genome P251  lysins: none
   270 bp  JAVMPG010000089.1  No terminal repeats  genome P251  lysins: none
   273 bp  JBVZBO010000097.1  No terminal repeats  genome P536  lysins: none
   275 bp  MYDF01000220.1  No terminal repeats  genome P477  lysins: none
   277 bp  JBVZBO010000095.1  No terminal repeats  genome P536  lysins: none
   280 bp  ABIOXB010000084.1  No terminal repeats  genome P525  lysins: none
   286 bp  DBLJTX010000051.1  No terminal repeats  genome P448  lysins: none
   291 bp  AAEQLG010000064.1  No terminal repeats  genome P028  lysins: ['AAEQLG010000064.1_1']
   314 bp  PCJI01000025.1  No terminal repeats  genome P167  lysins: none
   319 bp  JAYXTI010000073.1  No terminal repeats  genome P247  lysins: none
   Sequences of exactly 255 bp:
   [(255, 'JBRBKV010000082.1', 'No terminal repeats', 'P020')]
   Shortest viral-contig lysin source sequences: [255, 291, 364, 452, 473, 556, 606, 616]
   Shortest: 255 bp, source JBRBKV010000082.1
   Lysin from shortest source: JBRBKV010000082.1_2
     genome P020, serovar Typhimurium, PopPUNK 1
     HMM profile Phage_lysozyme, protein length 63 aa, pI 4.83, charge -3.41
     PhaLP 2.0 best hit: pident 64.3%, alen 56 aa, E-value 3.62e-20
     Query coverage: 56/63 = 88.9% of the protein aligns to the PhaLP hit
     Protein index on source contig: 2 (protein number 2 of this contig)
   Lysins from viral-contig sources < 1000 bp:
     AAQGIU010000100.1_1  source 556 bp  protein 129 aa  profile Phage_lysozyme  pident 63.6%
     AAIIUK010000091.1_2  source 473 bp  protein 131 aa  profile Phage_lysozyme  pident 59.2%
     AAEQLG010000064.1_1  source 291 bp  protein 96 aa  profile Phage_lysozyme  pident 56.4%
     AAINEH010000091.1_2  source 452 bp  protein 96 aa  profile Phage_lysozyme  pident 55.8%
     AAMJST010000061.1_2  source 899 bp  protein 88 aa  profile Phage_lysozyme  pident 52.9%
     AAZCTW010000066.1_2  source 700 bp  protein 76 aa  profile Phage_lysozyme  pident 61.7%
     JAKWCI010000050.1_1  source 684 bp  protein 63 aa  profile Phage_lysozyme  pident 65.5%
     JAYXTW010000066.1_2  source 684 bp  protein 63 aa  profile Phage_lysozyme  pident 65.5%
     DAEXAN010000041.1_2  source 663 bp  protein 63 aa  profile Phage_lysozyme  pident 64.3%
     JBRBKV010000082.1_2  source 255 bp  protein 63 aa  profile Phage_lysozyme  pident 64.3%
     AAUDEB010000064.1_2  source 606 bp  protein 56 aa  profile Phage_lysozyme  pident 68.1%
     ABLNTI010000053.1_2  source 616 bp  protein 56 aa  profile Phage_lysozyme  pident 68.1%
     DBNSLR010000063.1_2  source 364 bp  protein 56 aa  profile Phage_lysozyme  pident 68.1%
   Total lysins from <1 kb viral-contig sources: 13 / 532

==============================================================================
CONCLUSION
==============================================================================
CONCLUSION: DO THE GROUPS DIFFER SYSTEMATICALLY? YES - SUBSTANTIALLY, ON 4 OF 5 DIMENSIONS.
--------------------------------------------------------------------------------
1. DOMAIN COMPOSITION: YES, highly significant (chi2 = 146.38, p = 1.6e-31).
   Viral-contig group is NLPC_P60-enriched (28.9% vs 10.2%, Fisher p = 5.0e-20)
   and SLT-depleted (9.6% vs 31.4%, Fisher p = 4.8e-24). Phage_lysozyme similar
   (61.5% vs 58.2%, p = 0.21). Amidase_2: both 2 in provirus, 0 in viral-contig.
2. LENGTH: YES (Mann-Whitney p = 1.3e-05). Viral-contig median 160 aa vs 171 aa,
   but the distributions differ in shape: 11.3% of viral-contig lysins are <100 aa
   (vs 0.3% provirus), and the 2,373 aa outlier (full-rank Rank 1, AAHLWL) is viral-contig.
3. NOVELTY: MOSTLY SIMILAR. Median pident 69.4% vs 69.1%; novel fraction 52.1% vs
   51.5%. Small but significant distributional shift (Mann-Whitney p = 0.0058),
   driven by the divergent/known split (28.6%/19.4% vs 35.2%/13.3%). This is the
   one dimension where the groups are broadly comparable.
4. PHYSICOCHEMISTRY: YES, highly significant (pI p = 1.9e-26; charge p = 2.4e-39).
   Viral-contig group is much less cationic: 66.5% cationic vs 89.3% provirus;
   median charge 2.60 vs 6.02; median pI 8.98 vs 9.34. BOTH pI 0.0 proteins
   (JALACU010000067.1_2, JCCFNK010000084.1_3) are viral-contig.
5. SEROVAR / PopPUNK: YES, highly significant (chi2 = 236.27, p = 6.1e-51).
   Viral-contig lysins concentrate in Typhimurium (61.1% vs 28.3%) and PP1:
   51.1% of PP1 lysins are viral-contig, vs 11.7% in PP2 and 5.1% in PP3.
   The 532 group is NOT evenly spread; it is a PP1/Typhimurium phenomenon.

IMPLICATION FOR THE ENRICHMENT ANALYSIS (preview of the 1,054-only sensitivity run):
- NLPC_P60 x PP1 (flagship hit, OR 46.45, p = 1.8e-61 on all 1,586) is driven
  mostly by viral-contig lysins: of 171 PP1 carriers, 118 carry NLPC_P60 ONLY
  from viral contigs, 50 only from proviruses, 3 from both. Provirus-only
  carriage in PP1 is 53/184 = 28.8%.
- Provirus-only Fisher re-test (QC genomes, raw p):
    NLPC_P60 x PP1: OR 46.45 -> 2.33, p = 1.5e-04 (dies under Bonferroni x348: p = 0.052)
    NLPC_P60 x PP2: OR 0.06 -> 0.16, p = 3.2e-08 (survives)
    NLPC_P60 x PP3: OR 0.03 -> 0.00, p = 6.3e-04 (survives x12, dies under x348)
    SLT x PP1:      OR inf -> 16.36, p = 7.4e-34 (survives)
    SLT x PP2:      OR 0.01 -> 0.01, p = 7.7e-57 (survives)
    SLT x PP3:      OR 20.22 -> 26.45, p = 2.2e-07 (survives)
    Phage_lysozyme x PP1: OR 3.84 (enrichment) -> 0.43 (DEPLETION), p = 6.3e-05 (DIRECTION REVERSES)
    Phage_lysozyme x PP2: OR inf -> 5.35, p = 4.4e-09 (survives)
    Phage_lysozyme x PP3: OR inf (NS) -> 11.94, p = 8.0e-04 (becomes significant)
- Per Reviewer 1's rule, because the 1,054-only sensitivity analysis changes headline
  conclusions (NLPC_P60 x PP1 collapses; Phage_lysozyme x PP1 reverses), these
  changes MUST be in the main text, not buried in the supplement.
- 31 genomes carry ONLY viral-contig lysins; under option (b) they would have zero lysins.
- Rank 1 in BOTH rankings is viral-contig (length-filtered Rank 1 AAINEH_3;
  full-rank Rank 1 AAHLWL, 2,373 aa). Under option (b) the top candidate changes.

THE 255 bp FRAGMENT (Reviewer 2 flag):
- Exactly one 255 bp viral sequence exists: JBRBKV010000082.1, genome P020
  (Typhimurium, PP1), topology "No terminal repeats". Its lysin is JBRBKV010000082.1_2.
- Protein: 63 aa, Phage_lysozyme, pI 4.83, charge -3.41 (anionic).
- PhaLP 2.0 best hit: 64.3% identity over 56 of 63 aa (88.9% query coverage),
  E-value 3.6e-20. The HMM/DIAMOND evidence is solid: the 63 aa ORF aligns almost
  fully to a known lysin and fits inside 255 bp (needs 192 bp including stop).
- Verdict: a genuine small ORF by sequence evidence, but on a 255 bp assembly
  fragment that cannot be a complete viral genome. Almost certainly a truncated
  assembly fragment carrying a partial phage gene. It is NOT in the length-filtered
  prioritisation (63 < 100 aa) and is NOT among the top candidates, so it does not
  affect prioritisation. Flag it in Table S20 as fragment-derived.
- 13 lysins come from viral-contig sources < 1 kb (255-899 bp); all are
  Phage_lysozyme, 56-131 aa, all novel (pident 52.9-68.1%). None is in the top 20.

OVERALL VERDICT:
Pooled analysis hides real heterogeneity. The two source groups are NOT
interchangeable: they differ in domain mix, length, charge, and (most importantly)
lineage distribution, with the viral-contig group concentrated in PP1/Typhimurium
and carrying most of the NLPC_P60 signal. The manuscript MUST report both strata
(Reviewer 2's primary + extended populations) and MUST include the 1,054-only
sensitivity analysis in the main text. Novelty is the one property that is
source-independent, which supports keeping the 532 as a resource, but no
population-level conclusion should be stated from the pooled 1,586 alone.
