Skip to main content

A self-tuning sliding-window framework for phenotype-linked regional poly-methylation architecture in sparse wildlife methylomes.

Project description

poly-CpG: Sliding window analysis of methylomes

This is a lightweight package to accompany the sliding window method for the analysis of methylomes.

Additional scripts and data can be found in the "Supplementary" branch. Herein the data and code used within the study are provided.

The package call be installed as:

pip install poly_cpg

The program can quickly be performed using the commands:

import poly_cpg as pc

# Load synthetic example data
M, pos, gamma, beta, y, cpg_names = pc.load_example()

# Run sliding-window algorithm
df_windows = pc.self_tuning_windows_dual(M, gamma, beta, pos, y)

# Classify windows
df_windows = pc.classify_windows(df_windows)

print(df_windows.head())

This produces a table of windows with the genomic coordinates, number of CpGs, R^2 values, directional agreement and trust classificaiton

The script folder contains the necessary script for the synthetic data generation.

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

poly_cpg-1.0.3.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

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

poly_cpg-1.0.3-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file poly_cpg-1.0.3.tar.gz.

File metadata

  • Download URL: poly_cpg-1.0.3.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for poly_cpg-1.0.3.tar.gz
Algorithm Hash digest
SHA256 eb496c9a85e2bf6206ba4d8a7e7a79a997e8fe904180d35fe08501fbdabbb35c
MD5 2993b12053e24ea87df40ca84ec1cca5
BLAKE2b-256 73bf1fa1e19db35d0a12b1966b8645d629d918624fdb92d3d62ee89aac221532

See more details on using hashes here.

File details

Details for the file poly_cpg-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: poly_cpg-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 21.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for poly_cpg-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 317c48296a8a9e9f9d0b188cd9bcd79bf2c8814f2f930e15d1f81215bd1d27d6
MD5 d3612d83557c142138e98edc7d3f7f72
BLAKE2b-256 6836097a28d04b86386cfe35f7d5b9f90f34422cc79f87bf8e843fb9b50a7916

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