MethylNet
Deep Learning with Methylation
MethylNet is a command line tool and python library that provides classes to handle deep learning tasks for methylation data. It is built off of pythonic MethylationArray data types introduced in (https://github.com/Christensen-Lab-Dartmouth/PyMethylProcess), and uses PyTorch to explore/make predictions on the methylation data.
https://www.biorxiv.org/content/10.1101/692665v1
Help docs: https://christensen-lab-dartmouth.github.io/MethylNet/
What MethylNet can do:
- Extract DNA Methylation Latent Space by training Variational Auto-encoders (VAE) after hyperparameter and neural network topology grid-search.
2. Make classification, single- and multi-output regression predictions on the methylation data such as age, cell type proportions, and disease state. This is done after transfer learning the VAE topology and a hyperparameter and neural network topology grid-search.
3. Find most important CpGs for predictions using SHAP, interpreting predictions on the individual and aggragated class level.
4. Interrogate these extracted CpGs using popular pipelines such as LOLA, gometh, GSEA and overlap CpGs with other known sets of CpGs. In addition, overlap top sets of CpGs with other CpGs of other predictions.
NOTE: Images will be updated to reflect latest set of MethylNet commands.
MethylNet is currently in review, Wiki page in progress. Biorxiv can be accessed at: https://www.biorxiv.org/content/10.1101/692665v1
Help docs: https://christensen-lab-dartmouth.github.io/MethylNet/
Install (Conda highly recommended, though Docker can be used):
- conda create -n methylnet python=3.6
- source activate methylnet
- See install instructions for PyMethylProcess at https://github.com/Christensen-Lab-Dartmouth/PyMethylProcess
- conda install pytorch torchvision -c pytorch
- pip install methylnet
- Alternative install: clone this repository and run python setup.py sdist bdist_wheel && pip install dist/methylnet-0.1.tar.gz
- Run for GSEA collections: download_help_data
- Alternative docker install: docker pull joshualevy44/methylnet:0.1
* If looking to use only CPUs, only core docker or singularity needed, and see singularity website for information on how to pull Docker images
* See https://singularity.lbl.gov/faq#does-singularity-support-containers-that-require-gpus for information on getting Singularity to work with GPUs
* nvidia-docker is also the Docker equivalent to run GPU jobs - GPU usage is also possible through the base install (without Docker, or considering nvidia-docker options), provided that your machine has GPU access.
Running MethylNet:
- source activate methylnet
- Pre-processing pipeline: Instructions available at https://github.com/Christensen-Lab-Dartmouth/PyMethylProcess to go from 450K/850K IDATs to MethylationArray datatypes that can easily be learned from.
- Run embedding hyperparameter scan
- Choose top embedding hyperparameters and train one last time again
- Run prediction hyperparameter scan
- Choose top prediction hyperparameters and train one last time again
- Find top CpGs by running SHAP.
- Interrogate SHAP derived CpGs.
- See help-docs for usage.
Running Test Pipeline:
- docker pull joshualevy44/methylnet:0.1
- Alternative: sh docker_build.sh
- docker run -it joshualevy44/methylnet:0.1
- Alternative: sh run_docker.sh
- methylnet-test test_pipeline
Example of Running Pipeline:
See ./example_scripts for examples on how to explicitly run:
Metadata
Release files for methylnet 0.1.3
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 | Actions |
|---|---|---|---|---|
| methylnet-0.1.3.tar.gz | 58.8 kB | Without provenance | Details for methylnet-0.1.3.tar.gz |
Release files / methylnet-0.1.3.tar.gz
| Download URL | methylnet-0.1.3.tar.gz |
|---|---|
| Size | 58.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c7f8c783f611984dfb03fbec753d64942a5b6aae2ed4cfcb9e2e687555b2299
|
|
BLAKE2b-256 checksum How to use checksums |
0dc66f90310fad2206183b3116a54fd22ca52cb8873b9b40cf5736ce258b5145
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.6.8
|
Security for methylnet 0.1.3
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.