Hanyuz1996 / EMeth

0 stars 1 forks source link

EMeth

This package provides implementations of the EMeth algorithm. It contains two functions.

Prerequisite

EMeth package requires R version 3.6.0 or higher. It requires the package quadprog

Installation

To install this package in R, use

    library("devtools");
    install_github("Hanyuz1996/EMeth")

Example

An example use:

     library("EMeth")
     em1 = cv.emeth(Y, eta, mu, aber = TRUE, V='c', init = 'default',
        family = 'laplace', nu = penalty, folds = 5, maxiter = 50, verbose = TRUE)
     cell_type_prop_est = em1$result$rho

where

This function cv.emeth automatically runs the cross validation procedure. Please see the help document for this function ?cv.emeth for more details of these and other parameters. Example data are provided in the example folder.

The output is a list with three elements

Support

You can contact zhanghy1996@gmail.com

Citation

If you use the software, please cite our paper: Zhang et al. 2021. The pipelines for simulation studies and real data analysis in this paper are contained in this repository.

Authors

Hanyu Zhang (University of Washington)

Wei Sun (Fred Hutchinson Cancer Research Center)

Reference

Zhang et al. 2021, EMeth: An EM algorithm for cell type decomposition based on DNA methylation data.