add napari module
This commit is contained in:
12
EM/napari/README.md
Normal file
12
EM/napari/README.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# napari-boxmanager
|
||||
|
||||
The napari module is built in combination with the crYOLO module :
|
||||
|
||||
From crYOLO/1.9.9 crYOLO exists as two different conda envs, one crYOLO (code itself) env, one napari (visualization) env.
|
||||
The installation notes recommend to link one into another, on Merlin7 simply two different modules and envs exist.
|
||||
Users need to load one env in one terminal ( crYOLO itself) and another for visualization (napari).
|
||||
|
||||
## Adding New Versions
|
||||
|
||||
Adding new versions: change the environment file in the build folder accordingly (and the config.yaml file) and run the build script.
|
||||
|
||||
27
EM/napari/build
Executable file
27
EM/napari/build
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env modbuild
|
||||
|
||||
|
||||
pbuild::configure() {
|
||||
#MINICONDA INSTALL
|
||||
mkdir -p "$PREFIX/miniconda"
|
||||
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O "$PREFIX/miniconda/miniconda.sh"
|
||||
bash "$PREFIX/miniconda/miniconda.sh" -b -u -p "$PREFIX/miniconda/"
|
||||
|
||||
|
||||
#CREATE ENV , make sure to source the "correct" conda.sh
|
||||
"$PREFIX/miniconda/condabin/conda" env create --name "${P}_${V}" -f "$BUILDBLOCK_DIR/environment.yaml"
|
||||
|
||||
}
|
||||
|
||||
#DO NOTHING
|
||||
pbuild::compile(){
|
||||
:
|
||||
}
|
||||
|
||||
pbuild::install(){
|
||||
:
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
11
EM/napari/environment.yaml
Normal file
11
EM/napari/environment.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
channels:
|
||||
- conda-forge
|
||||
- anaconda
|
||||
dependencies:
|
||||
- python=3.10
|
||||
- pyqt
|
||||
- napari=0.4.17
|
||||
- pip
|
||||
- pip:
|
||||
- napari-boxmanager
|
||||
|
||||
13
EM/napari/files/config.yaml
Normal file
13
EM/napari/files/config.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
format: 1
|
||||
napari:
|
||||
defaults:
|
||||
group: EM
|
||||
overlay: base
|
||||
relstage: unstable
|
||||
versions:
|
||||
0.4.17:
|
||||
variants:
|
||||
- overlay: Alps
|
||||
systems: [.*.merlin7.psi.ch]
|
||||
relstage: unstable
|
||||
34
EM/napari/modulefile
Normal file
34
EM/napari/modulefile
Normal file
@@ -0,0 +1,34 @@
|
||||
#%Module
|
||||
|
||||
module-whatis "Particle selection tool for cryo-em (crYOLO) "
|
||||
module-url "https://cryolo.readthedocs.io/en/stable/installation.html#install-napari-and-the-boxmanager-plugin"
|
||||
module-license "SPHIRE-crYOLO Complimentary Science Software License (http://sphire.mpg.de/wiki/doku.php?id=cryolo_license). Non-commercial academic and research purposes only"
|
||||
module-maintainer "Greta Assmann <greta.assmann@psi.ch>"
|
||||
|
||||
module-help "Napari-Boxmanager is a tool to use in combination with crYOLO (visualization for particle picking) "
|
||||
|
||||
# Check for supported shell types
|
||||
set shelltype [module-info shelltype]
|
||||
switch -- $shelltype {
|
||||
"sh" {
|
||||
puts stdout "conda(){ :; };"
|
||||
puts stdout "set +u"
|
||||
puts stdout "source \"${PREFIX}\"/miniconda/etc/profile.d/conda.sh;\n"
|
||||
}
|
||||
default {
|
||||
puts stderr "Shells of type '$shelltype' are NOT supported!"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
switch [module-info mode] {
|
||||
"load" {
|
||||
# Relies on the anaconda module being loaded since we need to update the path
|
||||
puts stdout "conda activate ${P}_${V};\n"
|
||||
}
|
||||
"unload" -
|
||||
"remove" {
|
||||
puts stdout "conda deactivate;\n"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user