Skip to content

R package for the detection of differentially methylated regions through a Kernel regression sliding-window approa

Notifications You must be signed in to change notification settings

RuthBarral/MetKMR

Repository files navigation

MetKMR

R package for the detection of differentially methylated regions through a Kernel regression sliding-window approach

How to install?

Using devtools

# Installing the files in the repository
devtools::install_github(repo="RuthBarral/MetKMR/MetKMR_1.0")

# Loading the library
  library("MetKMR")

Manually Package

What is MetKMR?

There are many differential methylation analysis packages available already, but the majority of them are focused on testing individual sites and composing differentially methylated regions. In this current work an alternative one is proposed, based on a slidingwindow approach with association tests between the generated intervals and the phenotype, using kernel metrics constructed with distance metrics via a semi-parametric kernel machine regression framework, by adapting the Microbiome Regression-based Kernel Association Test (MiRKAT) package. The software, written in R programming supports many types of methylation data from Illumina microarrays to Biseq data.

Running MetKMR

To start using MetKMR we recomend to:

  • Read the submitted manuscript [...]
  • Use the help() functions for getting a detailed instructions of their use.
  • Read the associated vignettes and tutorials .

First Tutorial: Analyzing a epigenomic experiment (450K) in which the outcome variable is dichotomous (Healthy vs Hungtinton)

First tutorial
First tutorial data files

Second Tutorial: An interactomic approach based on combining epigenomic (450K) and transcriptomic data (RNA-Seq) from the Genome Cancer Atlas Project for the study of colorrectal cancer progression.

Second tutorial

Third Tutotial Example of how to annotate and normalize 850K EPIC data to analyze it with MetKMR (Tuberculosis patients vs hHealthy controls)

Includes a pipeline for preprocessing and normalizing data and to obtain the annotation data frame
Third tutorial

SHINY APP : GUI user interface

Do you like pushing buttons? If you prefer using an app than running a script MetKMR has it own shiny app that can be download from here:

MetKMR shiny App

You can download some examples of how to format your data for using the shiny app from here: MetKMR shiny App inputs


IMPORTANT

Despite of the fact that MetKMR has been designed to not "devour" RAM and avoid RAM crush, depending on the kind of analysis you are performing and how many CpGs you are testing it could take a lot of time. Specially if you use a machine with very low RAM memory. But you don't need a cluster, for instance all of the analysis of the tutorials were tested in the following computers :

  • HP pavillion laptop with Windows Vista 10 , 8 GB of ram and 4 cores
  • A Lenovo L450 laptop with UBUNTU 18, 16GB of ram and 4 cores
  • A custom high performance desktop computer with UBUNTU 18, 64GB of ram and 16 cores

Who is responsible of this package?

MetKMR project was developed by Ruth Barral Arca ,Carlos Martínez Mira , Alejandro Gil and supervised by M. Luz Calle Rosingana. Ruth is the mantainer of the package ([email protected]) if you have any doubt or suggestion do not hesitate to contact her.

Corrected bugs since 1st version

-error in ApplyRKAT: dplyr did not longer support a return within a dplyr:do
-error in PlotManhattan : started yielding the error " in .f(.x i ...) pval not found"
-toSQLite:problems when importing previously created sql files
-error in toSQLite: some dplyr functions have been moved to dbplyr
-error in createintervals: also due to changes in dplyr

About

R package for the detection of differentially methylated regions through a Kernel regression sliding-window approa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages