Skip to main content

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

Project description

GLUE (Graph-Linked Unified Embedding)

license-badge pypi-badge conda-badge docs-badge build-badge coverage-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.

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.3.2.tar.gz (71.1 kB view details)

Uploaded Source

Built Distribution

scglue-0.3.2-py3-none-any.whl (81.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scglue-0.3.2.tar.gz
  • Upload date:
  • Size: 71.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for scglue-0.3.2.tar.gz
Algorithm Hash digest
SHA256 fd57ebfa400233cbb1ab4fab4ad6a9dbf4db2c5ca715ba31c71c7a36cc931241
MD5 d952994a889d378a3a771f729db460fd
BLAKE2b-256 7291b542b29a1ccfbf1d22f48e98a2960da850495eb1c935f30dfffef00b758b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scglue-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 81.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for scglue-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 efec4e3f8cc3ffce362e180e4912327d4aacc2dd0a76a6cb06e851a426695d6d
MD5 a6fdc92d7d869a38c9781e9e83e78518
BLAKE2b-256 dc97d4730124de7edb1be55b48bbcb7057587708ca52d0a75bca275969969cd4

See more details on using hashes here.

Supported by

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