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 preprint.

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 either via conda:

conda install -c defaults -c pytorch -c bioconda -c conda-forge -c scglue scglue

Or 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 -a -b html docs docs/_build

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.2.0.tar.gz (69.5 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.2.0-py3-none-any.whl (78.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scglue-0.2.0.tar.gz
  • Upload date:
  • Size: 69.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for scglue-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e8498580adb0c9aedb2e38575e08cf684aeedc5aed527b3602f34c2a55530954
MD5 2cb47f92485056d353ca0bfd30647a86
BLAKE2b-256 6758e89cee81996362de5068282a1f471c45eb55a002e021c666e399463281a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scglue-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 78.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for scglue-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 79054762a15628fd82a2f68a1e16f9b277031c417c74b198ce86863fb93abe5e
MD5 88c6fb2cb0adb5df8255869f734031a4
BLAKE2b-256 246dd727130c1900e34026598182ac7693c0a669c4cd1f6346342c1055a1d1dd

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