Skip to main content

Python package for methylation data

Project description

MethylVerse

Build Status PyPI version Coffee

Library to work with WGBS, EM-seq, and/or methylation array data in one interface.

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

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

methylverse-1.2.1.tar.gz (726.0 kB view details)

Uploaded Source

Built Distribution

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

methylverse-1.2.1-cp312-cp312-macosx_26_0_arm64.whl (796.3 kB view details)

Uploaded CPython 3.12macOS 26.0+ ARM64

File details

Details for the file methylverse-1.2.1.tar.gz.

File metadata

  • Download URL: methylverse-1.2.1.tar.gz
  • Upload date:
  • Size: 726.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Darwin/25.1.0

File hashes

Hashes for methylverse-1.2.1.tar.gz
Algorithm Hash digest
SHA256 1284d97c1439ee5b5fab79e6bcd9ba427e5f091bc41f0c86fb93c3c10f2615cd
MD5 1a22dbdadb5944da061bd0338245ae53
BLAKE2b-256 e5ed7b061f0687e256597b54551c1dcfdd38753c839b850a3f0d0aab152a1f1e

See more details on using hashes here.

File details

Details for the file methylverse-1.2.1-cp312-cp312-macosx_26_0_arm64.whl.

File metadata

File hashes

Hashes for methylverse-1.2.1-cp312-cp312-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 db0c9edb5a6554b8fbd6e911a7d78a5b578a6cdefc5e90835807c925e7d80567
MD5 fe1f725e3275599d73c84c8fafe23070
BLAKE2b-256 27ccb197f71de6cdc45bbf46cb3903846ced28f664bdbf6f4c9255b3c67344dc

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