Skip to content

Jupyter-based tool for membrane segmentation manipulation

License

Notifications You must be signed in to change notification settings

Luc1100/colabseg

 
 

Repository files navigation

Colabseg Tool: Jupyter-based Membrane Segmentation Manipulation


Build and Testing python3.8 License

General Remarks

WARNING: This installation guide is only valid for MacOS or linux


Preliminary Installation and use on Linux machines

Make an environment with anaconda and open it:

conda env create -f environment.yml --name YOUR_ENV_NAME
source activate YOUR_ENV_NAME

Run pip in the folder where setup.py is located:

pip install .

This also installs all necessary dependencies.

Then add this environment as jupyter kernel and then boot a new jupyter notebook or better the demo notebook colabseg_demo_notebook.ipynb in the colabseg folder:

python -m ipykernel install --user --name=YOUR_ENV_NAME
jupyter notebook colabseg_demo_notebook.ipynb

Make sure to pick the correct environment as kernel to have access to the installed software. Execute the cells in order. It is possible to skip the tensorvoting step if segmented data is already available. Then simply load the .mrc file and load. Alternatively, you can load a .h5 file which is a specific state file of the software which contains all the metadata of the classes.

When loading a new file it is advised to either restart the kernel and start from the top of the notebook. Or at least re-run the file loading cell. This will purge any existing data and avoid potential issues in the experimental stage.

MemBrain-seg installation

If you would like to use MemBrain-seg to create initial membrane segmentations, you can install it to your environment via

git clone https://github.com/teamtomo/membrain-seg.git
cd membrain-seg
pip install .

or refer to MemBrain-seg's installation instructions.

Detailed User Guide:

Detailed tutorial and user guide can be found here.

About

Jupyter-based tool for membrane segmentation manipulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 89.2%
  • Python 10.8%