Skip to content

Latest commit

 

History

History
 
 

cell_embedder

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Generating embeddings for cell painting microscopy images.

This python notebook generates embeddings for microscopy images stained using cell painting assays.

This was used in papers:

  1. Applying Deep Neural Network Analysis to High-Content Image-Based Assays. (in SLAS Discovery)
  2. It's easy to fool yourself: Case studies on identifying bias and confounding in bio-medical datasets. (in NeurIPS 2019 workshops)

Download the sample data and weights.

To run the accompanying colab, you need:

  1. A sample image (5 stains), and
  2. weights to the random projection matrix.

These files are available for download here. We use sample images from BBBC025 in this notebook.

Other data accompanying the paper are here

Running the notebook

  1. Run the cells in Install + Imports.

  2. Download the weights and sample images here. You should be able to select "Add shortcut to drive" to run this notebook. Note that you can use your own images, but you'll likely need the weights to get an embedding identical to the ones in the paper.

  3. Set the DATA_DIR variable to the location where the images and weights live, and make sure to run that cell to initialize the paths to the images and the model weights.

  4. Run the subsequent cells: Helper functions and Load Images (sorted by stain names). You should be able to see the sample images. Also run Build model and initialize weights.

  5. Now run the cell under Get Embeddings section. It should give you a 320d vector and will plot it.

Resources/Links

  1. Applying Deep Neural Network Analysis to High-Content Image-Based Assays. (in SLAS Discovery)
  2. It's easy to fool yourself: Case studies on identifying bias and confounding in bio-medical datasets. (in NeurIPS 2019 workshops)
  3. Link to download weights and sample image to run the notebook
  4. (TO COME SOON) Link to download full data accompanying the paper

This project is not an official Google product.