Sign inSign up

cpanse/rawdiag

By cpanse

•Updated about 8 years ago

docker image to fire up shiny application

Image
1

1.1K

cpanse/rawdiag repository overview

⁠rawDiag

an R package supporting rational LC-MS method optimization for bottom-up proteomics on multiple OS platforms

main features:

  1. multiplatform and fast reading through using The New RawFileReader from Thermo Fisher Scientific⁠.
  2. uses latest visualization generation through using Rs ggplot2⁠ package.
  3. provides an R interface to your instrument raw data.
  4. ships with an example shiny application⁠.

⁠1 Requirements

⁠1.1 Thermo License agreement

accept the Thermo Fisher RawFileReader License agreement⁠.

⁠1.2 System Requirements

a Windows/Linux/MacOSX x64 platform

.NET Framework and R

⁠2 Installation guide

To ensure the proper function of this R package please check if all the requirements⁠ are fullfilled prior to using it.

⁠2.1 Install

run R

#R
  
# R package requirements
pkgs <- c( 'devtools',
  'dplyr',
  'ggplot2',
  'hexbin',
  'magrittr',
  'parallel',
  'protViz',
  'rmarkdown',
  'RSQLite',
  'scales',
  'shiny',
  'tidyr',
  'tidyverse')
pkgs <- pkgs[(!pkgs %in% unique(installed.packages()[,'Package']))]
if(length(pkgs) > 0){install.packages(pkgs)}

# Installation of rawDiag
install.packages('http://fgcz-ms.uzh.ch/~cpanse/rawDiag_0.0.10.tar.gz')

# Testing - "Hello, world!"
library(rawDiag)
(rawfile <- file.path(path.package(package = 'rawDiag'), 'extdata', 'sample.raw'))
system.time(RAW <- read.raw(file = rawfile))
dim(RAW)
summary.rawDiag(RAW)
PlotScanFrequency(RAW)

# read all dimensions
dim(RAW)
RAW <- read.raw(file = rawfile, rawDiag = FALSE)
dim(RAW)
⁠2.2. If you have problems

If your installation does not work with the below-mentioned instructions, do not hesitate to contact us via Email, SUBJECT help request rawDiag package⁠.

Please include the output of the sessInfo() command line call.

sessionInfo()
⁠2.3 Install from GitHub (only for developers)

the following code downloads and installs the R package from the Github without the required third party .dll files: please note: due to the data size (>=40MB) download can take a while

# install.packages("devtools")
library("devtools")
devtools::install_github("fgcz/rawDiag", build_vignettes = FALSE)

The New RawFileReader from Thermo Fisher Scientific⁠ has to be downloaded and installed separately in order to be able to directly read Thermo raw-files (by using the R function read.raw).

To install the New RawFileReader .Net assembly⁠ follow the installation instructions provided by Thermo Fisher Scientific.

⁠2.4 Typical install time on a "normal" desktop computer
  • Thermo RawFileReader dll: 1sec to 30 minutes
  • the rawDiag package through github: 10 minutes
⁠2.5 Platforms and versions the software has been tested on

The package JPR.R1⁠ release has been tested on the following platforms using RStudio⁠:

platformplatform versionR versionnote
LinuxDebian 8 (jessie)3.4.3Demo system⁠
LinuxDebian 10 (buster⁠)3.5.0CP
Linuxbioconductor/devel_proteomics22017-12-31 r73996dockerhub⁠
Windows7 x643.4.1CT
Windows10 x643.4.4CP virtual box
WindowsServer 2012 R2 x643.4.4CP
Windows10 x643.4.3WEW
Windows10 x64R Open 3.5.0WEW
MacOSX10.13.5 (17F77)3.4.2CP
MacOSX10.11.6 (15G20015)3.4.3JG
MacOSX10.13.4 (17E202)3.4.4CP

⁠3 Demonstration

⁠3.1 R commandline code snippet

"Hello; World!" example on the R command line

library(rawDiag)
data(WU163763)
PlotScanFrequency(WU163763, method='overlay')
PlotPrecursorHeatmap(WU163763)
PlotMassDistribution(WU163763
⁠3.2 An interactive shiny example
⁠in your local R shell
# install.packages("shiny")
# install.packages("DT")
library(shiny)
rawDiag_shiny <- system.file('shiny', 'demo', package = 'rawDiag')
shiny::runApp(rawDiag_shiny, display.mode = 'normal')
⁠using the docker image

source: dockerhub⁠

docker pull cpanse/rawdiag \
&& docker run -it -p 8787:8787 cpanse/rawdiag R -e "library(shiny); \
   rawDiag_shiny <- system.file('shiny', 'demo', package = 'rawDiag'); \
   shiny::runApp(rawDiag_shiny, display.mode = 'normal', port=8787, host='0.0.0.0')"

connect with your web browser to http://yourdockerhostname:8787

⁠3.3 using the read.raw method

taken from the ?read.raw man page.

(rawfile <- file.path(path.package(package = 'rawDiag'), 'extdata', 'sample.raw'))
system.time(RAW <- read.raw(file = rawfile))
 
summary.rawDiag(RAW)
PlotScanFrequency(RAW)
     
dim(RAW)
# now  read all dimensions
RAW <- read.raw(file = rawfile, rawDiag = FALSE)
dim(RAW)

⁠4 Instructions for use

read the vignettes.

browseVignettes('rawDiag')

the documentation of the function is available through the R man pages.

Tag summary

Content type

Image

Digest

Size

4.1 GB

Last updated

about 8 years ago

docker pull cpanse/rawdiag