MethylVerse
Install
If you dont already have numpy and scipy installed, it is best to download
Anaconda, a python distribution that has them included.
https://continuum.io/downloads
PyPI install, presuming you have all its requirements installed:
pip install ngsfragments
pip install MethylVerse
The developmental version of MethylVerse can also be install from GitHub.
pip install git+https://github.com/kylessmith/MethylVerse/
First use of the MethylVerse software will initialize a download of necessary reference data. Raw reference data is also available at on Zenodo.
https://zenodo.org/records/16580408
https://zenodo.org/records/16581863
Usage
General useage:
import MethylVerse as mv
beta_values = mv.core.read_methylation("path/to/methylation")
classifier = mv.tools.classifiers.MPACT.MPACT_classifier_torch.MPACT_classifier()
predictions = classifier.predict(beta_values)
Run the M-PACT classifier from the cammandline
python -m MethylVerse MPACT example.bedgraph --impute --regress --call_cnvs --verbose
Additional options can be viewed:
python -m MethylVerse MPACT -h
usage: __main__.py MPACT [-h] [--impute] [--regress] [--probability_threshold PROBABILITY_THRESHOLD]
[--max_contamination_fraction MAX_CONTAMINATION_FRACTION] [--call_cnvs] [--out OUT] [--verbose]
input_data
positional arguments:
input_data Input data, idat name, nanopore bed file, or MethylDackel bedGraph
options:
-h, --help show this help message and exit
--impute Impute data missing CpGs
--regress Whether to regress data and remove background CSF/Immune
--probability_threshold PROBABILITY_THRESHOLD
Probability threshold for M-PACT classification (default: 0.7)
--max_contamination_fraction MAX_CONTAMINATION_FRACTION
Max contamination fraction for M-PACT classification (aggressiveness of removing background, default=0.3)
--call_cnvs Call CNVs from the methylation file
--out OUT Output file
--verbose Verbose output
Metadata
Release files for MethylVerse 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| methylverse-1.3.0.tar.gz | 663.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| methylverse-1.3.0-cp314-cp314-macosx_26_0_arm64.whl | CPython 3.14 | CPython 3.14 | macOS 26.0+ ARM64 | Details |
Total release size: 1.6 MB
Release files / methylverse-1.3.0.tar.gz
| Download URL | methylverse-1.3.0.tar.gz |
|---|---|
| Size | 663.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
624218df3ee134abe4cac38d0fafa1dfae8277ef7c869aeaf82dea15809aa271
|
|
BLAKE2b-256 checksum How to use checksums |
f54a468af2a8718a35cb578eb3a613da1e730f9e472fbbc9cf31b029d7eaac15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.9 Darwin/25.6.0
|
Release files / methylverse-1.3.0-cp314-cp314-macosx_26_0_arm64.whl
| Download URL | methylverse-1.3.0-cp314-cp314-macosx_26_0_arm64.whl |
|---|---|
| Size | 972.4 kB |
| Tags | CPython 3.14 macOS 26.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
3ff804f5d1e55d58f4a1d7cbed3e3c031d34d67626f92c311fc61a5f00286492
|
|
BLAKE2b-256 checksum How to use checksums |
7cc11125a2b22c6006afabe641c3d8c04cea832dbc7298eac331c3c60a44ad58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.13.9 Darwin/25.6.0
|