Skip to content
Snippets Groups Projects
Commit ccf614a9 authored by Todor Kondic's avatar Todor Kondic
Browse files

Merge branch 'devel' into 'master'

Devel

See merge request eci/shinyscreen!3
parents 2a6c6288 0d1a3a68
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ presc.do<-function(fn_data,fn_cmpd_l,mode,dest=".",proc=F,...) {
if (proc) {
cl<-parallel::makeCluster(proc)
parallel::clusterEvalQ(cl,library(rmbmix))
parallel::clusterEvalQ(cl,library(shinyscreen))
parallel::clusterMap(cl,fread,fn_data)
} else {
lapply(fn_data,fread)
......@@ -97,7 +97,7 @@ sw.do <- function(fn_data, fn_cmpd_l, mode, dest=".", combine=F,
w <- if (proc) {
cl=parallel::makeCluster(proc)
parallel::clusterEvalQ(cl,library(rmbmix))
parallel::clusterEvalQ(cl,library(shinyscreen))
parallel::clusterMap(cl,fread,fn_data)
} else {
lapply(fn_data,fread)
......@@ -175,7 +175,7 @@ mb.do<-function(mb,proc=F) {
mb},vectorize.args = c("mb","id","wd"))
if (proc) {
cl<-parallel::makeCluster(proc)
parallel::clusterEvalQ(cl,library("rmbmix"))
parallel::clusterEvalQ(cl,library("shinyscreen"))
parallel::clusterMap(cl,fwork,mb,infodir,wd)
} else {
fwork(mb,infodir,wd)
......
#+TITLE: The Shinyscreen Package
* Usage
** Prescreening
** Prescreening with presc.plot
1. Generate prescreening data frames,
#+BEGIN_SRC R
presc.do(list.files(path="~/ECI_SCRATCH/20190627_HEROBER",patt=".*.mzML",full.names=T),
......@@ -13,11 +14,26 @@
argument.
2. Plot,
#+BEGIN_SRC R
require(rmbmix)
require(shinyscreen)
presc.plot(list.files(".",patt="2.*POS",include.dirs=T),mode="pH",cex=0.7,rt_digits=2,m_digits=4,pal="Dark2",out="prescreen.pdf")
#+END_SRC
The only argument is a sequence of absolute paths to directories
containing the prescreen data. The resulting plot file is going
to be placed into the current working directory.
** Prescreening with presc.shiny
1. Same as above
2. To start the _Shiny_ prescreening, do
#+BEGIN_SRC R
require(shinyscreen)
df<- data.frame(Files=rep("file.mzML",15),ID=1:15,tag=rep(c(15,30,45),5),set_name="Collision Energy")
This dataframe is the input that has to be introduced in order
to have all the information from the data.
pos_wds <- list.files(".",patt=".*2019.*_[49][35]$",include.dirs=T,full.names=T)
This is an example of using the POS data (pH).
presc.shiny(pos_wds,mode="pH",cex=1,prescdf=df)
The arguments which need to be put into the presc.shiny are
pos_wds (as an example), the mode (pH or mH), cex as a font size
and prescdf=df to get the information into the shiny part.
#+END_SRC
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment