This directory contains scripts for downloading and processing the DNA methylation datasets identified in this repository.
download_methylation_data.py- Main script for downloading DNA methylation datasets from NCBI SRAinstall_dependencies.sh- Installation script for required dependencies (SRA Toolkit, etc.)requirements.txt- List of dependencies and tools needed
-
Install dependencies:
./install_dependencies.sh
-
List available datasets:
python download_methylation_data.py --list
-
Download a small dataset for testing:
python download_methylation_data.py --dataset medip_development --max-runs 3 --dry-run
-
Generate download scripts:
python download_methylation_data.py --create-script --datasets medip_development wgbs_ph_ploidy
The script downloads from 8 verified DNA methylation datasets (10 BioProjects, all confirmed to contain Crassostrea/Magallana gigas Bisulfite-Seq/MeDIP-Seq runs against NCBI SRA). Highlights:
- WGBS studies (POMS adaptation, aging/DECICOMP, PESTO, transgenerational infection, pH/ploidy, epigenomics series): ~100-650 GB each
- EM-seq (GESTINOV POMS gill/mantle): ~400-450 GB
- MeDIP-seq (developmental methylome dynamics): ~5-10 GB
See USAGE.md for the full per-dataset table. Total estimated size for all
datasets: ~2.6-3.0 TB (~536 runs).
- Python 3.6+
- SRA Toolkit (fastq-dump/fasterq-dump)
- NCBI Entrez Direct tools (optional, for enhanced functionality)
- Sufficient storage space (see individual dataset sizes)
- Stable internet connection
HOW-TO.md- Beginner-friendly, step-by-step walkthrough (start here)USAGE.md- Comprehensive usage guide with examples- Repository documentation in
../ncbi-datasets/dna-methylation-datasets.md
The downloader never hardcodes sequence accessions. For each BioProject it asks NCBI (via E-utilities over HTTPS — no extra software required) which sequencing runs belong to it. Each run is then validated against its NCBI metadata and only Crassostrea/Magallana gigas bisulfite/MeDIP runs are kept; off-target runs are logged and skipped so a wrong accession is reported rather than downloaded. If NCBI can't be reached, it reports the problem and stops rather than downloading placeholder data.
For detailed usage instructions and troubleshooting, see USAGE.md.
December 2024