Git Product home page Git Product logo

srmservice's Introduction

CRAN_Status_Badge codecov

protViz - Visualizing and Analyzing Mass Spectrometry Related Data in Proteomics

Documentation

The package ships with two pdf vignettes.

browseVignettes('protViz')

vignette('protViz')
vignette('PTM_MarkerFinder')

Installation

CRAN

install.packages('protViz')

from github

install the latest development version

install.packages('devtools')
library(devtools)
install_git('https://github.com/cpanse/protViz', build_vignettes = FALSE, quiet = FALSE)
library(protViz)

or

BiocManager::install('cpanse/protViz')

R CMD build hints

Rcpp::compileAttributes()

tools::package_native_routine_registration_skeleton(".", character_only = FALSE)


RcppExport SEXP _rcpp_module_boot_MyModule();

static const R_CallMethodDef CallEntries[] = {
    {"_rcpp_module_boot_MyModule", (DL_FUNC) &_rcpp_module_boot_MyModule, 0},
    {NULL, NULL, 0}
};

RcppExport void R_init_minModuleEx(DllInfo *dll) {
    R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
    R_useDynamicSymbols(dll, FALSE);
}

Docker

docker pull cpanse/protviz \
&& docker run -d -p 8792:8787 cpanse/protviz     

connect to http://yourdockerhost:8791 using a web browser

  • username: rstudio
  • password: rstudio

Documentation

The package ships with a package vignette (browseVignettes('protViz') and a reference manual (just type ?protViz on the R shell).

Both documents are also available on the package's CRAN page.

Related approaches

srmservice's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

lucaskook cpanse

srmservice's Issues

generic 2grp

Hei Witold,

Wir hatten doch mals die RMD_generic_2grp??

Die sind bei mir aus SRMService verschwunden??

gruess jonas

Compare sample intensities: Plot 5 number summaries to asses sample distribution

Code sample:

Use line plots and group them according explanatory variables.

untransSummaries<-longFormat %>% group_by(Filename, Condition, Donor) %>% 
  summarise(median  = median(FG.Quantity), mean = mean(FG.Quantity), Q3 = quantile(FG.Quantity, 0.75 ) )
untransSummaries <- melt(untransSummaries)

ggplot(untransSummaries, aes(Condition, value, group=variable)) + geom_line(stat = "identity") + facet_grid( ~ Donor  ) + geom_line(aes(color=variable))  + theme(axis.text.x= element_text(angle=-90))

Export clustering results visualized in heatmap

Export protein clusters based on clustering as visualized in Grp2Analysis.pdf (vignettes/Grp2Analysis.Rmd).

The matrix returned by getResultTableWithPseudo() should contain an additional column with the protein cluster ids.

Preferred solution would be that after initializting a Grp2Analysis object you can call a function
grp2$getProteinClusterIDs(nrOfCluster = 5)
which returns a data.frame with 2 columns first proteinID second clusterID

When rendering the Grp2Analysis.Rmd the exacly same clustering is generated and visualized.

Possible solutions:
a) Cluster and have a heatmap function where you can pass a hclust object for visualization (preffered).
b) parametrize heatmap in such a way that it generates the same clustering as the Grp2Analysis Class.
c) call heatmap which return a hclust object and store it in Grp2Analysis.

Ad a) Look for heatmap functions. But it needs to have a nice color scheme and RowSideColumn and ColSideColumn annotation and ideally also option to annotate clusters.

TODO
Fork and clone
https://github.com/protviz/SRMService
install in R
Fork and clone
https://github.com/protviz/quantable
install in R

  • implement in quantable a heatmap wrapper.

reference class in : Grp2Analysis.R
/data SRMService::mqQuantMatrixGRP2

Building markdown with references to images and tables:
rmarkdown::render("Grp2Analysis.Rmd", params=list(grp = SRMService::mqQuantMatrixGRP2), bookdown::pdf_document2())

Package fails to build when Grp2AnalysisHeatmap3.Rmd in vignette folder.

Please check why package build works when
Grp2AnalysisHeatmap3.Rmd is renamed to Grp2AnalysisHeatmap3.Rmd_tmp

C:\Users\wolski\prog>R CMD build SRMService
* checking for file 'SRMService/DESCRIPTION' ... OK
* preparing 'SRMService':
* checking DESCRIPTION meta-information ... OK
* installing the package to build vignettes
* creating vignettes ... OK
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
Removed empty directory 'SRMService/inst/exec'
* looking to see if a 'data/datalist' file should be added
* building 'SRMService_0.1.9.23.tar.gz'

However it fails when Grp2AnalysisHeatmap3.Rmd present in vignette folder:

C:\Users\wolski\prog>R CMD build SRMService
* checking for file 'SRMService/DESCRIPTION' ... OK
* preparing 'SRMService':
* checking DESCRIPTION meta-information ... OK
* installing the package to build vignettes
* creating vignettes ... ERROR
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
No id variables; using all as measure variables
Warning: Removed 821 rows containing non-finite values (stat_ydensity).
Warning: Removed 821 rows containing non-finite values (stat_summary).
No id variables; using all as measure variables
Warning: Removed 821 rows containing non-finite values (stat_ydensity).
Warning: Removed 821 rows containing non-finite values (stat_summary).
`stat_bin()` using `bins = 30`. Pick better value with `binwidth`.
No id variables; using all as measure variables
Warning: Removed 821 rows containing non-finite values (stat_ydensity).
Warning: Removed 821 rows containing non-finite values (stat_summary).
No id variables; using all as measure variables
Warning: Removed 821 rows containing non-finite values (stat_ydensity).
Warning: Removed 821 rows containing non-finite values (stat_summary).
Quitting from lines 66-70 (./Grp2Analysis.Rmd)
Quitting from lines 3-28 (./Grp2Analysis.Rmd)
Error: processing vignette 'Grp2PullDownExample.Rmd' failed with diagnostics:
attempt to apply non-function
Execution halted

Experiment Name

Issue with the experiment name is still not fixed
-> I will fix this

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.