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.
Raw data
{
"_id": null,
"home_page": "https://github.com/mrimis/average-methylation-calculation.git",
"name": "average-methylation",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Your Name",
"author_email": "your.email@example.com",
"download_url": "https://files.pythonhosted.org/packages/23/e6/7dd8a754013877d5d347960ecfee4e7b1911306d2e2aec527bdb93dcfaa7/average_methylation-0.1.0.tar.gz",
"platform": null,
"description": "Average Methylation Calculation\n\nThis 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.\nFeatures\n\n 1. Split large datasets: Break down comprehensive methylation datasets into manageable parts by chromosome.\n 2. Calculate averages: Compute average methylation scores for genes in specific genomic windows.\n 3. Combine results: Aggregate results into a concise format for downstream analysis.\n\nInstallation\n\nYou can install average_methylation directly via pip from PyPI:\n\n pip install average_methylation\n\nAlternatively, if you have access to the GitHub repository and prefer to install the latest development version, you can install it directly using:\n\n pip install git+https://github.com/mrimis/average-methylation-calculation.git\n\nUsage\n\nAfter 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:\n\n from average_methylation.methylation_analysis import run_full_pipeline\n \n # Define the paths to your input files and output directory\n methylation_filepath = 'path/to/your/final_merged_dataset.csv'\n bed_filepath = 'path/to/your/hglft_genome_Methlylation_EPIC_GRCh38.bed'\n gene_coords_filepath = 'path/to/your/gene_coords.txt'\n output_directory = 'path/to/your/output/directory'\n \n # Run the full methylation analysis pipeline\n run_full_pipeline(methylation_filepath, bed_filepath, gene_coords_filepath, output_directory)\n\nFunction Parameters\n\n 1. methylation_filepath: Path to the CSV file containing methylation scores.\n 2. bed_filepath: Path to the BED file with genomic coordinates for methylation sites.\n 3. gene_coords_filepath: Path to the file containing gene start and end coordinates.\n 4. output_directory: Directory where the output files will be saved.\n\nContributing\n\nContributions 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.\n\nLicense\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\nSupport\n\nIf you have any questions or encounter issues using the package, please open an issue on the GitHub repository issue tracker.\n",
"bugtrack_url": null,
"license": null,
"summary": "A package to calculate average methylation scores.",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/mrimis/average-methylation-calculation.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6d62f9555f7b456c835131db7c7eb31cb11fac203d5bafc2ab1ace6c1f708c3d",
"md5": "19c294eaf1f3d4ff3cfe6ade833ddebd",
"sha256": "4ef0e56134d9143e29ed0d79b254b836c6707ea79487256a5f8ae03ec7be20a5"
},
"downloads": -1,
"filename": "average_methylation-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "19c294eaf1f3d4ff3cfe6ade833ddebd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 4987,
"upload_time": "2024-04-18T18:37:19",
"upload_time_iso_8601": "2024-04-18T18:37:19.219954Z",
"url": "https://files.pythonhosted.org/packages/6d/62/f9555f7b456c835131db7c7eb31cb11fac203d5bafc2ab1ace6c1f708c3d/average_methylation-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "23e67dd8a754013877d5d347960ecfee4e7b1911306d2e2aec527bdb93dcfaa7",
"md5": "9e11a3450108d91fe1937186ad8a73c3",
"sha256": "cb8b3532788dc330608ad62bcdb2829a4ffaf7a03d9727a5166cbd2f005b0f88"
},
"downloads": -1,
"filename": "average_methylation-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "9e11a3450108d91fe1937186ad8a73c3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 4451,
"upload_time": "2024-04-18T18:37:20",
"upload_time_iso_8601": "2024-04-18T18:37:20.894526Z",
"url": "https://files.pythonhosted.org/packages/23/e6/7dd8a754013877d5d347960ecfee4e7b1911306d2e2aec527bdb93dcfaa7/average_methylation-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-18 18:37:20",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "mrimis",
"github_project": "average-methylation-calculation",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "average-methylation"
}