Skip to main content

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.

Release files for scglue 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scglue 0.4.1
File Size Uploaded
scglue-0.4.1.tar.gz 77.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scglue 0.4.1
File Interpreter ABI Platform
scglue-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 165.4 kB

Release files / scglue-0.4.1.tar.gz

Download URL scglue-0.4.1.tar.gz
Size 77.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c9b0bbc74d7f1000d19ad292c5b459fd640f2f4eb0501b7a17906b39b9d850e6
BLAKE2b-256 checksum
How to use checksums
0a69fdf5278431cf77b7fc94fe46a3258ba89ca5a4ad354a1a5c942d32f9be0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / scglue-0.4.1-py3-none-any.whl

Download URL scglue-0.4.1-py3-none-any.whl
Size 87.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08afd90615cd69327dc0b04c6fb4b3f5e672dac0335eff09857a761d0d28fe8e
BLAKE2b-256 checksum
How to use checksums
ecc01584ea9d1db3e9b609543acd529cfda243a8fea7be0061c78bb1b1478f27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page