Skip to main content

Single-cell multiomics data analysis

Project description

MIRA https://badge.fury.io/py/mira-multiome.svg https://readthedocs.org/projects/mira-multiome/badge/?version=latest&style=plastic https://codeocean.com/codeocean-assets/badge/open-in-code-ocean.svg https://img.shields.io/conda/pn/liulab-dfci/mira-multiome https://zenodo.org/badge/DOI/10.1101/2021.12.06.471401.svg

Introduction

Multimodal models for Integrated Regulatory Analysis, or MIRA, is a python package for analyzing the dynamic processes of gene regulation using single-cell multiomics datasets.

MIRA works on top of Scanpy and Anndata to provide a rich, comprehensive framework integrating accessibility and expression data for more insights into your data. MIRA includes methods for:

  • Multiomodal topic modeling

  • Construction a joint representation of cells

  • Regulator and functional enrichment

  • Pseudotime trajectory inference

  • Cis-regulatory modeling

  • Finding divergences between local chromatin accessibility and gene expression

... And more! For mora, check out the MIRA preprint on bioarxiv.

Documentation

See MIRA’s website for tutorials and API reference.

Data

https://raw.githubusercontent.com/AllenWLynch/MIRA/main/docs/source/_static/data_example.png

MIRA takes scRNA-seq and scATAC-seq count matrices from a single-cell multiomics experiment, where each cell is measured using both assays, and measurements are linked by a shared cell barcode. We demonstrated MIRA using SHARE-seq data and commercial 10X genomics multiome data, but MIRA’s assumptions and models are extensible to other multiome protocols.

Installation

MIRA can be installed from either Conda or PyPI:

conda install -c conda-forge -c bioconda -c pytorch mira-multiome

or

pip install mira-multiome

Installation will take about a minute.

Please note, currently MIRA may only be installed on Python <3.8 due to some dependencies’ requirements. We are working to make it accessible on newer Python versions. To set up an a new analysis, we recommend starting with a fresh environment:

conda create --name mira-env -c conda-forge -c pytorch -c bioconda mira-multiome scanpy jupyter leidenalg
conda activate mira-env
python -m ipykernel install --user --name mira-env

To use the environment in a jupyter notebook, start the notebook server, then go to Kernel > Change kernel > mira-env.

Installing with GPU support

Training on a GPU reduces the training time of MIRA topic models. To install MIRA with PyTorch compiled with GPU support, first install MIRA, as above. Then, follow instructions at pytorch.org to find the version of PyTorch that suits your system.

Learning Curve

https://raw.githubusercontent.com/AllenWLynch/MIRA/main/docs/source/_static/code_example.png

If you have experience with Scanpy, we structured MIRA to follow similar conventions so that it would feel familiar and intuitive. In fact, most MIRA analyses seamlessly weave between MIRA and Scanpy functionalities for cleaning, slicing, and plotting the data. In general, the first positional argument of a MIRA function is an AnnData object, and the following keyword arguments change how the function transforms that object.

Dependencies

  • pytorch

  • pyro-ppl

  • tqdm

  • moods

  • pyfaidx

  • matplotlib

  • lisa2

  • requests

  • networkx

  • numpy

  • scipy

  • optuna

  • anndata

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

mira-multiome-1.0.0rc4.tar.gz (31.3 MB view details)

Uploaded Source

Built Distribution

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

mira_multiome-1.0.0rc4-py3-none-any.whl (634.7 kB view details)

Uploaded Python 3

File details

Details for the file mira-multiome-1.0.0rc4.tar.gz.

File metadata

  • Download URL: mira-multiome-1.0.0rc4.tar.gz
  • Upload date:
  • Size: 31.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.5

File hashes

Hashes for mira-multiome-1.0.0rc4.tar.gz
Algorithm Hash digest
SHA256 289beb74d85dc405335cb335cf3fa2e7cda1cdba94a87f041933b5d5598bc74a
MD5 6b744308937d12d7c3f516f4387323cb
BLAKE2b-256 07386d2311fb3a794fb8b0e6d9314f71f2aaebef21eae96f5bb95c6f318640f0

See more details on using hashes here.

File details

Details for the file mira_multiome-1.0.0rc4-py3-none-any.whl.

File metadata

File hashes

Hashes for mira_multiome-1.0.0rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 e1953aba047eb5005204eed9097537858083d4119aefab95883a52d01ace4440
MD5 9c8cfa9e68d151dfbfbe640ccb6bea4b
BLAKE2b-256 bf6a8c7be3339d4be9e3d6e89238b32824a964e8fa1bd9a527d50a671971ab14

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