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
Container Registry
Model registry
Operate
Environments
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
Environmental Cheminformatics
shinyscreen
Commits
41421b99
Commit
41421b99
authored
5 years ago
by
Todor Kondic
Browse files
Options
Downloads
Patches
Plain Diff
Fix mix.R
* R/mix.R(gen_stgs_and_load): Fix argument.
parent
40eb35c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
R/mix.R
+3
-3
3 additions, 3 deletions
R/mix.R
with
3 additions
and
3 deletions
R/mix.R
+
3
−
3
View file @
41421b99
...
...
@@ -97,16 +97,16 @@ gen_comp_list<-function(src_fn,dest_fn) {
##'
##' @title Generate and Load the RMassBank Settings File
##' @param fn_data The mzML filename.
##' @param stgs
_alist
Settings named list, or a settings filename.
##' @param stgs Settings named list, or a settings filename.
##' @param wd Directory under which results are archived.
##' @return result of RMassBank::loadRmbSettings
##' @author Todor Kondić
gen_stgs_and_load
<-
function
(
fn_data
,
stgs
,
wd
)
{
wd
<-
normalizePath
(
wd
)
fn_data
<-
normalizePath
(
fn_data
)
stgs
_alist
<-
if
(
is.character
(
stgs
_alist
))
yaml
::
yaml.load_file
(
stgs
_alist
)
else
stgs
_alist
stgs
<-
if
(
is.character
(
stgs
))
yaml
::
yaml.load_file
(
stgs
)
else
stgs
sfn
<-
file.path
(
wd
,
paste
(
basename
(
fn_data
),
".ini"
,
sep
=
''
))
mk_sett_file
(
stgs
_alist
,
sfn
)
mk_sett_file
(
stgs
,
sfn
)
RMassBank
::
loadRmbSettings
(
sfn
)
}
...
...
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