==============================================================================
1,054-ONLY SENSITIVITY REANALYSIS (provirus-encoded candidates only)
Published results use all 1,586 candidates; this reruns them on the 1,054
provirus-encoded subset (protein IDs containing "|provirus_").
==============================================================================

1. DOMAIN COUNTS
------------------------------------------------------------------------------
Domain             Published 1586   1,054-only  532 viral-ctg % of domain lost
Phage_lysozyme                940          613            327            34.8%
SLT                           382          331             51            13.4%
NLPC_P60                      262          108            154            58.8%
Amidase_2                       2            2              0             0.0%
TOTAL                        1586         1054            532

Provirus-only percentages (denominator 1,054):
  Phage_lysozyme: 613 (58.2%)  [published: 59.3%]
  SLT: 331 (31.4%)  [published: 24.1%]
  NLPC_P60: 108 (10.2%)  [published: 16.5%]
  Amidase_2: 2 (0.2%)  [published: 0.1%]
Verdict: domain RANKING unchanged (Phage_lysozyme > SLT > NLPC_P60 > Amidase_2),
  but percentages shift SUBSTANTIALLY: SLT 24.1% -> 31.4% (+7.3 points),
  NLPC_P60 16.5% -> 10.2% (-6.3 points). The 532 are STRONGLY domain-skewed:
  NLPC_P60 loses 154/262 = 58.8% of its members to the viral-contig group,
  Phage_lysozyme loses 327/940 = 34.8%, SLT loses only 51/382 = 13.4%.
  Amidase_2 loses 0 of 2 (both provirus-encoded).
  Consequence: any result driven by NLPC_P60 carriage is the most affected;
  see section 3 (NLPC_P60 x PP1 collapses) and section 4.

2. NOVELTY vs PhaLP 2.0 (DIAMOND best-hit pident)
------------------------------------------------------------------------------
Published (1,586)  n=1586  novel<70%: 823 (51.9%)  divergent: 488 (30.8%)  known>=90%: 275 (17.3%)  median=69.2%  mean=71.53%
1,054-only         n=1054  novel<70%: 549 (52.1%)  divergent: 301 (28.6%)  known>=90%: 204 (19.4%)  median=69.4%  mean=71.46%
532 viral-ctg      n=532   novel<70%: 274 (51.5%)  divergent: 187 (35.2%)  known>=90%: 71 (13.3%)  median=69.1%  mean=71.67%

Published: 823 novel (51.9%), 488 divergent (30.8%), 275 known (17.3%), median 69.2%.
VERDICT: novelty headline UNCHANGED. 1,054-only: 52.1% novel (+0.2 points),
  median 69.4% (+0.2 points), mean 71.46% (vs 71.53%). The 532 and 1,054
  have nearly identical novelty profiles (51.5% vs 52.1% novel; medians
  69.1% vs 69.4%), so novelty does not depend on source group.

3. ENRICHMENT: domain x PP1/PP2/PP3 on 542 QC genomes (1,054-only carriage)
------------------------------------------------------------------------------
Test                     n_with       OR           95% CI      raw p   Bonf x12   Bonf x348 sig x12 sig x348
(1,054-only)            (publ.)  (publ.)                     (publ.)    (publ.)     (publ.)
NLPC_P60 x PP1           53/184        2.33 1.51-3.59   1.49e-04   1.79e-03    5.19e-02     SIG       NS
  published:                                              1.811652320958186e-61 2.1739827851498233e-60   6.305e-59
SLT x PP1           169/184       16.36 9.27-28.89   7.41e-34   8.89e-33    2.58e-31     SIG      SIG
  published:                                              6.728466288683758e-47 8.07415954642051e-46   2.342e-44
SLT x PP2           6/141        0.01 0.01-0.03   7.67e-57   9.21e-56    2.67e-54     SIG      SIG
  published:                                              1.5332350663102926e-63 1.839882079572351e-62   5.336e-61
NLPC_P60 x PP2           7/141        0.16 0.07-0.35   3.19e-08   3.83e-07    1.11e-05     SIG      SIG
  published:                                              2.954217123798507e-28 3.5450605485582086e-27   1.028e-25
NLPC_P60 x PP3           0/34         0.05 0.00-0.90   6.28e-04   7.53e-03    2.18e-01     SIG       NS
  published:                                              1.078897195113393e-08 1.2946766341360717e-07   3.755e-06
SLT x PP3           33/34        26.45 3.59-194.86   2.22e-07   2.66e-06    7.71e-05     SIG      SIG
  published:                                              4.125718782722074e-06 4.950862539266489e-05   1.436e-03
Phage_lysozyme x PP2           130/141        5.35 2.79-10.26   4.36e-09   5.23e-08    1.52e-06     SIG      SIG
  published:                                              6.723608977910559e-07 8.06833077349267e-06   2.340e-04
Phage_lysozyme x PP1           118/184        0.43 0.29-0.65   6.26e-05   7.51e-04    2.18e-02     SIG      SIG
  published:                                              0.0010598872854711238 0.012718647425653484   3.688e-01
Phage_lysozyme x PP3           33/34        11.94 1.62-88.18   7.98e-04   9.57e-03    2.78e-01     SIG       NS
  published:                                              0.06188361381450324 0.7426033657740388   1.000e+00
Amidase_2 x PP1           0/184        0.39 0.02-8.09   5.51e-01   1.00e+00    1.00e+00      NS       NS
  published:                                              0.5507021983343677        1.0   1.000e+00
Amidase_2 x PP2           0/141        0.56 0.03-11.83   1.00e+00   1.00e+00    1.00e+00      NS       NS
  published:                                                     1.0        1.0   1.000e+00
Amidase_2 x PP3           0/34         2.94 0.14-62.37   1.00e+00   1.00e+00    1.00e+00      NS       NS
  published:                                                     1.0        1.0   1.000e+00

1,054-only significant: x12 = 9/12 (published 8/12); x348 = 6/12 (published 7/12).

VERDICT - headline enrichment conclusions DO change on the 1,054-only subset:
  LOST at x348 (were significant, now NS):
    - NLPC_P60 x PP1: published x348 p=6.31e-59 (strongest hit in the paper)
      -> 1,054-only x348 p=0.0519 (borderline NS). Only 53/184 PP1 genomes
      carry a PROVIRUS-encoded NLPC_P60 (vs 171/184 with any NLPC_P60);
      118 of the 171 are viral-contig-encoded. This association is driven
      mostly by the 532 group, not by integrated proviruses.
    - NLPC_P60 x PP3: published x348 p=3.76e-06 -> 1,054-only 0/34 carriers,
      x348 p=0.218 NS. (Only 1 PP3 genome carried NLPC_P60 at all, and it
      was viral-contig-encoded.)
  FLIPPED DIRECTION and gained x348 significance:
    - Phage_lysozyme x PP1: published ENRICHMENT 178/184, OR=3.84, x12
      p=0.0127, x348 p=0.369 NS -> 1,054-only DEPLETION 118/184, OR=0.43,
      x12 p=7.51e-04, x348 p=0.0218 SIG. The published "8th hit" reverses
      sign on the provirus-only subset.
  GAINED x12 significance (still NS at x348):
    - Phage_lysozyme x PP3: published raw p=0.062 NS -> 1,054-only raw
      p=7.98e-04, x12 p=9.57e-03 SIG, x348 p=0.278 NS.
  UNCHANGED at x348 (still significant, same direction): SLT x PP1,
    SLT x PP2, NLPC_P60 x PP2, SLT x PP3, Phage_lysozyme x PP2 (5 of 7).
  NET: 7 published x348 associations -> 6 on 1,054-only, but the SET changes:
    2 lost, 1 gained (flipped). The NLPC_P60 x PP1 headline (p=2e-60) does
    NOT survive restriction to provirus-encoded candidates.

4. SEROVAR-ADJUSTED LOGISTIC MODELS (MDR >=3 classes ~ domain + serovar)
------------------------------------------------------------------------------
Published M1 (all 1,586): NLPC_P60 OR=0.45 (0.24-0.84) p=0.0119; SLT OR=1.86 (0.95-3.63) p=0.070; Phage_lysozyme OR=0.67 p=0.256.

NLPC_P60 (1,054-only): OR=0.64 95% CI 0.37-1.08 p=0.0957 converged=True
NLPC_P60 (full, recomputed): OR=0.45 95% CI 0.24-0.84 p=0.0119 converged=True
SLT (1,054-only): OR=1.72 95% CI 0.97-3.07 p=0.0641 converged=True
SLT (full, recomputed): OR=1.86 95% CI 0.95-3.63 p=0.0703 converged=True
Phage_lysozyme (1,054-only): OR=0.69 95% CI 0.44-1.09 p=0.1094 converged=True
Phage_lysozyme (full, recomputed): OR=0.67 95% CI 0.33-1.34 p=0.2563 converged=True

VERDICT (reference group = Enteritidis, matching the published M1; the
  "full, recomputed" rows above reproduce the published M1 exactly,
  confirming the 1,054-only rows are computed on the same specification):
  - NLPC_P60: OR 0.45 (p=0.0119) -> 0.64 (p=0.0957). Direction UNCHANGED
    (negative), magnitude ATTENUATED, conventional significance LOST.
    The published association already failed cluster-robust SEs (p=0.1555),
    so the 1,054-only result is consistent with "no robust association" -
    it weakens further rather than strengthening.
  - SLT: OR 1.86 (p=0.070) -> 1.72 (p=0.064). Essentially UNCHANGED, still NS.
  - Phage_lysozyme: OR 0.67 (p=0.256) -> 0.69 (p=0.109). Essentially
    UNCHANGED, still NS.
  Overall: no domain gains a significant MDR association on the 1,054-only
    subset; the one published nominally significant association (NLPC_P60)
    attenuates and loses significance. The conservative conclusion - that no
    domain independently predicts the resistance-class burden - is
    STRENGTHENED, not weakened, on the provirus-only subset.

5. PRIORITISATION: length-filtered top 20 on 1,054-only candidates
------------------------------------------------------------------------------
2,373 aa max-charge protein AAHLWL010000039.1_19: VIRAL-CONTIG (charge 55.94)
max_charge = 55.94 from the full set; it stays valid only if this protein is
in the 1,054 subset. If it is viral-contig, the 1,054-only max_charge changes.
1,054-only max charge = 19.81 (full-set max = 55.94)

Length-filtered 1,054-only candidates (100-350 aa): 1018 (published full-set: 1,465)

New top 20 (1,054-only, score with max_charge=55.94):
   1. ABPUAW010000009.1|provirus_129991_167987_153       Phage_lysozyme len= 166 pident= 43.7 score=0.385 IN-OLD-TOP20
   2. ACDCKU010000013.1|provirus_90547_126293_114        Phage_lysozyme len= 166 pident= 44.4 score=0.381 IN-OLD-TOP20
   3. AAGNPH010000014.1|provirus_38934_73853_47          Phage_lysozyme len= 150 pident= 45.6 score=0.353 IN-OLD-TOP20
   4. AAGNTN010000003.1|provirus_18282_53201_54          Phage_lysozyme len= 150 pident= 45.6 score=0.353 IN-OLD-TOP20
   5. ABVVYL010000001.1|provirus_510364_545293_472       Phage_lysozyme len= 150 pident= 45.6 score=0.353 IN-OLD-TOP20
   6. ABWXLI010000006.1|provirus_133227_207774_199       Phage_lysozyme len= 150 pident= 45.6 score=0.353 IN-OLD-TOP20
   7. DBOEMV010000004.1|provirus_236851_271770_233       Phage_lysozyme len= 150 pident= 45.6 score=0.353 IN-OLD-TOP20
   8. DBPHFF010000007.1|provirus_236851_271770_233       Phage_lysozyme len= 150 pident= 45.6 score=0.353 IN-OLD-TOP20
   9. JAIQDZ010000008.1|provirus_129672_164601_132       Phage_lysozyme len= 150 pident= 45.6 score=0.353 IN-OLD-TOP20
  10. JAKEKS010000019.1|provirus_289196_324125_272       Phage_lysozyme len= 150 pident= 45.6 score=0.353 IN-OLD-TOP20
  11. JBEYQE010000017.1|provirus_18429_54118_54          Phage_lysozyme len= 150 pident= 45.6 score=0.353 IN-OLD-TOP20
  12. JBEYRD010000009.1|provirus_22251_57170_57          Phage_lysozyme len= 150 pident= 45.6 score=0.353 IN-OLD-TOP20
  13. JAXDFK010000005.1|provirus_44350_91386_40          NLPC_P60       len= 236 pident= 41.7 score=0.350 IN-OLD-TOP20
  14. AAIIUK010000012.1|provirus_804_52448_61            NLPC_P60       len= 236 pident= 43.0 score=0.342 IN-OLD-TOP20
  15. ABWXPK010000018.1|provirus_20705_63121_30          Amidase_2      len= 276 pident= 48.2 score=0.325 IN-OLD-TOP20
  16. ABWYKY010000021.1|provirus_20705_62809_30          Amidase_2      len= 276 pident= 48.2 score=0.325 IN-OLD-TOP20
  17. DBNXBG010000009.1|provirus_158658_179687_133       SLT            len= 201 pident= 59.1 score=0.309 IN-OLD-TOP20
  18. JAAHMA010000012.1|provirus_18526_39555_37          SLT            len= 201 pident= 59.1 score=0.309 IN-OLD-TOP20
  19. JBPXVS010000014.1|provirus_62545_82389_44          SLT            len= 201 pident= 59.7 score=0.305 IN-OLD-TOP20
  20. AAYVBJ010000006.1|provirus_2_56069_77              NLPC_P60       len= 239 pident= 49.4 score=0.304 NEW

Of the old top 20, 19/20 remain in the new top 20.
Old Rank 1 AAINEH010000021.1_3 is VIRAL-CONTIG and drops out; the new Rank 1 is
  ABPUAW010000009.1|provirus_129991_167987_153 (score 0.385).
Unique SEQUENCES in new top 20: 9 (published top 20: 9 unique).
  (Counted by identical amino-acid sequence, not protein ID: the 150 aa
  Phage_lysozyme ranks are copies of one sequence from different genomes.)

Ranking with 1,054-only max_charge (19.81): DIFFERENT top-20 order (see below)
   1. ABPUAW010000009.1|provirus_129991_167987_153       score=0.470
   2. ACDCKU010000013.1|provirus_90547_126293_114        score=0.466
   3. DBNXBG010000009.1|provirus_158658_179687_133       score=0.425
   4. JAAHMA010000012.1|provirus_18526_39555_37          score=0.425
   5. JBPXVS010000014.1|provirus_62545_82389_44          score=0.422
   6. AAPFIG010000016.1|provirus_85944_106365_64         score=0.416
   7. ABFPKR010000015.1|provirus_85944_105933_64         score=0.416
   8. ABFRTY010000015.1|provirus_85944_106377_64         score=0.416
   9. DBRNFP010000012.1|provirus_60926_81347_44          score=0.416
  10. JAAHKY010000013.1|provirus_86072_106493_64         score=0.416
  11. JAVJME010000016.1|provirus_17857_38927_36          score=0.416
  12. JBBZCP010000013.1|provirus_86010_106431_64         score=0.416
  13. JBEYQE010000012.1|provirus_86000_106433_64         score=0.416
  14. DBNSHN010000020.1|provirus_41324_61760_40          score=0.416
  15. JAOYDS010000001.1|provirus_18267_38495_36          score=0.416
  16. WSCG01000031.1|provirus_435_20541_2                score=0.404
  17. AAGNPH010000014.1|provirus_38934_73853_47          score=0.403
  18. AAGNTN010000003.1|provirus_18282_53201_54          score=0.403
  19. ABVVYL010000001.1|provirus_510364_545293_472       score=0.403
  20. ABWXLI010000006.1|provirus_133227_207774_199       score=0.403

6. CLUSTERING: 32 CD-HIT families, provirus vs viral-contig breakdown
------------------------------------------------------------------------------
Cluster       Total  Provirus  Viral-ctg  % provirus
Cluster 28      472       217        255       46.0%
Cluster 15      286       262         24       91.6%
Cluster 10      240        90        150       37.5%
Cluster 20      187       175         12       93.6%
Cluster 23       96        82         14       85.4%
Cluster 31       55        49          6       89.1%
Cluster 18       52        32         20       61.5%
Cluster 25       43        27         16       62.8%
Cluster 4        38        17         21       44.7%
Cluster 11       36        36          0      100.0%
Cluster 12       18        16          2       88.9%
Cluster 7        14        11          3       78.6%
Cluster 29       10        10          0      100.0%
Cluster 30        9         8          1       88.9%
Cluster 17        5         4          1       80.0%
Cluster 21        4         3          1       75.0%
Cluster 3         2         1          1       50.0%
Cluster 6         2         2          0      100.0%
Cluster 8         2         2          0      100.0%
Cluster 9         2         0          2        0.0%
Cluster 24        2         2          0      100.0%
Cluster 0         1         0          1        0.0%
Cluster 1         1         0          1        0.0%
Cluster 2         1         1          0      100.0%
Cluster 5         1         1          0      100.0%
Cluster 13        1         1          0      100.0%
Cluster 14        1         1          0      100.0%
Cluster 16        1         0          1        0.0%
Cluster 19        1         1          0      100.0%
Cluster 22        1         1          0      100.0%
Cluster 26        1         1          0      100.0%
Cluster 27        1         1          0      100.0%
TOTAL          1586      1054        532

A full CD-HIT re-run on the 1,054 subset was NOT done here; the table above
gives the per-family composition from the existing cluster file. Families
with a high viral-contig fraction would shrink most if the 532 were removed;
families that are 100% provirus are unaffected.
KEY FINDINGS:
  - 4 clusters are 100% viral-contig and would DISAPPEAR entirely on the
    1,054 subset: Cluster_9 (2 members), Cluster_0 (1), Cluster_1 (1),
    Cluster_16 (1). 32 families -> 28 families.
  - The two largest families shrink dramatically: Cluster_28 472 -> 217
    (46.0% provirus), Cluster_10 240 -> 90 (37.5% provirus).
  - The five largest families on the 1,054 subset become: Cluster_15 (262),
    Cluster_28 (217), Cluster_20 (175), Cluster_10 (90), Cluster_23 (82).
    The same five clusters, reordered and smaller; Cluster_15 becomes the
    largest. The Task 7 catalytic-conservation analysis used these five
    families, so its per-family alignments would change (fewer members).
Note: CD-HIT cluster numbering (Cluster 0..31) is NOT size-ranked; the five
largest families in the manuscript are Cluster_28 (472), Cluster_15 (286),
Cluster_10 (240), Cluster_20 (187), Cluster_23 (96).

==============================================================================
SUMMARY VERDICTS (headline conclusions, 1,586 vs 1,054-only)
==============================================================================
  Domain distribution: RANKING unchanged, but percentages shift substantially
    (SLT +7.3 pts, NLPC_P60 -6.3 pts). NLPC_P60 is 58.8% viral-contig.
  Novelty (51.9% novel, median 69.2%): UNCHANGED on 1,054-only (52.1%,
    median 69.4%). The 532 and 1,054 have nearly identical novelty profiles.
  Enrichment (7 significant at x348): CHANGED. 2 of 7 lost (NLPC_P60 x PP1,
    the paper's strongest hit at p=2e-60, collapses to x348 p=0.052;
    NLPC_P60 x PP3 dies). 1 gained with FLIPPED direction (Phage_lysozyme
    x PP1: enrichment OR=3.84 -> depletion OR=0.43, x348-significant).
    5 of 7 survive unchanged. Net: 7 -> 6 significant, different set.
  NLPC_P60-MDR negative association: see §4 for the corrected 1,054-only
    ORs (reference group fixed to Enteritidis, matching the published M1).
    The published association already failed cluster-robust SEs (p=0.1555).
  Prioritisation top 20: Rank 1 changes (old Rank 1 is viral-contig);
    19/20 of the old top 20 remain (with full-set max_charge=55.94). With
    the 1,054-only max_charge (19.81, since the 2,373 aa outlier is
    viral-contig), the ranking reorders and new SLT candidates enter.
  Clustering: 32 -> 28 families (4 all-viral-contig clusters disappear);
    the two largest families shrink by >50% (472->217, 240->90); the five
    largest are the same five clusters, reordered.
  OVERALL: the 1,054-only subset preserves the dataset scale, the novelty
    headline and the domain ranking, BUT the enrichment headline changes
    materially: the strongest association (NLPC_P60 x PP1) is driven by
    viral-contig lysins, and Phage_lysozyme x PP1 reverses direction.
    This is exactly why the reviewers required this analysis, and why the
    two-population reporting (primary 1,054 / extended 1,586) is necessary.
    The 532 are NOT a random subsample: they carry most of the NLPC_P60
    signal in PP1 (118/171) and most of Cluster_28/Cluster_10 membership.
