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

Update README.org

parent 8f267f8f
No related branches found
No related tags found
No related merge requests found
...@@ -2,30 +2,62 @@ ...@@ -2,30 +2,62 @@
* Usage * Usage
The entire procedure, ** Prescreening
#+BEGIN_SRC: R 1. Generate prescreening data frames,
pos<-rmbmix::sw.do(list.files(patt=".*pos.mzML"),fn_cmpd_list="ChemistryDashboard-Batch-Search_2019-05-15_07_27_26.csv",mode="pH") #+BEGIN_SRC R
pos_pmb<-rmbmix::mb.prep(pos) presc.do(list.files(patt=".*mzML"),"pH",fn_cmpd_list="./Pesticides.info.csv",proc=4)
pos_mb<-rmbmix::mb.do(pos_pmb) #+END_SRC
This is to be carried out inside the directory containing the
neg<-rmbmix::sw.do(list.files(patt=".*neg.mzML"),fn_cmpd_list="ChemistryDashboard-Batch-Search_2019-05-15_07_27_26.csv",mode="mH") ~mzML~ files. For sequential execution, leave out the ~proc~
neg_pmb<-rmbmix::mb.prep(neg) argument.
neg_mb<-rmbmix::mb.do(neg_pmb) 2. Plot,
#+BEGIN_SRC R
#+END_SRC require(rmbmix)
presc.plot(normalizePath(list.dirs(".",recursive=F,full.names=F)))
#+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.
** Record generation
The entire sequentual procedure,
#+BEGIN_SRC: R
pos<-rmbmix::sw.do(list.files(patt=".*pos.mzML"),fn_cmpd_list="ChemistryDashboard-Batch-Search_2019-05-15_07_27_26.csv",mode="pH")
pos_pmb<-rmbmix::mb.prep(pos)
pos_mb<-rmbmix::mb.do(pos_pmb)
neg<-rmbmix::sw.do(list.files(patt=".*neg.mzML"),fn_cmpd_list="ChemistryDashboard-Batch-Search_2019-05-15_07_27_26.csv",mode="mH")
neg_pmb<-rmbmix::mb.prep(neg)
neg_mb<-rmbmix::mb.do(neg_pmb)
The ~fn_cmpd_list~ argument is the compound list, from Chemistry #+END_SRC
Dashboard, or in a RMassBank format. The first argument to ~sw.do~ is
the list of /mzML/ files containing spectral data to be processed The entire parallel procedure,
using the spectral workflow. Each mzML file should have an associated #+BEGIN_SRC: R
/YAML/ file with RMassBank settings describing it. The settings file pos<-rmbmix::sw.do(list.files(patt=".*pos.mzML"),fn_cmpd_list="ChemistryDashboard-Batch-Search_2019-05-15_07_27_26.csv",mode="pH",proc=4)
does not need to be complete, it can only contain the settings which pos_pmb<-rmbmix::mb.prep(pos)
are different from the settings template. pos_mb<-rmbmix::mb.do(pos_pmb,proc=4)
Once the spectral workflow is complete, first run the MassBank neg<-rmbmix::sw.do(list.files(patt=".*neg.mzML"),fn_cmpd_list="ChemistryDashboard-Batch-Search_2019-05-15_07_27_26.csv",mode="mH",proc=4)
preparation procedure using ~mb.prep~ function. Then, finalise the neg_pmb<-rmbmix::mb.prep(neg)
MassBank record workflow by using the ~mb.do~ function. neg_mb<-rmbmix::mb.do(neg_pmb,proc=4)
The resulting record files and info lists are under #+END_SRC
"<data-dir>/info/XX" paths, where /data-dir/ is the mzML filename
without the mzML suffix. The ~fn_cmpd_list~ argument is the compound list, from Chemistry
Dashboard, or in a RMassBank format. The first argument to ~sw.do~ is
the list of /mzML/ files containing spectral data to be processed
using the spectral workflow. Each mzML file should have an associated
/YAML/ file with RMassBank settings describing it. The settings file
does not need to be complete, it can only contain the settings which
are different from the settings template.
Once the spectral workflow is complete, first run the MassBank
preparation procedure using ~mb.prep~ function. Then, finalise the
MassBank record workflow by using the ~mb.do~ function.
The resulting record files and info lists are under
"<data-dir>/info/XX" paths, where /data-dir/ is the mzML filename
without the mzML suffix.
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