AlejandroGZ commited on
Commit
d57d3c7
·
verified ·
1 Parent(s): 614e426

Delete createanndata.py

Browse files
Files changed (1) hide show
  1. createanndata.py +0 -60
createanndata.py DELETED
@@ -1,60 +0,0 @@
1
- from pathlib import Path
2
-
3
- from vibframe_anndata import (
4
- __version__,
5
- import_raw_to_h5ad,
6
- validate_streamed_h5ad,
7
- )
8
-
9
- assert __version__ == "0.2.2"
10
-
11
- DOCUMENTS = Path.home() / "Documents"
12
- VIBFRAME = DOCUMENTS / "DRMHB.vibframe.zip"
13
- OUTPUT = DOCUMENTS / "DRMHB.float32.h5ad"
14
-
15
- config = {
16
- "version": 1,
17
-
18
- "raw_import": {
19
- "waveforms": True,
20
- "spectra": True,
21
- "on_missing_signal": "nan",
22
- },
23
-
24
- "output": {
25
- "dtype": "float32",
26
- },
27
-
28
- # No features.
29
- "features": [],
30
-
31
- "ground_truth": {
32
- "enabled": True,
33
- "on_missing": "error",
34
- },
35
-
36
- "obs": {
37
- "include": [
38
- "snapshot_id",
39
- "timestamp",
40
- "snap_t",
41
- "source",
42
- "machine",
43
- "speed_hz",
44
- "has_waveform",
45
- "has_spectrum",
46
- ],
47
- },
48
- }
49
-
50
- output = import_raw_to_h5ad(
51
- VIBFRAME,
52
- OUTPUT,
53
- config=config,
54
- block_size_mib=32,
55
- )
56
-
57
- print("Created:", output)
58
-
59
- validation = validate_streamed_h5ad(output)
60
- print(validation)