Skip to main content

scMaui

Tests badge

scMaui is python package that implements a variational auto-encoder for multi-omics data integration. The model is capable of handling variable numbers input and output modalities as well as missing modalities. The model also features a range of log-likelihood implementations for determining the reconstruction loss, including the negative binomial or the negative multinomial model.

scmaui_scheme.svg

The package is freely available under a GNU Lesser General Public License v3 or later (LGPLv3+)

Installation

pip scmaui

Usage

import pkg_resources
from scmaui.data import load_data, SCDataset
from scmaui.utils import get_model_params
from scmaui.ensembles import EnsembleVAE

# get some toy data
toy_data_path = pkg_resources.resource_filename('scmaui', 'resources/gtx.h5ad')

adatas = load_data([toy_data_path], names=['gtx'])
dataset = SCDataset(adatas, losses=['negbinom'])

# create an scMaui model
params = get_model_params(dataset)
ensemble = EnsembleVAE(params=params)

# fit the model
ensemble.fit(dataset, epochs=10)
ensemble.summary()

# obtain latent features
latents, _ = ensemble.encode(dataset)

# obtain an imputation
imputed = ensemble.impute(dataset)

# obtain input feature attributions
selected_cells = latents.index.tolist()[:5] # select first 5 cells
explanation = ensemble.explain(dataset, cellids=selected_cells)

Command-line usage

scMaui offers a command line interface for model fitting. The results are stored in an output directory (-output).

scmaui -data adata.h5ad \
      -datanames gtx \
      -output <outputdir> \
      -epochs 200 \
      -ensemble_size 10 \
      -nlatent 15 \
      -adversarial label1 label2 \
      -conditional covariate1 covariate2 \
      -losses negmul negbinom

Additional information on available hyper-parameters are available through

scmaui -h

Metadata

Release files for scmaui 0.0.6

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

Source distribution (sdist)

Source distribution for scmaui 0.0.6
File Size Uploaded Provenance
scmaui-0.0.6.tar.gz 9.5 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for scmaui 0.0.6
File Interpreter ABI Platform
scmaui-0.0.6-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 19.0 MB

Release files / scmaui-0.0.6.tar.gz

Download URL scmaui-0.0.6.tar.gz
Size 9.5 MB
Tags Source
SHA-256 checksum
How to use checksums
8b53bc3d185edcf48ac8583c3171d88cb2443ce9b164da6627cd03352cc3a7e2
BLAKE2b-256 checksum
How to use checksums
5d1562c942ee771d87d3e6e75c6c9f4a898ac9bc19baa3876337cdf941f27ccb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / scmaui-0.0.6-py2.py3-none-any.whl

Download URL scmaui-0.0.6-py2.py3-none-any.whl
Size 9.6 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e852fb3ac0641ca5dcb8731ebd8b5ac0082122c4da3500ba9b8a7068d864dc60
BLAKE2b-256 checksum
How to use checksums
c1a2f5ec2c187445ec315da12a32c1c9262175b15b5a1b84870c4b1722d6523b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Security for scmaui 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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