Skip to main content

Graph-linked unified embedding for unpaired single-cell multi-omics data integration

Project description

GLUE (Graph-Linked Unified Embedding)

stars-badge pypi-badge conda-badge docs-badge build-badge codecov-badge style-badge license-badge

Graph-linked unified embedding for single-cell multi-omics data integration

Model architecture

For more details, please check out our publication.

Directory structure

.
├── scglue                  # 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

Installation

The scglue package can be installed via conda using one of the following commands:

conda install -c conda-forge -c bioconda scglue  # CPU only
conda install -c conda-forge -c bioconda scglue pytorch-gpu  # With GPU support

Or, it can also be installed via pip:

pip install scglue

Installing within a conda environment is recommended.

Usage

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

A Chinese version is also available here.

Development

Install scglue in editable form via flit (first install flit via conda or pip if not installed already):

flit install -s

Run unit tests:

pytest --cov="scglue" --cov-report="term-missing" tests [--cpu-only]

Build documentation:

sphinx-build -b gettext docs docs/_build/gettext
sphinx-intl update -p docs/_build/gettext -l zh_CN -d docs/locale
sphinx-build -b html -D language=en docs docs/_build/html/en  # English version
sphinx-build -b html -D language=zh_CN docs docs/_build/html/zh_CN  # Chinese version

Reproduce results

  1. Checkout the repository to v0.2.0:

    git checkout tags/v0.2.0
    
  2. Create a local conda environment using the env.yaml file, and then install scglue:

    conda env create -p conda -f env.yaml && conda activate ./conda
    flit install -s
    
  3. Set up a project-specific R environment:

    packrat::restore()  # Packrat should be automatically installed if not available.
    install.packages("data/download/Saunders-2018/DropSeq.util_2.0.tar.gz", repos = NULL)
    install.packages("custom/Seurat_4.0.2.tar.gz", lib = "packrat/custom", repos = NULL)
    

    R 4.0.2 was used during the project, but any version above 4.0.0 should be compatible.

  4. Follow instructions in data to prepare the necessary data.

  5. Follow instructions in evaluation for method evaluation.

  6. Follow instructions in experiments for case studies.

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

scglue-0.4.0.tar.gz (77.2 kB view details)

Uploaded Source

Built Distribution

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

scglue-0.4.0-py3-none-any.whl (86.7 kB view details)

Uploaded Python 3

File details

Details for the file scglue-0.4.0.tar.gz.

File metadata

  • Download URL: scglue-0.4.0.tar.gz
  • Upload date:
  • Size: 77.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for scglue-0.4.0.tar.gz
Algorithm Hash digest
SHA256 ac57432e030dd0d7460604c63d66b7a2a510cfe1ab8c9c67cc4aa3c4d5fdb021
MD5 2f83a05b67dd4804eb3d1c7dd15e0604
BLAKE2b-256 586cef3ec82a9c0d1ef7e08983fb194043b506a2d0e2a3ee6c93f6244417b93b

See more details on using hashes here.

File details

Details for the file scglue-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: scglue-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 86.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for scglue-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c3219b196a759b4c95d341e9d09d1694b3f83518b961d2769440205b5fa460a
MD5 139c2b7d91e916c3b167f92357b80b9c
BLAKE2b-256 573b729cb7feea34c7e24c64d3340f825e826e2c87401e1ca99f1126ed7b185f

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