Metadata-Version: 2.4
Name: bellastore
Version: 1.0.0
Summary: Digital pathology storage manager for WSI scans
Author-email: Paul Huettl <paulhuettl@web.de>, Lukas Wolfseher <lukas.wolfseher@informatik.uni-regensburg.de>
Project-URL: Source, https://github.com/spang-lab/bellastore
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pandas>=2.0.0
Dynamic: license-file

# Bellatrix Storage

Organizing whole slide image scans (one of the main data sources in digital pathology) by automatically creating a storage and keeping track of new data via an sqlite database.
This database is particularly helpful when querying specific slides for downstream tasks
via our custom digital pathology API `bellapi`.

## Installation

The source code is currently hosted under [https://github.com/spang-lab/bellastore](https://github.com/spang-lab/bellastore).

Binary installers are available at PyPi.

```sh
pip install bellastore
```

## Usage

Installing the package will automatically install the binaries for the two main scripts.
- `bellastore-insert` inserts new scans from ingress to storage
- `bellastore-backup` backups the sqlite database

```sh
# For dry run (scans will not be moved and database will not be changed)
bellastore-insert --root_dir <directory holding storage and backup> \ 
                        --ingress_dir <directory_holding_new_scans> \
                        --sqlite_name <name of sqlite database>

# Moving slides and recording in database
bellastore-insert --root_dir <directory holding storage> \ 
                        --ingress_dir <directory_holding_new_scans> \
                        --sqlite_name <name of sqlite database> \
                        --move

# Create backup of database in backup directory
bellastore-backup --root_dir <directory holding storage and backup> \
                            --sqlite_name <name of sqlite database>
```

## Documentation

Along with the [source code](https://github.com/spang-lab/bellastore), under `docs/demo.ipynb` we provide a demo of the main usecase of the package, that leads you trough the steps of the main integration test `tests/test_db_fs.py::test_classic`.\
The package comes with a test suite, serving to demonstrate the functionality of each unit of the package.


