huggingbahl21 commited on
Commit
2e19ab9
·
verified ·
1 Parent(s): b7e3f56

Simplify CausalBench sources, preprocessing, and verification notes

Browse files
Files changed (1) hide show
  1. real/causalbench/README.md +10 -4
real/causalbench/README.md CHANGED
@@ -11,7 +11,13 @@ Each gzip TSV contains gene-expression columns (Ensembl IDs) and an `interventio
11
 
12
  ## Sources and preprocessing
13
 
14
- 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`.
 
 
 
 
 
 
15
 
16
  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:
17
 
@@ -22,8 +28,8 @@ The reference is the authors' [preprocessing implementation at commit 1a2143c](h
22
 
23
  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.
24
 
25
- ## Verification
26
 
27
- 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.
28
 
29
- 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.
 
11
 
12
  ## Sources and preprocessing
13
 
14
+ The downloaded inputs were:
15
+
16
+ - `k562.h5ad`: [K562 count matrix from Figshare, file 35773219](https://ndownloader.figshare.com/files/35773219).
17
+ - `rpe1.h5ad`: [RPE1 count matrix from Figshare, file 35775606](https://ndownloader.figshare.com/files/35775606).
18
+ - `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`.
19
+
20
+ The names above are the local filenames used during preparation.
21
 
22
  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:
23
 
 
28
 
29
  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.
30
 
31
+ ## Comparison with CausalBench
32
 
33
+ 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.
34
 
35
+ 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.