This library provides simple APIs to manage cycIF quantification data.
pip install -e .
ansible-playbook -i playbook/inventory.yml playbook/install_db.yml
pip install -r requirements.txt
python scripts/create_db.py
alembic upgrade head
alembic downgrade -1
alembic revision --autogenerate -m "{slug}" --rev-id {id}
python scripts/download_datasets.py {sample_name} {datasets_id} [{datasets_id} ...]
python scripts/insert_or_sync_stock_markers.py
python scripts/add_sample_complex.py -d {folder / sample_name}
or
python scripts/add_sample_complex.py "{sample_name}__{tag}" {path_to_cells} {path_to_markers}
from cycif_db import CycSession
csess = CycSession()
sample_list = csess.list_samples(detailed=False)
df = csess.get_cells_for_sample(sample/sample_id, to_path=None)
df = csess.get_cells_from_samples(sample_list/sample_id_list, marker_filter='intersection', to_path=None)
csess.close()