Coder Social home page Coder Social logo

broadinstitute / luad-cell-painting Goto Github PK

View Code? Open in Web Editor NEW
5.0 7.0 4.0 379.36 MB

Repository for analysis of CellPainting data in the LUAD dataset

Home Page: https://broadinstitute.github.io/luad-cell-painting/

Python 1.70% Shell 0.08% Jupyter Notebook 98.22%

luad-cell-painting's Introduction

LUAD analysis using DeepProfiler

This repository contains the source code to run the cmVIP analysis in the LUAD dataset.

Profiling

1. Install requirements

This folder is a DeepProfiler project. Experiments reported in the paper used the c91b9d8 commit.

To install the dependencies, including the DeepProfiler version we used, run:

$ pip install -r requirements.txt

2. Download the data

Be aware this script will override any previous data. To download the data run:

$ utils/download_all.sh

3. Prepare the data.

  1. Run extract_locations.py script to generate location files.

  2. Use DeepProfiler to prepare the dataset:

$ python3 -m deepprofiler --root=./ --config luad.json --gpu 0 prepare

--gpu option sets the GPU id to use.

4. Extract features.

Use DeepProfiler to extract features:

$ python3 -m deepprofiler --gpu 0 --exp efn_pretrained --root ./ --config luad.json profile

5. Create well profiles.

To create the well-based profiles run:

$ python3 utils/create_profiles.py

It will write a pd.DataFrame in parquet with profiles.

VIP analysis

The analysis is split in three notebooks:

Notes about the dataset

From the paper:

An additional 88 constructs are included in the dataset, representing TP53 alleles that inadvertently had double mutations. A comprehensive description of the process for selecting the constructs that were analyzed is presented in Supplementary Figure 2.

We have filtered out these constructs in the Filter quality control status section of the 2-Cell-Morphology-VIP.ipynb notebook.

luad-cell-painting's People

Contributors

johnarevalo avatar jccaicedo avatar

Stargazers

 avatar Samir Amin avatar Iffat avatar Andrea Possenti avatar Shuangjia Zheng avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar  avatar  avatar

luad-cell-painting's Issues

No Cells to Profile

I have managed to follow profiling steps 1-3 (requirements installation, data download, data preparation) without any apparent issues.
However, when I run the command shown in step 4 to extract features, I encounter 2 issues:

  1. First, I get KeyError: label_smoothing. This was easily resolved by adding "label_smoothing": 0.0 under train: model: params
  2. After resolving issue 1, the profile command runs but says No cells to profile for each image (ex: No cells to profile: .//outputs/efn_pretrained/features//52649/p10/3.npz)

I have tried running step 4 with both the latest commit of DeepProfiler as well as commit c91b9d8 which is mentioned in this repository.

Why is DeepProfiler not able to detect any cells to profile?

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.