Skip to main content

Domain Invariant Representation through Adversarial Calibration (DIRAC), a graph neural network to integrate spatial multi-omic data into a unified domain

Project description

DIRAC (Domain Invariant Respresentation through Adversatial Calibration)

stars-badge pypi-badge conda-badge docs-badge build-badge coverage-badge license-badge

Spatially resolved integration of multi-omics with DIRAC highlights cell-specific remodeling

DIRAC is a Python package, written in PyTorch and based on Scanpy.

DIRAC is a graph neural network to integrate spatial multi-omic data into a unified domain-invariant embedding space and to automate cell-type annotation by transferring labels from reference spatial or single-cell multi-omic data.

DIRAC primarily includes two integration paradigms: vertical integration and horizontal integration, which differ in their selection of anchors. In vertical integration, multiple data modalities from the same cells are jointly analyzed, using cell correspondences in single-cell data or spot correspondences in spatial data as anchors for alignment. In horizontal integration, the same data modality from distinct groups of cells is aligned using genomic features as anchors. The best way to familiarize yourself with DIRAC is to check out our tutorial and our documentation.

Model architecture

For more details, please check out our publication.

Directory structure

.
├── sodirac                  # Main Python package
├── data                    # Data files
├── evaluation              # Method evaluation pipelines
├── experiments             # Experiments and case studies
├── tests                   # Unit tests for the Python package
├── docs                    # Documentation files
├── custom                  # Customized third-party packages
├── packrat                 # Reproducible R environment via packrat
├── env.yaml                # Reproducible Python environment via conda
├── pyproject.toml          # Python package metadata
├── LICENSE
└── README.md

How to install DIRAC

To install DIRAC, make sure you have PyTorch and Scanpy installed. If you need more details on the dependences, look at the environment.yml file.

  • set up conda environment for DIRAC
    conda env create -f environment.yml
  • install sodirac from shell:
    conda activate dirac-env
    pip install sodirac
  • To start using DIRAC, import DIRAC in your jupyter notebooks or/and scripts
    import sodirac as sd

Installing within a conda environment is recommended.

Usage

Please checkout the documentations and tutorials at dirac.readthedocs.io.

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

sodirac-0.1.4.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

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

sodirac-0.1.4-py3-none-any.whl (40.6 kB view details)

Uploaded Python 3

File details

Details for the file sodirac-0.1.4.tar.gz.

File metadata

  • Download URL: sodirac-0.1.4.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sodirac-0.1.4.tar.gz
Algorithm Hash digest
SHA256 969e456c520978567e8173b54ef69429bea2756ffc91c08bd8cb8eaf8059574f
MD5 137571414871f4d40b2e68f31e3d7324
BLAKE2b-256 d1adb647c9e7a7c4257cee9ca9bc3945add64bb5bda0dc962c5fe0ec76fccf71

See more details on using hashes here.

File details

Details for the file sodirac-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: sodirac-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 40.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for sodirac-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 93932419f15ed79ff9fe4935daaf1f5e554aeb288289b191f11aa469f33146c5
MD5 307e022ea2f2f47f5b71f681d3653fc5
BLAKE2b-256 01383f098cf09f1a631f594b91ed22447ce1904cdd08cf1f64f7bae25b18f741

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