|
8 | 8 | # Note: this section is auto-generated by viash at runtime. To edit it, make changes |
9 | 9 | # in config.vsh.yaml and then run `viash config inject config.vsh.yaml`. |
10 | 10 | par = { |
11 | | - "input_unintegrated": "resources_test/.../unintegrated.h5ad", |
12 | | - "input_integrated_split1": "resources_test/.../integrated_split1.h5ad", |
13 | | - "input_integrated_split2": "resources_test/.../integrated_split2.h5ad", |
14 | | - "output": "output.h5ad", |
| 11 | + "input_unintegrated": "resources_test/task_cyto_batch_integration/mouse_spleen_flow_cytometry_subset/unintegrated.h5ad", |
| 12 | + "input_integrated_split1": "resources_test/task_cyto_batch_integration/mouse_spleen_flow_cytometry_subset/output_split1.h5ad", |
| 13 | + "input_integrated_split2": "resources_test/task_cyto_batch_integration/mouse_spleen_flow_cytometry_subset/output_split2.h5ad", |
| 14 | + "output": "resources_test/task_cyto_batch_integration/mouse_spleen_flow_cytometry_subset/output_lisi.h5ad", |
| 15 | +} |
| 16 | +meta = { |
| 17 | + "name": "lisi", |
| 18 | + "resources_dir": "src/utils", |
15 | 19 | } |
16 | | -meta = {"name": "lisi"} |
17 | 20 | ## VIASH END |
18 | 21 |
|
19 | 22 | sys.path.append(meta["resources_dir"]) |
|
22 | 25 | subset_markers_tocorrect, |
23 | 26 | ) |
24 | 27 |
|
| 28 | +# TODO: no idea why the new anndata >= 0.11 needs this even if we don't write anything to obs? |
| 29 | +ad.settings.allow_write_nullable_strings = True |
| 30 | + |
25 | 31 | print("Reading input files", flush=True) |
26 | 32 | input_unintegrated = ad.read_h5ad(par["input_unintegrated"]) |
27 | 33 | input_integrated_split1 = ad.read_h5ad(par["input_integrated_split1"]) |
|
64 | 70 | uns_metric_ids = ["iLisi", "cLisi"] |
65 | 71 | uns_metric_values = [ilisi, clisi] |
66 | 72 |
|
| 73 | +print("iLisi split 1:", ilisi_s1, flush=True) |
| 74 | +print("iLisi split 2:", ilisi_s2, flush=True) |
| 75 | +print("cLisi split 1:", clisi_s1, flush=True) |
| 76 | +print("cLisi split 2:", clisi_s2, flush=True) |
| 77 | +print("Mean iLisi:", ilisi, flush=True) |
| 78 | +print("Mean cLisi:", clisi, flush=True) |
| 79 | +print("Metric IDs:", uns_metric_ids, flush=True) |
| 80 | +print("Metric values:", uns_metric_values, flush=True) |
| 81 | + |
67 | 82 | print("Write output AnnData to file", flush=True) |
68 | 83 | output = ad.AnnData( |
69 | 84 | uns={ |
|
0 commit comments