These installation instructions are very preliminary, and surely will not work on all systems. But if any problems come up, do not hesitate to contact us (ideally via Github issue).
Before running any scripts, you should create a virtual Python environment. In these instructions, we use Miniconda for managing your virtual environments, but any alternative like Conda, Mamba, virtualenv, venv, ... should be fine.
If you don't have any, you could install Miniconda from the official website.
Now you can create a new virtual environment using
conda create --name <env_name> python=3.9In order to use it, you need to activate the environment:
conda activate <env_name>The easiest way to install MemBrain-pick and its dependencies (except for surforama, see below) is to type
pip install membrain-pickThis should install MemBrain-pick directly from PyPI.
Make sure to have git installed, then run
git clone https://github.com/CellArchLab/membrain-pick.gitMove to the folder "membrain-pick" (from the cloned repository above) that contains the "src" folder. Here, run
cd membrain-pick
pip install .This will install MemBrain-seg and all dependencies required for segmenting your tomograms.
As a first check whether the installation was successful, you can run
membrain_pickThis should display the different options you can choose from MemBrain, like "segment" and "train", similar to the screenshot below:
In order to visualize the results of MemBrain-pick, you can use surforama. However, the current official version of surforama has some compatibility issues with the current version of MemBrain-pick. Therefore, it's best to install it via
- close repo https://github.com/LorenzLamm/surforama.git
- switch to branch "star_file_loading_adjustments"
- install via
pip install .
git clone https://github.com/LorenzLamm/surforama.git
cd surforama
git checkout star_file_loading_adjustments
pip install .
pip install napariWe are working on a more stable version of surforama that will be compatible with the current version of MemBrain-pick.