Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
shinyscreen
Manage
Activity
Members
Labels
Plan
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Miroslav Kratochvil
shinyscreen
Commits
ccf614a9
Commit
ccf614a9
authored
5 years ago
by
Todor Kondic
Browse files
Options
Downloads
Plain Diff
Merge branch 'devel' into 'master'
Devel See merge request
eci/shinyscreen!3
parents
2a6c6288
0d1a3a68
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
R/run.R
+3
-3
3 additions, 3 deletions
R/run.R
README.org
+20
-4
20 additions, 4 deletions
README.org
with
23 additions
and
7 deletions
R/run.R
+
3
−
3
View file @
ccf614a9
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
README.org
+
20
−
4
View file @
ccf614a9
#+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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment