RULES_deg_recount.txt -- pre-registered 2026-11-20, before any data file of the Dryad deposit was available Page: planthopper-magnetic-genes (Xie et al. 2026, Insect Molecular Biology, doi:10.1111/imb.70066; data: Dryad doi:10.5061/dryad.r4xgxd2vx, version 7, CC0) Written by agent P. The data had not been downloaded when this was written (Dryad's API refused the zip, HTTP 401, 19:09 UTC). Nothing here changes after the data are seen; any change is added at the end as a dated amendment with its reason, and both the original and the amended results are reported. 1. INPUTS AND INTEGRITY (applies to every RULES file of this page) - Use only files whose SHA-256 matches Dryad's own digests (API, version 463781, /files): Dataset_supporting_manuscript.zip 6,087,623 bytes ee471a756cabb532853bfb0695942d0b2a10665286d4ca1479069d08e70735a2 README.md 17,030 bytes 088ed60ab1e863151c6b644291ca3fc3d83bc50cf833e2bbce1a9cb1b61660dd Code_for_this_manuscript.zip 4,555 bytes 3d0dafa48938c6c957a7860402d3e8dd8af3d2d0a9ac04313a02952f7795f8c7 A file that does not match is not used; we report the mismatch. - Unzip with Python's zipfile into a new folder after checking member names for absolute paths, drive letters and "..". Record each member's size and SHA-256. Read the authors' R scripts as text only. - Spreadsheets are read with our own minimal .xlsx reader (zipfile + XML; openpyxl is not installed), which keeps every cell's stored value as written in the file (no display rounding). We report the number of rows and columns read per sheet, and check our reader against the sheet's own dimension tag. 2. WHAT IS COUNTED File: "Raw_data_for_Figure1-Complete list of differentially expressed genes in all comparisons.xlsx". Sheets (README): DEG_GMF50_vs_GMF45, DEG_NZMF_vs_GMF45, DEG_NZMF_vs_GMF50. Columns: GeneSymbol, baseMean, log2FoldChange, lfcSE, stat, pvalue, padj. 3. PRIMARY RULE (the authors' thresholds, as their README states them) A gene is a DEG if padj is present (not NA/blank) and padj < 0.05 and |log2FoldChange| > 0.25. Count per sheet: total DEGs, up (log2FoldChange > 0.25), down (log2FoldChange < -0.25). Also count unique GeneSymbols among the DEGs (in case of duplicate rows). Comparison with the abstract (PubMed copy, PMID 42799701): - "The natural-range ~5 uT comparison identified 244 DEGs": match if the GMF50_vs_GMF45 primary count = 244. - "NZMF identified 2753-3258 DEGs": match if the two NZMF sheets' primary counts are 2753 and 3258 (in either order). We say which sheet gives which. A count that differs is a possible finding about named scientists' data: confirm it with a second, separately written script (different parsing path: e.g., read the sheet XML directly with a regex-free ElementTree walk vs the first script's reader, and count with plain Python instead of pandas), then test the ordinary explanations in section 4 before calling it a discrepancy. Report it to the coordinator first, worded neutrally. 4. ALTERNATIVES, REPORTED SEPARATELY (never replacing the primary count) A1 Inclusive boundaries: |log2FoldChange| >= 0.25 and padj <= 0.05. A2 padj < 0.05 with no fold-change threshold. A3 padj < 0.05 with |log2FoldChange| > 0.585 (1.5-fold) and with |log2FoldChange| > 1 (2-fold). A4 padj < 0.10 (DESeq2's default alpha) with |log2FoldChange| > 0.25. A5 pvalue < 0.05 with |log2FoldChange| > 0.25 (no false-discovery correction). A6 Our own Benjamini-Hochberg adjustment of the pvalue column over every row with a pvalue (i.e. without DESeq2's independent filtering), then < 0.05 with |log2FoldChange| > 0.25. A7 Consistency checks of the file (not counts): (i) our BH over only the rows that have a padj reproduces the padj column (largest absolute difference); (ii) stat = log2FoldChange / lfcSE (largest relative difference; if it holds, the fold changes are unshrunken Wald estimates); (iii) pvalue = 2*Phi(-|stat|) (largest absolute difference); (iv) whether baseMean is identical across the three sheets for the same gene (if so, one DESeq2 model was fitted to all eight retained samples); (v) numbers of rows, NA pvalues and NA padj. A8 Rounding: if stored values are rounded (fewer than 6 significant digits), count genes whose padj or |log2FoldChange| lies within the rounding interval of 0.05 or 0.25, and report the range of counts that rounding allows. A9 Gene set: compare the number of rows per sheet with the number of genes in the count matrix whose total count over the eight retained samples (GMF45_1-3, GMF50_1-3, NZMF_1-2) is >= 6 (the README's filter), and with the number whose total over all nine samples is >= 6. Ordinary explanations to test if the primary count differs from the abstract: A1-A9; "up plus down counted with overlaps"; DEG lists filtered by an annotation step (e.g. only genes with an Entrez ID, as the GO script converts symbols with AnnotationHub AH118659: count DEGs with and without a symbol that looks like an unannotated/novel gene ID); a different file version (only version 7 is public: note, cannot test); the paper's Figure 1 counts if the full text arrives. 5. CRY1 Identify Cry1's row: the gene ID that appears in the geneID lists of both 'response to light stimulus' and 'flavin adenine dinucleotide binding' in the GMF50 vs GMF45 GO results (the abstract says both contain Cry1); if several IDs are shared, use the ID labelled Cry1/cryptochrome in the qPCR or RNAi files or the R scripts. Report Cry1's baseMean, log2FoldChange, padj in all three sheets, and whether it is a DEG under the primary rule in GMF50 vs GMF45 (the abstract: "its differential expression under ecologically relevant geomagnetic intensity variation"). 6. OUTPUT code/out/deg_recount.json and a table in report.md: sheet, rows, NA padj, primary total/up/down, A1-A6 counts, A7 checks, A8 range, A9 gene-set sizes.