Package: methylnet
MethylNetDeep Learning with MethylationMethylNet 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/692665v1Help 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/692665v1Help docs:https://christensen-lab-dartmouth.github.io/MethylNet/Install (Conda highly recommended, though Docker can be used):conda create -n methylnet python=3.6source activate methylnetSee install instructions for PyMethylProcess athttps://github.com/Christensen-Lab-Dartmouth/PyMethylProcessconda install pytorch torchvision -c pytorchpip install methylnetAlternative install: clone this repository and run python setup.py sdist bdist_wheel && pip install dist/methylnet-0.1.tar.gzRun for GSEA collections: download_help_dataAlternative 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* Seehttps://singularity.lbl.gov/faq#does-singularity-support-containers-that-require-gpusfor information on getting Singularity to work with GPUs* nvidia-docker is also the Docker equivalent to run GPU jobsGPU 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 methylnetPre-processing pipeline: Instructions available athttps://github.com/Christensen-Lab-Dartmouth/PyMethylProcessto go from 450K/850K IDATs to MethylationArray datatypes that can easily be learned from.Run embedding hyperparameter scanChoose top embedding hyperparameters and train one last time againRun prediction hyperparameter scanChoose top prediction hyperparameters and train one last time againFind top CpGs by running SHAP.Interrogate SHAP derived CpGs.See help-docs for usage.Running Test Pipeline:docker pull joshualevy44/methylnet:0.1Alternative: sh docker_build.shdocker run -it joshualevy44/methylnet:0.1Alternative: sh run_docker.shmethylnet-test test_pipelineExample of Running Pipeline:See ./example_scripts for examples on how to explicitly run: