GithubHelp home page GithubHelp logo

daisybio / keypathwayminer-r Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 1.0 40.83 MB

R package for de novo pathway enrichment using KeyPathwayMiner

Home Page: https://exbio.wzw.tum.de/keypathwayminer/

R 100.00%
standalone pathway-enrichment-analysis interaction-network omics gene-expression-profiles de-novo-pahtway-enrichment singelcell biological-networks multiomics r

keypathwayminer-r's Introduction

KeyPathwayMineR - R package

Given a biological network and a set of case-control studies, KeyPathwayMiner(KPM) efficiently extracts all maximal connected sub-networks. These sub-networks contain the genes that are mainly dysregulated, e.g., differentially expressed, in most cases studied:

  • The exact quantities for “mainly” and “most” are modeled with two easy-to-interpret parameters (K, L) that allows the user to control the number of outliers (not dysregulated genes/cases) in the solutions.

Two different approaches for extracting subnetworks that are enriched for active/deregulated genes have been implemented:

  • INES: Extract all maximal sub-networks containing nodes with no more than L inactive cases besides of K exceptions.

  • GLONE: Extracts maximal sub-networks where the total sum of not-active/diff. exp. cases is at most L.

For more information on the R package, please check the following reference:

KeyPathwayMineR: De Novo Pathway Enrichment in the R Ecosystem

Overview

Purpose

The following package provides an easy way for using KPM and visualize the extracted subnetworks via R. The user can decide whether he wants to call KPM on his computer (via standalone) or with the Web API. With the kpm_options() object the arguments for the execution of the program can be easily processed and viewed.

Prerequisites

KeyPathwayMineR uses the rJava library to run the local (Java - standalone) version of KPM. This package allows us to utilize the different functions from the standalone jar needed to run KeyPathwayMiner. To use this functionality, you should run Java 1.8 or higher on your machine.

To use all the additional functionalities of the package make sure to install the following bioconductor packages:

if (!require("BiocManager", quietly = TRUE))
      install.packages("BiocManager")
BiocManager::install(pkgs = c("simpIntLists","SummarizedExperiment", "MAST"))

Get started

Once your R client has been successfully configured you can start using the package.

Users

KeyPathwayMiner is currently available on github and can be installed through the devtools R package:

# Install KeyPathwayMineR from github and build vignettes
if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools")
devtools::install_github("baumbachlab/keypathwayminer-R", build_vignettes = TRUE)
      
# Load and attach KeyPathwayMineR 
library("KeyPathwayMineR")

If the initialization was successful you will get following output:

#> Loading required package: rJava
#> Standalone jar added to class path:  TRUE
#> Utils: The Java virtual machine is available and has the correct version.
#> KeyPathwayMineR ready for local and remote execution.

When everything is set up you can get started with the following vignette:

vignette("KeyPathwayMineR")

Developers

If you want to play around or work on the code you can clone the repo:

git clone https://github.com/baumbachlab/keypathwayminer-R.git

Opent the KeyPathwayMineR.Rproj file to open the package. To get started install the following libraries:

install.packages(c("devtools", "roxygen2", "testthat", "knitr"))

Cite KeyPathwayMineR

To cite KeyPathwayMineR in publications, please use:

Konstantinos Mechteridis, Michael Lauber, Jan Baumbach, and Markus List. KeyPathwayMineR: De Novo Pathway Enrichment in the R Ecosystem. Frontiers in Genetics, 12, 2022.

or use following command to get a BibTeX entry:

citation("KeyPathwayMineR")

Common problems

  • If you have problems with R using the correct Java version, this guide may be helpful here.

  • Java is not installed. Browse the web for instructions specific for your operating system to install Java.

  • rJava is not installed. Fix by install.packages("rJava")

  • Java is not properly configured. Under linux this can often be fixed by sudo update-alternatives --config java. Another option is to set the environment variable JAVA_HOME correctly.

  • rJava is not properly configured. This can often be fixed by sudo R CMD javareconf

  • On windows when 32 bit and 64 bit version are installed: ERROR: loading failed for 'i386'. Try installing as follows: install_github("baumbachlab/keypathwayminer-R", INSTALL_opts=c("--no-multiarch"))

  • Vignette re-building failed. Install the package without building vignettes as follows: install_github("baumbachlab/keypathwayminer-R"). Download vignettes input_files_format.Rmd and KeyPathwayMiner.Rmd from the vignettes folder manually, open them on R-studio and knit (CTRL/CMD+Shift+K) them.

If any other problems occur consider creating an issue. [CREATE ISSUE]

keypathwayminer-r's People

Contributors

michaellauber avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

flugende

keypathwayminer-r's Issues

Integrate with GeneTonic

https://bmcbioinformatics.biomedcentral.com/articles/10.1186/s12859-021-04461-5

https://bioconductor.org/packages/release/bioc/vignettes/GeneTonic/inst/doc/GeneTonic_manual.html

Q: I am using a different service/software for generating the results of functional enrichment analysis. How do I plug this into GeneTonic?

A: You can set up a small conversion function, on the line of shake_topGOtableResult and shake_enrichResult (use the source, Luke to see how you can build your own), or request such a function - make sure to specify the formatting specifications of your tool of choice (e.g. DAVID, g:Profiler, or commercial solutions such as Ingenuity Pathway Analysis).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.