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.
Metadata
Release files for average-methylation 0.1.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 | Provenance | |
|---|---|---|---|---|
| average_methylation-0.1.0.tar.gz | 4.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| average_methylation-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / average_methylation-0.1.0.tar.gz
| Download URL | average_methylation-0.1.0.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb8b3532788dc330608ad62bcdb2829a4ffaf7a03d9727a5166cbd2f005b0f88
|
|
BLAKE2b-256 checksum How to use checksums |
23e67dd8a754013877d5d347960ecfee4e7b1911306d2e2aec527bdb93dcfaa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.6
|
Release files / average_methylation-0.1.0-py3-none-any.whl
| Download URL | average_methylation-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ef0e56134d9143e29ed0d79b254b836c6707ea79487256a5f8ae03ec7be20a5
|
|
BLAKE2b-256 checksum How to use checksums |
6d62f9555f7b456c835131db7c7eb31cb11fac203d5bafc2ab1ace6c1f708c3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.6
|
Security for average-methylation 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.