Skip to main content

A non-negative matrix factorization model based on graph Laplacian and optimal transmission for Paired single-cell multi-omics data integration.

Project description

LONMF_py

LONMF: A non-negative matrix factorization model based on graph Laplacian and optimal transmission for Paired single-cell multi-omics data integration

This is the Python implementation of the LONMF algorithm. Note that this implementation supports GPU acceleration.

1. Installation

You can use the following command to install LONMF:

pip install LONMF

2. Usage

LONMF accepts a muon object as input and populates the obsm and uns fields with embeddings and dictionaries, respectively. The pre-processed 10X Multiome demo dataset is available for download here. It is recommended that a GPU be used to run the model. To initialize and run the LONMF model, the following code should be used:

from LONMF.model import LONMF
import mudata as md
import scanpy as sc

# Load data into a Muon object.
mdata = md.read_h5mu("my_data.h5mu")

# Initialize and train the model.
model = LONMF(latent_dim=15)
model.train(mdata)

# Visualize the embedding with UMAP.
sc.pp.neighbors(mdata, use_rep="W_OT")
sc.tl.umap(mdata)
sc.pl.umap(mdata)

'LONMF' class also has other methods, you can use the 'help' or '?' command for more details explanations of the methods.

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

scmo_lonmf-0.0.1.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

scMO_LONMF-0.0.1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file scmo_lonmf-0.0.1.tar.gz.

File metadata

  • Download URL: scmo_lonmf-0.0.1.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.10

File hashes

Hashes for scmo_lonmf-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c000d9c36eda2f918240691aa6eea05804b258b25ab363ee161113a2955416e3
MD5 ce548f37e9b9e1d0c01b2b5b4cf2ecac
BLAKE2b-256 0a64a5929a4390cf2d635d6db4285c881114f16fcfbd4b1e14045123250a88be

See more details on using hashes here.

File details

Details for the file scMO_LONMF-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: scMO_LONMF-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.10

File hashes

Hashes for scMO_LONMF-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fdeccfa37bd4d1c02ada044171326cb50b1d6f720b8fc8e638b47c692450223b
MD5 331a2ec2df793b479ff78127a638dec3
BLAKE2b-256 4c723d2e15446c255f401dda496c73065972f4821948a35cd55983760b83b359

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