Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
shinyscreen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
11
Issues
11
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Environmental Cheminformatics
shinyscreen
Commits
4a3d397a
Commit
4a3d397a
authored
Aug 05, 2019
by
Todor Kondic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Depict with colour
* R/mix.R(rendersmiles2): Fix colour.
parent
214083c7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
R/mix.R
R/mix.R
+1
-1
R/run.R
R/run.R
+4
-2
No files found.
R/mix.R
View file @
4a3d397a
...
@@ -314,7 +314,7 @@ RMB_EIC_prescreen_df <- function (wd, RMB_mode, FileList, cmpd_list,
...
@@ -314,7 +314,7 @@ RMB_EIC_prescreen_df <- function (wd, RMB_mode, FileList, cmpd_list,
row.names
=
F
)
row.names
=
F
)
}
}
preProc
<-
function
(
fnFileTab
,
fnDest
=
paste
(
stripext
(
fnFileTab
),
"_candidate.csv"
,
sep
=
''
),
noiseFac
=
3
,
rtDelta
=
0.5
,
intTresh
=
5
e5
)
{
preProc
<-
function
(
fnFileTab
,
fnDest
=
paste
(
stripext
(
fnFileTab
),
"_candidate.csv"
,
sep
=
''
),
noiseFac
=
3
,
rtDelta
=
0.5
,
intTresh
=
1
e5
)
{
## read in .csv file as file
## read in .csv file as file
ftable
<-
read.csv
(
file
=
fnFileTab
,
header
=
T
,
sep
=
","
,
stringsAsFactors
=
F
)
ftable
<-
read.csv
(
file
=
fnFileTab
,
header
=
T
,
sep
=
","
,
stringsAsFactors
=
F
)
...
...
R/run.R
View file @
4a3d397a
...
@@ -51,7 +51,7 @@ impCmpdList <- function(fnSrc,fnDest=file.path(".",basename(fnSrc))) {
...
@@ -51,7 +51,7 @@ impCmpdList <- function(fnSrc,fnDest=file.path(".",basename(fnSrc))) {
gen_cmpd_l
(
src_fn
=
fnSrc
,
dest_fn
=
fnDest
)
gen_cmpd_l
(
src_fn
=
fnSrc
,
dest_fn
=
fnDest
)
}
}
gen
<-
function
(
fnFileTab
,
fnCmpdList
,
mode
,
fnDestFileTable
=
attch
(
stripext
(
fnFiletable
),
"_candidate.csv"
),
dest
=
"."
,
fnLog
=
'prescreen.log'
,
proc
=
F
,
intTresh
=
5
e5
,
noiseFac
=
3
,
rtDelta
=
0.5
,
ppmLimFine
=
10
,
eicLim
=
1e-3
)
{
gen
<-
function
(
fnFileTab
,
fnCmpdList
,
mode
,
fnDestFileTable
=
attch
(
stripext
(
fnFiletable
),
"_candidate.csv"
),
dest
=
"."
,
stgsPath
=
dest
,
fnLog
=
'prescreen.log'
,
proc
=
F
,
intTresh
=
1
e5
,
noiseFac
=
3
,
rtDelta
=
0.5
,
ppmLimFine
=
10
,
eicLim
=
1e-3
)
{
message
(
"*** Started to generate prescreen data ..."
)
message
(
"*** Started to generate prescreen data ..."
)
## Read in the file table.
## Read in the file table.
...
@@ -60,9 +60,11 @@ gen<-function(fnFileTab,fnCmpdList,mode,fnDestFileTable=attch(stripext(fnFiletab
...
@@ -60,9 +60,11 @@ gen<-function(fnFileTab,fnCmpdList,mode,fnDestFileTable=attch(stripext(fnFiletab
## Get files and the associated work directories.
## Get files and the associated work directories.
fnData
<-
levels
(
factor
(
fTab
$
Files
))
fnData
<-
levels
(
factor
(
fTab
$
Files
))
wd
<-
fTab
$
wd
[
match
(
fnData
,
fTab
$
Files
)]
wd
<-
fTab
$
wd
[
match
(
fnData
,
fTab
$
Files
)]
stgsName
<-
sapply
(
wd
,
function
(
w
)
paste
(
wd
,
".ini"
,
sep
=
''
))
fnStgs
<-
file.path
(
stgsPath
,
stgsName
)
## Do the prescreen.
## Do the prescreen.
presc.do
(
fnData
=
fnData
,
wd
=
wd
,
fnCmpdList
=
fnCmpdList
,
mode
=
mode
,
dest
=
dest
,
ppm_limit_fine
=
ppmLimFine
,
EIC_limit
=
eicLim
,
proc
=
proc
,
fnLog
=
fnLog
)
presc.do
(
fnData
=
fnData
,
wd
=
wd
,
fn
Stgs
=
fnStgs
,
fn
CmpdList
=
fnCmpdList
,
mode
=
mode
,
dest
=
dest
,
ppm_limit_fine
=
ppmLimFine
,
EIC_limit
=
eicLim
,
proc
=
proc
,
fnLog
=
fnLog
)
message
(
"*** ... done generating prescreen data."
)
message
(
"*** ... done generating prescreen data."
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment