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

Update single.sw in R/mix.R

* R/mix.R(single.sw): New argument.
  [lastStep] Controls at which point to finish spectral step.

* man/single.sw.Rd: Update documentation.
parent 3709fa5d
No related branches found
No related tags found
No related merge requests found
...@@ -117,7 +117,7 @@ single.sw<-function(fn_data,stgs_alist,wd,fn_cmpd_list,mode,readMethod="mzR",arc ...@@ -117,7 +117,7 @@ single.sw<-function(fn_data,stgs_alist,wd,fn_cmpd_list,mode,readMethod="mzR",arc
archdir<-file.path(wd,archdir) archdir<-file.path(wd,archdir)
if (!dir.exists(archdir)) dir.create(archdir) if (!dir.exists(archdir)) dir.create(archdir)
fn_arch<-file.path(archdir,paste(fn_data,".archive",sep='')) fn_arch<-file.path(archdir,paste(fn_data,".archive",sep=''))
RMassBank::msmsWorkflow(w, mode=mode, steps=2:8,archivename=fn_arch) RMassBank::msmsWorkflow(w, mode=mode, steps=2:lastStep,archivename=fn_arch)
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
\title{RMassBank Spectral Workflow on a Single Compound Mixture} \title{RMassBank Spectral Workflow on a Single Compound Mixture}
\usage{ \usage{
single.sw(fn_data, stgs_alist, wd, fn_cmpd_list, mode, single.sw(fn_data, stgs_alist, wd, fn_cmpd_list, mode,
readMethod = "mzR", archdir = "archive") readMethod = "mzR", archdir = "archive", lastStep = 8)
} }
\arguments{ \arguments{
\item{fn_data}{A mzML data file.} \item{fn_data}{A mzML data file.}
...@@ -26,6 +26,8 @@ documentation of \code{msmsRead} for details.} ...@@ -26,6 +26,8 @@ documentation of \code{msmsRead} for details.}
\item{archdir}{The directory to store R objects created during \item{archdir}{The directory to store R objects created during
workflow execution.} workflow execution.}
\item{lastStep}{The last step in the workflow. Default is eight.}
} }
\value{ \value{
MsmsWorkspace object. MsmsWorkspace object.
......
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