Giter VIP home page Giter VIP logo

ait5 / cnapp Goto Github PK

View Code? Open in Web Editor NEW
18.0 2.0 7.0 19 MB

CNApp represents the first web tool to perform a comprehensive and integrative analysis of copy number alterations (CNAs) in a user-friendly interface. The software uses segmented data from either aCGH, SNP-array, whole-exome sequencing or whole-genome sequencing to assess sample profiles and CNA levels, establishing associations with molecular and clinical features. CNApp has three main sections: Re-Seg & Score, Region profile and Classifier model

License: Other

HTML 4.22% R 95.48% CSS 0.27% JavaScript 0.04%

cnapp's Introduction

CNApp

CNApp is a user-friendly web tool that offers sample- and cohort-level association analyses, allowing a comprehensive and integrative exploration of CNAs with clinical and molecular variables. CNApp generates genome-wide profiles with tumor-purity correctiion, calculates CNA levels by computing broad, focal and global CNA scores (BCS, FCS and GCS, respectively), identifies CNAs associated with clinical features and molecular annotated variables and uses machine learning-based predictions to classify samples by using segmented data from either microarrays or next-generation sequencing. CNApp provides a unique scenario to comprehensively analyze CNAs and integrate them with molecular and clinical features.

Functions of CNApp comprise three main sections: 1- Re-Seg & Score: re-segmentation, CNA scores computation, variable association and survival analysis, 2- Region profile: genome-wide CNA profiling, descriptive regions assessment and 3- Classifier model: machine learning classification model predictions.

CNApp is hosted at https://tools.idibaps.org/CNApp/.

Please give us credit and cite CNApp when you use it for your integrative CNA analysis:

CNApp, a tool for the quantification of copy number alterations and integrative analysis revealing clinical implications. Sebastia Franch-Exposito, Laia Bassaganyas, Maria Vila-Casadesus, Eva Hernandez-Illan, Roger Esteban-Fabro, Marcos Diaz-Gay, Juan Jose Lozano, Antoni Castells, Josep M. Llovet, Sergi Castellvi-Bel, Jordi Camps eLife 2020;9:e50267 DOI: 10.7554/eLife.50267

Running the app

First check dependencies needed to run CNApp by copying the following code in R (or RStudio):

if(!require(shiny)) install.packages("shiny")
if(!require(shinyBS)) install.packages("shinyBS")
if(!require(shinyjs)) install.packages("shinyjs")
if(!require(shinythemes)) install.packages("shinythemes")
if(!require(shinyWidgets)) install.packages("shinyWidgets")
if(!require(shinydashboard)) install.packages("shinydashboard")
if(!require(survival)) install.packages("survival")
if(!require(survminer)) install.packages("survminer")
if(!require(Cairo)) install.packages("Cairo")


if(!require(V8)) install.packages("V8")
#if any issue here like 'ERROR: configuration failed for package ‘curl’' or 'ERROR: configuration failed for package ‘V8’' follow printed instructions on your command-line window

if(!require(httr)) install.packages("httr")
#if any issue here like 'ERROR: configuration failed for package ‘openssl’' follow printed instructions on your command-line window

if(!require(plotly)) install.packages("plotly")
if(!require(randomcoloR)) install.packages("randomcoloR")
if(!require(heatmaply)) install.packages("heatmaply")
if(!require(ggplot2)) install.packages("ggplot2")
if(!require(ggsignif)) install.packages("ggsignif")
if(!require(RColorBrewer)) install.packages("RColorBrewer")
if(!require(randomForest)) install.packages("randomForest")
if(!require(doBy)) install.packages("doBy")
if(!require(parallel)) install.packages("parallel")
if(!require(caret)) install.packages("caret")
if(!require(XML)) install.packages("XML")
#if any issue here like 'ERROR: configuration failed for package ‘XML’' ty installing 'libxml2' into your OS

if (!require(devtools)) install.packages("devtools")

if(!require(limma)) {source("http://www.bioconductor.org/biocLite.R");biocLite("limma")}
if(!require(GenomicFeatures)) {source("http://www.bioconductor.org/biocLite.R");biocLite("GenomicFeatures")}
#if any issue here like 'ERROR: configuration failed for package ‘RMySQL’' ty installing 'libmysqlclient' into your OS
if(!require(GenomicAlignments)) {source("http://www.bioconductor.org/biocLite.R");biocLite("GenomicAlignments")}
if(!require(GenVisR)) {source("http://www.bioconductor.org/biocLite.R");biocLite("GenVisR")}

    ############## to use BiocManager ####################
    #if (!requireNamespace("BiocManager", quietly = TRUE))
    #    install.packages("BiocManager")
    #BiocManager::install("limma")
    #BiocManager::install("GenomicFeatures")
    #BiocManager::install("GenomicAlignments")
    #BiocManager::install("GenVisR")
    ######################################################

if(!require(shinysky)) {library(devtools); devtools::install_github("AnalytixWare/ShinySky")}
#if(!require(GenVisR)) {library(devtools); devtools::install_github("griffithlab/GenVisR")}

if (!require(webshot)) install.packages("webshot")

if(!require(phantomjs)) {webshot::install_phantomjs()}

If warning outputs are printed, try again! (or try line by line...)

There are many ways to download and run CNApp:

Run from GitHub repository:

# Easiest way is to use runGitHub to run CNApp from GitHub:
library(shiny)
runGitHub("CNApp", "ait5")

By loading CNApp from compressed app url:

# Run a tar or zip file directly
runUrl("https://github.com/ait5/CNApp/archive/master.tar.gz")
runUrl("https://github.com/ait5/CNApp/archive/master.zip")

By cloning or downloading repository:

# Using runApp(),  first clone the repository with git. If you have cloned it into
# ~/CNApp, first go to that directory, then use runApp().
setwd("~/CNApp")
runApp()

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.