Git Product home page Git Product logo

dinar's Introduction

Differential Network Analysis in R

Examine your omics datasets in the prior knowledge context.

Follow the steps as indicated in interactive menu.

For the help overlay the mouse over the info button or go to Quick help section.

Large knowledge networks of Arabidopsis thaliana and Solanum tuberosum immune signalling are provided.

DOI

Run DiNAR from GitHub

install R-3.x.y or higher :

Win

https://cran.r-project.org/

Ubuntu

sudo apt-get install r-base
sudo apt-get install r-base-dev
sudo apt-get -y install libcurl4-gnutls-dev
sudo apt-get -y install libssl-dev
sudo apt-get install libv8-dev

open R and paste to console

Win

if (!require("devtools")) install.packages("devtools")
if (!require('Rcpp')) install.packages('Rcpp')
devtools::install_github("rstudio/shiny")

shiny:::runGitHub("DiNAR", "NIB-SI", subdir = "DiNARscripts/")

Ubuntu

install.packages("devtools", lib="~/R/lib")

shiny:::runGitHub("DiNAR", "NIB-SI", subdir = "DiNARscripts/")

*Note: this will install/load libraries: (V8), igraph, colourpicker, plotly, ggplot2, calibrate, stringi, magrittr, yaml, animatoR, stringr, wordcloud2, shinyjs, shinydashboard, shinyBS, colorspace, knitr, markdown, Rcpp, dplyr, rdrop2, fBasics, shinyIncubator, shinysky, downloader, visNetwork, htmltools, htmlwidgets, intergraph, network, ndtv, shinyFiles and pryr

Run DiNAR from shinyapps

๐Ÿ https://NIB-SI.shinyapps.io/DiNAR (Basic - Performance Boost; Instance Size: 8GB; Max Worker Processes: 10; Max Connections per Worker: 1; Max Instances: 3)

Other options

  1. download zip and run locally in RStudio: https://www.rstudio.com/products/rstudio/download/#download http://shiny.rstudio.com/tutorial/lesson1/
  2. download zip and deploy: http://shiny.rstudio.com/articles/shinyapps.html http://shiny.rstudio.com/articles/scaling-and-tuning.html
  3. download zip and https://support.rstudio.com/hc/en-us/articles/214771447-Shiny-Server-Administrator-s-Guide

Help

http://conferences.nib.si/DiNAR/

Additional Data Files

https://github.com/NIB-SI/DiNAR/tree/master/CKNs

Code References

Create PDF animation

  1. in animatedPlotAB.R uncomment lines: 48, 49, 50, 51, 52 and 306
  2. install LaTeX (e.g. https://miktex.org/)
  3. install animate Package http://tug.ctan.org/macros/latex/contrib/animate/animate.pdf
  4. copy to working directory and run LaTeX template document: CreatePDFanimation.tex

Create gif

  1. in animatedPlotAB.R uncomment few lines below # To generate .pdf animation comment
  2. replace myfilename = paste0("SampleGraph", length(list.files(subDir))+1, '.pdf') with myfilename = paste0("SampleGraph", formatC(length(list.files(subDir))+1, width=4, flag="0"), '.png')
  3. add few lines of code before newplot to save all produced images in .png format; e.g.
png(paste0(myfilepath, '/', myfilename), 
     width = 1500, height = 1200, 
     units = "px", pointsize = 12)
  1. add dev.off() at the end of the function
  2. run short python2 script containing the following code (take care of dependencies!):
import imageio
import os
with imageio.get_writer('./my.gif', mode='I') as writer:
    for filename in sorted(os.listdir("./images/")): # images == myfilepath == where .png images of interest are
        filename="./images/"+filename
        print(filename)
        image = imageio.imread(filename)
        writer.append_data(image)

Find more information at: https://rfunction.com/archives/812 and https://imageio.github.io/

sub apps

Ath GSE56094 experimental data analysis

๐ŸŽ https://github.com/NIB-SI/DiNAR/tree/master/GEODataAnalysis

obsolete

https://github.com/NIB-SI/DiNAR/tree/master/NetworkClustering

dinar's People

Contributors

zagorgit avatar

Watchers

James Cloos avatar

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.