Skip to main content

Source for extracting .bin files from the commercial MIBI.

Project description

mibi-bin-tools

CI / CD CI Coverage Status
Package PyPI - Version PyPI - Downloads PyPI - Python Version
Meta PyPI - License

Toolbox for extracting tiff images from MIBIScope .bin files

Installation:

PyPI

pip install mibi-bin-tools

Source

Open terminal and navigate to where you want the code stored.

Then input the command:

git clone https://github.com/angelolab/mibi-bin-tools.git

Next, you'll need to set up a docker image with all of the required dependencies.

  • First, download docker desktop.
  • Once it's sucessfully installed, make sure it is running by looking in toolbar for the Docker whale.
  • Once it's running, enter the following commands into terminal
cd mibi-bin-tools
docker build -t mibi-bin-tools '.'

You've now installed the code base.

Whenever you want to run the scripts:

Enter the following command into terminal from the same directory you ran the above commands:

bash start_docker.sh

This will generate a link to a jupyter notebook. Copy the last URL (the one with 127.0.0.1:8888 at the beginning) into your web browser.

Be sure to keep this terminal open. Do not exit the terminal or enter control-c until you are finished with the notebooks.

NOTE

If you already have a Jupyter session open when you run ./start_docker.sh, you will receive a couple additional prompts.

Copy the URL listed after Enter this URL instead to access the notebooks:

You will need to authenticate. Note the last URL (the one with 127.0.0.1:8888 at the beginning), copy the token that appears there (it will be after token= in the URL), paste it into the password prompt of the Jupyter notebook, and log in.

Using the example notebook(s):

  • The ExtractBinFiles notebook provides an easy interface for getting tifs from bin files.

Once you are finished

You can shut down the notebooks and close docker by entering control-c in the terminal window.

Updates

This project is still in development, and we are making frequent updates and improvements. If you want to update the version on your computer to have the latest changes, perform the following steps

First, get the latest version of the code

git pull

Then, run the command below to update the jupyter notebooks to the latest version

bash start_docker.sh --update

or

bash start_docker.sh -u

If the requirements.txt has changed, Docker will rebuild with the new dependencies first.

WARNING

If you didn't change the name of any of the notebooks within the scripts folder, they will be overwritten by the command above!

If you have made changes to these notebooks that you would like to keep (specific file paths, settings, custom routines, etc), rename them before updating!

For example, rename your existing copy of ExtractBinFile.ipynb to ExtractBinFile_old.ipynb. Then, after running the update command, a new version of ExtractBinFile.ipynb will be created with the newest code, and your old copy will exist with the new name that you gave it.

After updating, you can copy over any important paths or modifications from the old notebooks into the new notebook

Questions?

If that doesn't answer your question, you can open an issue. Before opening, please double check and see that someone else hasn't opened an issue for your question already.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mibi-bin-tools-0.2.10.tar.gz (1.4 MB view hashes)

Uploaded Source

Built Distributions

mibi_bin_tools-0.2.10-cp311-cp311-win_arm64.whl (73.0 kB view hashes)

Uploaded CPython 3.11 Windows ARM64

mibi_bin_tools-0.2.10-cp311-cp311-win_amd64.whl (85.1 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

mibi_bin_tools-0.2.10-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (631.8 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.28+ x86-64

mibi_bin_tools-0.2.10-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl (627.0 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ ARM64 manylinux: glibc 2.28+ ARM64

mibi_bin_tools-0.2.10-cp311-cp311-macosx_11_0_arm64.whl (223.4 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

mibi_bin_tools-0.2.10-cp311-cp311-macosx_10_9_x86_64.whl (232.3 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ x86-64

mibi_bin_tools-0.2.10-cp311-cp311-macosx_10_9_universal2.whl (303.7 kB view hashes)

Uploaded CPython 3.11 macOS 10.9+ universal2 (ARM64, x86-64)

mibi_bin_tools-0.2.10-cp310-cp310-win_arm64.whl (73.2 kB view hashes)

Uploaded CPython 3.10 Windows ARM64

mibi_bin_tools-0.2.10-cp310-cp310-win_amd64.whl (86.1 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

mibi_bin_tools-0.2.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (609.5 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.28+ x86-64

mibi_bin_tools-0.2.10-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl (604.4 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ ARM64 manylinux: glibc 2.28+ ARM64

mibi_bin_tools-0.2.10-cp310-cp310-macosx_11_0_arm64.whl (225.0 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

mibi_bin_tools-0.2.10-cp310-cp310-macosx_10_9_x86_64.whl (233.8 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ x86-64

mibi_bin_tools-0.2.10-cp310-cp310-macosx_10_9_universal2.whl (306.8 kB view hashes)

Uploaded CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64)

mibi_bin_tools-0.2.10-cp39-cp39-win_amd64.whl (86.9 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

mibi_bin_tools-0.2.10-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl (610.9 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.28+ x86-64

mibi_bin_tools-0.2.10-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl (609.1 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ ARM64 manylinux: glibc 2.28+ ARM64

mibi_bin_tools-0.2.10-cp39-cp39-macosx_11_0_arm64.whl (223.6 kB view hashes)

Uploaded CPython 3.9 macOS 11.0+ ARM64

mibi_bin_tools-0.2.10-cp39-cp39-macosx_10_9_x86_64.whl (232.4 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ x86-64

mibi_bin_tools-0.2.10-cp39-cp39-macosx_10_9_universal2.whl (304.7 kB view hashes)

Uploaded CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64)

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page