RULES_permutation.txt -- pre-registered 2026-11-20, before any data file of the Dryad deposit was available Page: planthopper-magnetic-genes (Xie et al. 2026; Dryad doi:10.5061/dryad.r4xgxd2vx, version 7, CC0) Written by agent P before the data were downloaded. Inputs and integrity: section 1 of RULES_deg_recount.txt. Methods: RULES_rederive.txt. Any later change is added at the end as a dated amendment; both results reported. QUESTION How does the number of "DEGs" found with the real grouping compare with the numbers found when the same samples are regrouped at random? In particular: how does 244 (GMF50 vs GMF45) compare with chance? ENUMERATION (every distinct reassignment; no random subset is needed) - GMF50 vs GMF45: the six samples split into two groups of three. C(6,3) = 20 labelled assignments; an assignment and its label swap give the same DEG count (two-sided p, |log2FC|), so there are 10 distinct splits: the real one and 9 in which one GMF45 and one GMF50 sample change places (each permuted group is a 2:1 mix, so it keeps part of any real signal). - NZMF vs GMF45 and NZMF vs GMF50 (NZMF_1-2 against three GMF samples): the five samples split into a group of two and a group of three: C(5,2) = 10 distinct splits: the real one, 6 with one NZMF and one GMF sample in the group of two, and 3 with two GMF samples in the group of two. - Each split is listed by its sample names, so a pattern by replicate number (_1, _2, _3), which could point to batches, is visible. METHOD UNDER EACH SPLIT Method A, "per comparison" scope (RULES_rederive.txt): the filter (>= 6 over the comparison's samples) and size factors do not depend on the labels; the gene-wise dispersions, the trend, the group means, the Wald tests, BH and the DEG call (BH < 0.05 and |log2FC| > 0.25) are recomputed under the split's grouping. Primary dispersion: the trend value; the conservative variant and method B are also run under every split and reported separately. OUTCOMES - For each comparison: the DEG count for every split; the real split's count; its rank (1 = most); permutation p = (number of splits with count >= the real split's count) / (number of splits), the real split included; median and maximum over the other splits; the real count divided by that median. - Stated in advance: with 10 distinct splits the smallest possible permutation p is 0.10, so this baseline cannot reach p < 0.05 for any comparison. A real split with the most DEGs of all 10 is the strongest possible result; anything else means some label shuffles produce at least as many "DEGs" as the real grouping. - The authors' DESeq2 counts (244; 2753 and 3258) are set beside our permutation distributions with the caveat that the methods differ; the like-for-like comparison is our method's real-split count against our method's permuted counts. NOT CONCLUDED FROM THIS A permutation baseline with three or two replicates per group says how unusual the real grouping's count is among the possible groupings; it does not measure whether any DEG is real, and it cannot separate a magnetic effect from anything else that differed between the groups (e.g. coil, tube or batch).