A package to calculate average methylation scores.
Project description
Average Methylation Calculation
This Python package, average_methylation, is designed to process large datasets of methylation scores, calculate average methylation scores per gene per sample in defined windows upstream of gene start sites, and compile the results for further genomic analysis. It is intended for bioinformaticians and researchers studying epigenetic modifications. Features
1. Split large datasets: Break down comprehensive methylation datasets into manageable parts by chromosome.
2. Calculate averages: Compute average methylation scores for genes in specific genomic windows.
3. Combine results: Aggregate results into a concise format for downstream analysis.
Installation
You can install average_methylation directly via pip from PyPI:
pip install average_methylation
Alternatively, if you have access to the GitHub repository and prefer to install the latest development version, you can install it directly using:
pip install git+https://github.com/mrimis/average-methylation-calculation.git
Usage
After installation, the package can be used to run methylation analysis workflows. Here's a basic example of how to use the package in your Python scripts:
from average_methylation.methylation_analysis import run_full_pipeline
# Define the paths to your input files and output directory
methylation_filepath = 'path/to/your/final_merged_dataset.csv'
bed_filepath = 'path/to/your/hglft_genome_Methlylation_EPIC_GRCh38.bed'
gene_coords_filepath = 'path/to/your/gene_coords.txt'
output_directory = 'path/to/your/output/directory'
# Run the full methylation analysis pipeline
run_full_pipeline(methylation_filepath, bed_filepath, gene_coords_filepath, output_directory)
Function Parameters
1. methylation_filepath: Path to the CSV file containing methylation scores.
2. bed_filepath: Path to the BED file with genomic coordinates for methylation sites.
3. gene_coords_filepath: Path to the file containing gene start and end coordinates.
4. output_directory: Directory where the output files will be saved.
Contributing
Contributions to the average_methylation package are welcome! To contribute, please fork the repository, make your changes, and submit a pull request. We appreciate contributions in the form of code improvements, additional features, or bug fixes.
License
This project is licensed under the MIT License - see the LICENSE file for details. Support
If you have any questions or encounter issues using the package, please open an issue on the GitHub repository issue tracker.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file average_methylation-0.1.0.tar.gz
.
File metadata
- Download URL: average_methylation-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb8b3532788dc330608ad62bcdb2829a4ffaf7a03d9727a5166cbd2f005b0f88 |
|
MD5 | 9e11a3450108d91fe1937186ad8a73c3 |
|
BLAKE2b-256 | 23e67dd8a754013877d5d347960ecfee4e7b1911306d2e2aec527bdb93dcfaa7 |
File details
Details for the file average_methylation-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: average_methylation-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ef0e56134d9143e29ed0d79b254b836c6707ea79487256a5f8ae03ec7be20a5 |
|
MD5 | 19c294eaf1f3d4ff3cfe6ade833ddebd |
|
BLAKE2b-256 | 6d62f9555f7b456c835131db7c7eb31cb11fac203d5bafc2ab1ace6c1f708c3d |