Giter Site home page Giter Site logo

yiqisu / glue Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gao-lab/glue

0.0 0.0 0.0 6.53 MB

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

License: MIT License

Shell 0.77% Python 77.58% R 12.58% Jupyter Notebook 9.04% Dockerfile 0.03%

glue's Introduction

GLUE (Graph-Linked Unified Embedding)

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

News

Latest update: A Chinese manual is now available at https://scglue.readthedocs.io/zh_CN/latest/!

最新更新: GLUE的官方中文手册已上线,请见https://scglue.readthedocs.io/zh_CN/latest/

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.

glue's People

Contributors

jeff1995 avatar gao-ge avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.