-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpixi.toml
119 lines (100 loc) · 6.49 KB
/
pixi.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
[project]
name = "Dataset Alignment"
version = "0.1.0"
description = "Add a short description here"
authors = ["Tim-Oliver Buchholz <[email protected]>"]
channels = ["conda-forge", "nvidia", "bioconda"]
platforms = ["linux-64", "win-64"]
[system-requirements]
# Minimum linux version for this project to work.
# This is necessary of some HPC setups, which run on e.g. Rocky Linux 8.
linux="4.18"
[tasks]
source_status = { cmd = 'echo "Found $(git status --porcelain source | wc -l) untracked changes in ./source." && exit $(git status --porcelain source | wc -m)'}
log_commit = {cmd = 'echo "[$(date -Iseconds)][Executing] $TASK [Git-Commit] $(git rev-parse --verify HEAD)" >> $WD/githash.log', env = {TASK = ""}}
build_config_s01 = { cmd = "mkdir -p $WD ; TASK=BUILD_CONFIG pixi run log_commit ; cd $WD ; python ../../source/s01_parsing_sbem_acquisition/build_config.py", env = { WD = "runs/example"}, depends_on=["source_status"]}
parse_sbem_acquisition = { cmd = "TASK=PARSE_SBEM_ACQUISITION pixi run log_commit ; cd $WD ; python ../../source/s01_parsing_sbem_acquisition/s01_parse_data.py --config parsing_config.yaml", env = { WD = "runs/example"}, depends_on=["source_status"] }
build_tile_masking_config = { cmd = "TASK=BUILD_TILE_MASKING_CONFIG pixi run log_commit ; cd $WD ; python ../../source/s02_compute_tile_masks/parse_sections_config.py", env = { WD = "runs/example"}, depends_on=["source_status"]}
submit_mask_workflow_slurm = { cmd = "TASK=SUBMIT_MASK_WORKFLOW_SLURM pixi run log_commit ; sbatch source/s02_compute_tile_masks/slurm-job_run-workflow.sh $ACCOUNT $MAILTO $WD", env = { ACCOUNT = "", MAILTO = "", WD = "runs/example"}, depends_on=["source_status"] }
submit_sbem_parsing_slurm = { cmd = "TASK=SUBMIT_SBEM_PARSING_SLURM pixi run log_commit ; sbatch source/s01_parsing_sbem_acquisition/slurm-job_run-parsing.sh $ACCOUNT $WD", env = { ACCOUNT = "", WD = "runs/example"}, depends_on=["source_status"] }
build_estimate_coarse_offsets_config = { cmd = "TASK=BUILD_ESTIMATE_COARSE_OFFSETS_CONFIG pixi run log_commit ; cd $WD ; python ../../source/s03_estimate_coarse_offsets/parse_sections_config.py", env = { WD = "runs/example"}, depends_on=["source_status"] }
submit_estimate_coarse_offset_slurm = { cmd = "TASK=SUBMIT_ESTIMATE_COARSE_OFFSETS_SLURM pixi run log_commit ; sbatch source/s03_estimate_coarse_offsets/slurm-job_run-workflow.sh $ACCOUNT $MAILTO $WD", env = { ACCOUNT = "", MAILTO = "", WD = "runs/example"}, depends_on=["source_status"] }
backup_coarse_offsets = { cmd = "TASK=BACKUP_COARSE_OFFSETS pixi run log_commit ; cd $WD ; python ../../source/s04_proof_read_coarse_offsets/backup_coarse_offsets.py --config parsing_config.yaml", env = { WD = "runs/example"}, depends_on=["source_status"] }
plot_traces = { cmd = "TASK=PLOT_TRACES pixi run log_commit ; cd $WD ; python ../../source/s04_proof_read_coarse_offsets/plot_traces.py --config parsing_config.yaml", env = { WD = "runs/example"}, depends_on=["source_status"] }
identify_outliers = { cmd = "TASK=IDENTIFY_OUTLIERS pixi run log_commit ; cd $WD ; python ../../source/s04_proof_read_coarse_offsets/identify_outliers.py --config parsing_config.yaml", env = { WD = "runs/example"}, depends_on=["source_status"] }
[dependencies]
python = "3.11"
ome-zarr = ">=0.9.0,<0.10"
pandas = ">=2.2.2,<2.3"
scikit-image = ">=0.24.0,<0.25"
tqdm = ">=4.66.4,<4.67"
zarr = ">=2.18.2,<2.19"
numpy = "<2.0"
questionary = ">=2.0.1,<2.1"
numcodecs = ">=0.12.1,<0.13"
fsspec = ">=2024.6.1,<2024.7"
psutil = ">=6.0.0,<6.1"
scipy = ">=1.14.0,<1.15"
opencv = ">=4.8.1,<4.11"
edt = ">=2.4.1,<2.5"
absl-py = ">=2.1.0,<2.2"
matplotlib = ">=3.9.1,<3.10"
pixi-pycharm = ">=0.0.6,<0.1"
pydantic = ">=2.8.2,<2.9"
[pypi-dependencies]
sofima = {git="https://github.com/ganctom/sofima", branch="dev"}
em_alignment = {git="https://github.com/fmi-basel/gfriedri-em-alignment", branch="create_tile-id_maps"}
jax = "*"
faim-ipa = ">=0.3.13, <0.4"
[feature.docs.dependencies]
mkdocs-material = ">=9.5.18,<9.6"
mkdocs-git-committers-plugin-2 = ">=2.3.0,<2.4"
mkdocstrings = ">=0.24.3,<0.25"
mkdocstrings-python = ">=1.9.2,<1.10"
mkdocs = ">=1.5.3,<1.6"
mkdocs-git-revision-date-localized-plugin = ">=1.2.4,<1.3"
[feature.docs.tasks]
clean_docs = "rm -rf site"
build_docs = { cmd ="OFFLINE=TRUE mkdocs build", depends_on=["clean_docs"] }
show_docs = "mkdocs serve"
[feature.dev.dependencies]
pre-commit = ">=3.1.1,<3.8"
pytest = ">=8.3.3,<9"
pytest-cov = ">=5.0.0,<6"
[feature.dev.tasks]
install_hooks = "pre-commit install"
lint = { cmd="pre-commit run --all-files", depends_on=["install_hooks"] }
tests = "pytest --cov=source --cov-report=html"
[feature.dev.target.linux.pypi-dependencies]
memray = ">=1.13.3, <1.14"
[feature.nextflow.target.linux-64.dependencies]
nextflow = ">=23.10.1,<23.11"
[feature.nextflow.target.linux-64.tasks]
mask_workflow_slurm = { cmd = "WD=$WD TASK=MASK_WORKFLOW_SLURM pixi run log_commit ; cd $WD ; nextflow run ../../source/s02_compute_tile_masks/masking_workflow.nf --parse_sections_config $(pwd)/mask_workflow_config.yaml -profile slurm -with-report -resume -with-timeline -N $MAIL", env = { WD = "runs/example", MAIL = ""}, depends_on = ["source_status"] }
estimate_coarse_offsets_slurm = { cmd = "WD=$WD TASK=ESTIMATE_COARSE_OFFSETS_SLURM pixi run log_commit ; cd $WD ; nextflow run ../../source/s03_estimate_coarse_offsets/coarse_offset_workflow.nf --config $(pwd)/s03_estimate_coarse_offsets_workflow_config.yaml -profile slurm -with-report -resume -with-timeline -N $MAIL", env = { WD = "runs/example", MAIL = ""}, depends_on = ["source_status"] }
[feature.jupyter.dependencies]
jupyter = ">=1.0.0,<1.1"
[feature.jupyter.tasks]
jupyter = "jupyter lab"
cp_proof_read_masks = { cmd = "cp source/s02_compute_tile_masks/Proof_Read_Masks.ipynb $WD", env = { WD = "runs/example"}, outputs=["$WD/Proof_Read_Masks.ipynb"]}#, depends_on=["source_status"] }
proof_read_masks = { cmd = "TASK=PROOF_READ_MASKS pixi run log_commit ; cd $WD ; jupyter lab ./Proof_Read_Masks.ipynb", env = { WD = "runs/example"}, depends_on=["cp_proof_read_masks"]}#, depends_on=["source_status"] }
[feature.nbdev.dependencies]
nbdev = ">=2.2.10,<2.3"
[feature.nbdev.tasks]
clean = "nbdev_clean --clear_all"
[feature.napari.dependencies]
napari = ">=0.5.0,<0.6"
pyqt = "*"
[feature.cuda]
system-requirements = {cuda = "11"}
[feature.cuda.target.linux-64.dependencies]
jaxlib= { version="*", build="*cuda112*" }
cuda-nvcc = {version="=11.7", channel="nvidia"}
[environments]
docs = ["docs"]
dev = ["dev"]
nextflow = ["nextflow"]
jupyter = ["jupyter", "napari"]
nbdev = {features=["nbdev"], no-default-feature = true}
napari = ["napari"]
cuda = ["cuda"]