Skip to main content

Toolbox for analysis on segmented images from MIBI

Project description

Build Status Coverage Status

ark-analysis

Toolbox for analyzing multiplexed imaging data

Full documentation for the project can be found here

Info

This project contains code and example scripts for analyzing multiplexed imaging data

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/ark-analysis.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 ark-analysis
$ docker build -t ark-analysis .

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.

Using the example notebooks:

  • The Segment_Image_Data notebook walks you through the appropriate steps to format your data, run the data through deepcell, extracts the counts for each marker in each cell, and creats a csv file with the normalized counts
  • The spatial_analysis notebook contains code for performing cluster- and channel-based randomization, as well as neighborhood analysis.
  • The example_visualization notebooks contains code for basic plotting functions and visualizations

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

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 Segment_Image_Data.ipynb to Segment_Image_Data_old.ipynb. Then, after running the update command, a new version of Segment_Image_Data.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

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

ark-analysis-0.2.7.tar.gz (58.3 kB view details)

Uploaded Source

File details

Details for the file ark-analysis-0.2.7.tar.gz.

File metadata

  • Download URL: ark-analysis-0.2.7.tar.gz
  • Upload date:
  • Size: 58.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for ark-analysis-0.2.7.tar.gz
Algorithm Hash digest
SHA256 47ef791b3904cbd45c3672e336a9ae22ce5548aa3411a0219e8ed2c2a0af65f2
MD5 33f0f17ade7ecdc90864f32b86a80171
BLAKE2b-256 c47024024532caeee4440e78229516ce45644948389ded61b9452852f8a0dc7e

See more details on using hashes here.

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