Skip to main content

Single-cell multiomics data analysis

Project description

MIRA

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.0rc2.tar.gz (31.4 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.0rc2-py3-none-any.whl (632.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mira-multiome-1.0.0rc2.tar.gz
  • Upload date:
  • Size: 31.4 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.0rc2.tar.gz
Algorithm Hash digest
SHA256 3c40cc0a8e6d0c74321ef270e18b86a3f96b93034e744ffecc461c91533dde1a
MD5 d43168b063e275d422274a3e2187eea8
BLAKE2b-256 c548526567fb0f2b25ddcae35089c7d4c42703835de98f275f0b132066141b1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mira_multiome-1.0.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 cd750c8f0db7e65f31b0ca242180bb5d3b1f78c3e1cf17b9de6bf080c710fb02
MD5 946d042c171cde0253b624d245e583dd
BLAKE2b-256 a8041b1065370de9d99e54d7233d27aaa40372acea683d0d278af482afffe391

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