Giter Club home page Giter Club logo

mibi-bin-tools's Introduction

Build Status Coverage Status

mibi-bin-tools

Toolbox for extracting tiff images from MIBIScope .bin files

To install the project:

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.

mibi-bin-tools's People

Contributors

ackagel avatar camisowers avatar christianrickert avatar ngreenwald avatar srivarra avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.