No project description provided
Project description
Morpheus is an integrated deep learning framework that takes large scale spatial omics profiles of patient tumors, and combines a formulation of T-cell infiltration prediction as a self-supervised machine learning problem with a counterfactual optimization strategy to generate minimal tumor perturbations predicted to boost T-cell infiltration.
Update: We are currently working on tutorial notebooks for running optimization on Slurm with fan-out across multiple CPU nodes, stay tuned!
Getting Started
Prerequisites
- Python >=3.9, <3.12
- PyTorch Lightning 2.2.0 or higher
- CUDA 11.7 or higher (for GPU acceleration)
- Other dependencies listed in
requirements.txt
Note numpy 2.0 or above not currently supported
Installation
Option 1: Using pip (PyPI)
Run the following in the command line
pip install morpheus-spatial
Option 2: From Source
To install Morpheus from source, clone the repository and install the dependencies:
git clone https://github.com/neonine2/morpheus-spatial.git
cd morpheus-spatial
pip install -r requirements.txt
pip install .
Tutorial
See tutorial_notebook.ipynb
for a complete, self-contained workflow on using Morpheus to generate therapeutic strategies.
Known Issues
OpenMP Conflicts on macOS
Some users may encounter warnings about conflicting OpenMP libraries. If you see a warning about Intel OpenMP and LLVM OpenMP being loaded at the same time, please see https://github.com/joblib/threadpoolctl/blob/master/multiple_openmp.md for more information and possible workarounds.
Repository Structure
assets/
: Contains images and other assets used in the documentation and the project.examples/
: Example scripts and notebooks demonstrating various use cases of the Morpheus framework.tutorial.ipynb
: A notebook demonstrating how to reproduce the primary analyses of the paper.
reproduction/
: Includes Jupyter notebooks and scripts for reproducing the main analyses presented in the associated research paper.reproduction_notebook.ipynb
: A notebook demonstrating how to reproduce the primary analyses of the paper.
src/
: The main package directory containing all core modules and functions.tests/
: Contains unit tests for the different modules of the package.requirements.txt
: A file listing all Python dependencies required to run the project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file morpheus_spatial-1.0.6.tar.gz
.
File metadata
- Download URL: morpheus_spatial-1.0.6.tar.gz
- Upload date:
- Size: 35.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.8.3 Linux/5.14.0-362.24.1.el9_3.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a7f191535889b1759f8c0c08b9bddc076a1a37b870a3e260edd757f72c38ead |
|
MD5 | 2ccd5ad26f122feec870f068bfc8bdd2 |
|
BLAKE2b-256 | b944c6dc31bc3c98d5588535302f54de7bac68d06e50928f5b528a1d212691e6 |
File details
Details for the file morpheus_spatial-1.0.6-py3-none-any.whl
.
File metadata
- Download URL: morpheus_spatial-1.0.6-py3-none-any.whl
- Upload date:
- Size: 40.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.8.3 Linux/5.14.0-362.24.1.el9_3.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e37e569b33f14f18ec68cbfd52956c179e6173e093c651d1046832f691bc909 |
|
MD5 | 0d075983e741ac11665abfcc0c8c5fb5 |
|
BLAKE2b-256 | cb541d163c8fb7cffb12873b220b621471386e223139adf3c9c31d9fba1dfd87 |