Simplify CausalBench sources, preprocessing, and verification notes
Browse files10 unmodified lines11121314141516171819202122234 unmodified lines282930253132273334293510 unmodified lines
## Sources and preprocessing
Inputs are the original [K562 counts](https://ndownloader.figshare.com/files/35773219), [RPE1 counts](https://ndownloader.figshare.com/files/35775606), and [perturbation summary workbook](https://ars.els-cdn.com/content/image/1-s2.0-S0092867422005979-mmc2.xlsx), using sheets `TabB_K562_day6_summary_stat` and `TabC_RPE1_summary_statistic`.The downloaded inputs were:
- `k562.h5ad`: [K562 count matrix from Figshare, file 35773219](https://ndownloader.figshare.com/files/35773219).- `rpe1.h5ad`: [RPE1 count matrix from Figshare, file 35775606](https://ndownloader.figshare.com/files/35775606).- `summary_stats.xlsx`: [Replogle et al. supplementary workbook (`1-s2.0-S0092867422005979-mmc2.xlsx`)](https://ars.els-cdn.com/content/image/1-s2.0-S0092867422005979-mmc2.xlsx), using sheets `TabB_K562_day6_summary_stat` and `TabC_RPE1_summary_statistic`.
The names above are the local filenames used during preparation.
The reference is the authors' [preprocessing implementation at commit 1a2143c](https://github.com/causalbench/causalbench/blob/1a2143cffdc85f835b41ce8d52034be1bf903e71/causalscbench/data_access/utils/preprocessing.py), with strong-perturbation filtering enabled:
4 unmodified lines
K562 used the original function. RPE1 used a memory-saving implementation of the same rules. [Raw inputs, preparation code, and environment](https://huggingface.co/datasets/huggingbahl21/causalbench) are available for reproduction.
## Verification## Comparison with CausalBench
Saved checks found that both raw count files matched the publisher's MD5 checksums. Full reconstruction from raw inputs using chunked code matched every saved NPZ expression value and the ordered gene and intervention labels. TSV export preserved those labels; its maximum absolute numerical difference from the NPZ was `2.3841e-7` for both datasets.These tables use the original input datasets and follow the authors' filtered preprocessing linked above. They are our prepared exports, not processed files downloaded from the CausalBench authors. An exact match to author-provided processed matrices has not been verified.
A small fixture also matched the unmodified authors' function. The full datasets were not rerun through that function during verification; these checks establish consistency with the implemented preprocessing, not an independent comparison against author-distributed processed matrices. The summary workbook was read locally because its remote verification request returned HTTP 403.Both downloaded count matrices matched Figshare's checksums. Rebuilding from the raw inputs reproduced the saved expression arrays and gene/intervention labels; exporting to TSV changed numerical values by at most `2.3841e-7`. The [preparation code and inputs](https://huggingface.co/datasets/huggingbahl21/causalbench) are available to reproduce the tables.real/causalbench/README.md+10-4