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.0.tar.gz (511.2 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.0-cp312-cp312-macosx_26_0_arm64.whl (793.3 kB view details)

Uploaded CPython 3.12macOS 26.0+ ARM64

File details

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

File metadata

  • Download URL: methylverse-1.2.0.tar.gz
  • Upload date:
  • Size: 511.2 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.0.tar.gz
Algorithm Hash digest
SHA256 d1e6f035d91a5e0b0542613e74b356d49e78e33faeb6a8f5faa13cb1c1c871b0
MD5 b3d0f5f1f9aeec1d8de4a113d286bced
BLAKE2b-256 01f970e7378f1aa9275a6f3ccbe6faddb0b341265cec6d2aff651ebb7bc56c66

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for methylverse-1.2.0-cp312-cp312-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 0ce2da7bcf0fa0cbb1ee8dfbb79c43783648399d5dd1ae72bc255b5e65253adc
MD5 55084c76af6a15539d64c213c310f43b
BLAKE2b-256 b4b91d1dadc132f1cb7730c7a7243d193945f9e304e52bf1532cf0b345eeb9d1

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