File size: 473 Bytes
71ce2b1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | """Export current compact obs values and counts to docs/obs_unique.json."""
from pathlib import Path
from prepare import export_obs_statistics
def main():
root = Path(__file__).resolve().parents[1]
paths = sorted(root.glob("*/data/*.h5ad"))
if not paths:
raise FileNotFoundError("No prepared datasets; run scripts/prepare.py first")
for path in paths:
print(export_obs_statistics(path), flush=True)
if __name__ == "__main__":
main()
|