Giter Site home page Giter Site logo

cpsc583-project's Introduction

Utilizing the Graph Neural Networks for annotation of Spatial Single-cell Datasets

This project is a part of CPSC 583: Deep Learning for Graph Structured Data Course

This project is a modification over the study by Brbic et al. (2022) Nature Methods. The work is titled "Annotation of spatially resolved single-cell data with STELLAR"

Installation

1. Python environment (Optional): We recommend using Conda package manager. The steps to install the required packages are given below.

module load miniconda
conda create --name pytorch_env python=3.8 pytorch torchvision torchaudio torch-geometric cudatoolkit=11.3 -c pytorch
conda activate pytorch_env
pip install pyg-lib torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-1.13.0+cpu.html
pip install torch-geometric
pip install -r requirements.txt

Datasets

CODEX multiplexed imaging datasets is available at dryad.

Running the complete code

This step may consume a lot of memory (32GB RAM) and time (30 * 10 minutes).

sh run_script.sh

Running individual hubmap models

python3 run_stellar.py --dataset Hubmap --num-heads 22 --model GAT --randseed 2 --sample-rate 1.0

GAT can be changed to any of the following models

  • FullyConnected
  • GCN
  • GraphSAGE
  • Transformers

Running individual TonsilBE models

python3 run_stellar.py --dataset TonsilBE --num-heads 13 --sample-rate 0.35 --model GraphSAGE

Pre-recorded results

Results of the trials that I had run are given in Hubmap_results.csv and TonsilBE_results.csv. The first three rows are the accuracy results for three different runs on the different dataset split using different random seeds. The last three rows are balanced accuracy results for each of the three different runs. The columns are representative of different models tested - (Fully Connected (FC), Graph Convolutional Network (GCN), Graph Attention Network (GAT), GraphSAGE and Graph Transformer).

cpsc583-project's People

Contributors

burhansabuwala avatar

Watchers

 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.