Skip to content

theislab/tissue

Repository files navigation

Tissue

Features

tissue is a model repository in a single python package for the manuscript Fischer, D. S., Ali, M., Richter, S., Etrürk, A. and Theis, F. "Graph neural networks learn emergent tissue properties from spatial molecular profiles."

Screenshot 2023-07-31 at 18 49 03

Screenshot 2023-07-31 at 18 49 37

Installation

You can install Tissue via :

$ git clone tissue
$ cd tissue
$ pip install -e .

Requirements

You can install the requirements via:

$ pip install -r requirements.txt

Tutorial

We have provided an analysis tutorial notebook for one of the dataset used in the study.

Usage

The repository consists of different components

I. Data loading: datasets can be defined under data/datasets.py and pytorch geometric dataloaders are adjusted accordingly in data/loading.py

II. Models: graph neural networks and baseline models as described in the paper, the following models can be found under modules/:

GNN

  1. Graph convolutional network (GCN)
  2. Graph isomorphism network (GIN)
  3. GCN with self-supervision (GCN-SS)
  4. Graph attention network (GAT)

Baseline models

Scenario 1: Mean node features models

  1. Multi-Layer Preceptron (MLP)
  2. Random Forest
  3. Logistic regression

Scenario 2: Single cell/cell type models

  1. Multi-instance (MI) on single cell level
  2. Aggregation multi-instance (AGG) on cell type level

Scenario 3: Spatial models

  1. Graph neural network without node features
  2. Node degree models (random forest and/or logistic regression)
  3. Dispersion model

The models can be trained using the training scripts provided under train/.

III. Summary and evaluation of models: model evaluation and plotting functions are defined in train/summaries.py

IV. Model interpretation: interpretation methods on graph and node embedding levels are implemented under interpretation/

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, Tissue is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from @cjolowicz's Hypermodern Python Cookiecutter template.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published