Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Environmental Cheminformatics
pubchem
Commits
d244e837
Unverified
Commit
d244e837
authored
Nov 08, 2021
by
Todor Kondic
Browse files
pcl: add_ccs2csv, pb-lite-driver: Update
parent
2020e7d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
pubchemlite/R/add_ccs2csv.R
View file @
d244e837
...
...
@@ -15,7 +15,7 @@ SEL_ADDUCTS <- NULL # Change to adducts needed, if a subset of adducts
dir_start
<-
Sys.getenv
(
"STARTDIR"
)
args
<-
commandArgs
(
trailingOnly
=
T
)
fn_config
<-
args
[[
1
]]
fn_config
<-
file.path
(
dir_start
,
args
[[
1
]]
)
if
(
!
file.exists
(
fn_config
))
stop
(
"Config file"
,
fn_config
,
" does not exist."
)
x
<-
yaml
::
yaml.load_file
(
fn_config
)
fn_ccs
<-
file.path
(
dir_start
,
x
$
ccs_src_path
)
...
...
pubchemlite/pb-lite-driver.sh
View file @
d244e837
declare
-gx
INPUTDIR
declare
-gx
STARTDIR
=
"
$PWD
"
declare
-agx
ALL_STAGES
=(
"cleanup"
"prepare"
"fetch_scripts_sources"
"build"
"quotes"
"buildccs"
"sanity_postbuild"
"eval4pub"
"epilog"
)
declare
-a
STAGES
STAGES
=()
# Which stages should be run.
...
...
@@ -125,7 +126,8 @@ function build() {
function
buildccs
()
{
header BUILDCCS
(
export
STARTDIR
=
"
$PWD
"
;
cd
"
$WORKDIR
"
;
Rscript
--vanilla
"
${
SCRIPTDIR
}
/R/add_ccs2csv.R"
"
$STARTDIR
/
$MANIF
"
"
$WORKDIR
/
$OUTMFFILE
"
"
$WORKDIR
/
$OUTMFCCSFILE
"
)
(
cd
"
$WORKDIR
"
;
Rscript
--vanilla
"
${
SCRIPTDIR
}
/R/add_ccs2csv.R"
"
$MANIF
"
"
$WORKDIR
/
$OUTMFFILE
"
"
$WORKDIR
/
$OUTMFCCSFILE
"
)
# (export STARTDIR="$PWD";cd "$WORKDIR"; Rscript --vanilla "${SCRIPTDIR}/R/add_ccs2csv.R" "$STARTDIR/$MANIF" "$WORKDIR/$OUTMFFILE" "$WORKDIR/$OUTMFCCSFILE")
footer BUILDCCS
}
...
...
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