Skip to content

Commit caabd18

Browse files
committed
fix bug in geneformer
1 parent 5e64224 commit caabd18

7 files changed

Lines changed: 4 additions & 5 deletions

File tree

100 KB
Loading
-1.37 KB
Loading
123 KB
Loading
37.7 KB
Loading

scripts/run_all.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
set -e
22

3-
datasets=( 'op' 'replogle' '300BCG') #'replogle' 'op' 'nakatake' 'adamson' 'norman' 'xaira_HEK293T' 'xaira_HCT116' 'parsebioscience' 'ibd' '300BCG'
3+
datasets=( 'op') #'replogle' 'op' 'nakatake' 'adamson' 'norman' 'xaira_HEK293T' 'xaira_HCT116' 'parsebioscience' 'ibd' '300BCG'
44

55
run_local=false # set to true to run locally, false to run on AWS
66

7-
run_grn_inference=false
8-
run_grn_evaluation=true
7+
run_grn_inference=true
8+
run_grn_evaluation=false
99
run_download=false
1010

1111

src/methods/geneformer/script.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
par = parse_args(par)
3737

3838
if __name__ == "__main__":
39+
dataset_id = ad.read_h5ad(par['rna'], backed='r').uns['dataset_id']
3940
net = main(par)
4041
output = ad.AnnData(
4142
X=None,

src/metrics/sem/helper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,6 @@ def main(par):
410410
print(f"Final score: {score}")
411411

412412
results = {
413-
# 'r2': [float(np.mean(scores))],
414-
# 'r2_baseline': [float(np.mean(scores_baseline))],
415413
'sem_precision': [float(np.mean(scores)/( np.mean(scores_baseline) + 1e-6))],
416414
'sem_balanced': [float(score)]
417415
}

0 commit comments

Comments
 (0)