Skip to main content

No project description provided

Project description

Morpheus logo

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.

Graphical summary of the Morpheus framework

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

morpheus_spatial-1.1.0.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

morpheus_spatial-1.1.0-py3-none-any.whl (41.3 kB view details)

Uploaded Python 3

File details

Details for the file morpheus_spatial-1.1.0.tar.gz.

File metadata

  • Download URL: morpheus_spatial-1.1.0.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.2 Darwin/24.4.0

File hashes

Hashes for morpheus_spatial-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f2b452903a4d8d4d93b22d558e0a67c471e76af0736a6f9b534b8d32d9af6d77
MD5 58d83f5625d52fc0785d8cf5beab6717
BLAKE2b-256 60ca695cbda9f361f8b6f07252f84b9289c32179b096e8f96c4a27e0c312b35c

See more details on using hashes here.

File details

Details for the file morpheus_spatial-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: morpheus_spatial-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 41.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.2 Darwin/24.4.0

File hashes

Hashes for morpheus_spatial-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e01ad2b35677a63e1d48ef090946486f8fac8d494a4848a7c084011954de6df0
MD5 1c08de25d95ffb34a0d9f18e70957e10
BLAKE2b-256 19ffe3f410075d517c6d49116f1e3ac36efc53819d1d79b6f3fcb9c8a57c3f7c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page