Skip to content

ylabjp/ylab-common-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

115 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Describe the shared, common framework

ylab-common-scripts (ylabcommon)


Suggested structure:

ylabcommon a shared utilities, hybrid classes for microscopy dataset reconstruction pipelines developed by YLab.

This framework provides share classes, codesi, and Microscope-specific loaders such as:

  • Thorlab microscopy pipeline

  • Keyence microscopy pipeline

  • Reuse for others only in future


The framework is built on top of BioIO and provides standardized tools for:

  • image stacking

  • metadata extraction

  • dataset validation

  • OME output writing

  • dataset reporting

Repository Structure


Features:

  • BioIO-based microscopy IO

  • automatic stack reconstruction

  • metadata standardization

  • dataset validation

  • OME-TIFF writing

  • dataset summary reports


Installation

Clone repository:

git clone https://github.com/ylabjp/ylab-common-scripts.git
cd ylab-common-scripts

Setup virtual environment using uv

uv sync

Install package and dependencies in editable mode

uv pip install -e .

Dependency Note

This package is intended to be used as a dependency of microscope-specific pipelines.

Example dependency:

ylabcommon = { git = "https://github.com/ylabjp/ylab-common-scripts" }

During development/work locally use local path:

ylabcommon = { path = "../YlabCommonScripts/ylab-common-scripts", editable = true }


If environment issues occur:, don't worry run diagnostic script

source env_common_fix.sh

Run Unit/pytest

-Unit tests (default)

pytest \
  --ignore src/ylabcommon/analysis/ \
  --ignore=src/ylabcommon/utils       % Just ignore these folder

-Local dataset validation

uv run pytest tests/ -m integration\_bioio
  --local-tiff-dir "Your local tiff's directory path"
  --local-xml \

-Google Drive dataset

uv run pytest tests \
  -v -m gdrive -s --gdrive-folder \
  --gdrive-folder "URL" \
  --gdrive-sa-json "/credentials.json"

Future Work

  • extended validation tools

  • improved metadata handling

  • additional report utilities


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors