Python wrapper of MALLET for LDA analysis on single-cell data
Project description
scmallet
Python wrapper of MALLET for LDA analysis on single-cell data.
MALLET is the LDA backend chosen by pycistopic. The implementation in this package has several difference than pycistopic:
- Improved paralization.
- Allow train LDA model with cell subset and then inference ramaining cells. This is nicely supported by MALLET itself.
- Allow the training process to be resumable.
- Work with anndata.
Installation
You need to have Python 3.9 or newer installed on your system. If you don't have Python installed, we recommend installing Mambaforge.
There are several alternative options to install scmallet:
- Install the latest release of
scmalletfrom PyPI:
pip install scmallet
- Install the latest development version:
pip install git+https://github.com/lhqing/scmallet.git@main
Usage
See example usage here: https://github.com/lhqing/scmallet/blob/main/tests/example.ipynb
Citation
-
Mallet Package: https://mimno.github.io/Mallet/
McCallum, Andrew Kachites. "MALLET: A Machine Learning for Language Toolkit." http://mallet.cs.umass.edu. 2002.
-
PyCistopic: https://github.com/aertslab/pycisTopic
Bravo Gonzalez-Blas, C. & De Winter, S. et al. (2022). SCENIC+: single-cell multiomic inference of enhancers and gene regulatory networks
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scmallet-0.1.2.tar.gz.
File metadata
- Download URL: scmallet-0.1.2.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a7be27e1c542529ff651808edd704ae894e01c4a82de6102cbba28f24700284
|
|
| MD5 |
49bf271abd9c59489a0a57d98dcfb713
|
|
| BLAKE2b-256 |
dd73972f1be2a7006cb4df75f5ab4fa8370537118ea85942d8be55196956acf9
|
File details
Details for the file scmallet-0.1.2-py3-none-any.whl.
File metadata
- Download URL: scmallet-0.1.2-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
183feecc31007631d9e6b96c30d92f716ec67fe82e365c91caa591a9393331de
|
|
| MD5 |
88236722142ee2170f97e0fad3febeec
|
|
| BLAKE2b-256 |
a0a745b83f94300af1b04784d3f90ec8099a9d7b6a1b6814af2c5c09c5be3ecc
|