# msPurity R package for processing MS/MS data - Copyright (C)
#
# This file is part of msPurity.
#
# msPurity is a free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# msPurity is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with msPurity. If not, see <https://www.gnu.org/licenses/>.
setGeneric("getP", function(x) standardGeneric("getP"))
setGeneric("updatePeaks", function(x, newlist) standardGeneric("updatePeaks"))
setGeneric(name="averageSpectra",
def=function(Object,rtscn = "all", scanRange=NA, timeRange = NA,
clustType="hc", ppm=1.5, snthr = 3, av="median",
missingV="zero", minfrac=0.6667,
normTIC=FALSE, snMeth="median", mzRback="pwiz") {
standardGeneric("averageSpectra")
}
)
setGeneric(name="groupPeaks",
def=function(Object,ppm=3, sampleOnly=FALSE, clustType='hc') {
standardGeneric("groupPeaks")
}
)
setGeneric(name="filterp",
def=function(Object, thr = 5000, rsd=20, sampleOnly = TRUE) {
standardGeneric("filterp")
}
)
setGeneric(name="subtract",
def=function(Object, byClass = TRUE, mapping=c("sample", "blank"), ppm =5, s2bthres=10){
standardGeneric("subtract")
}
)
setGeneric(name="dimsPredictPurity",
def=function(Object, ppm = 1.5, minOffset=0.5, maxOffset=0.5,
iwNorm=FALSE, iwNormFun=NULL, ilim=0.05, sampleOnly=TRUE,
isotopes=TRUE, im=NULL) {
standardGeneric("dimsPredictPurity")
}
)
setGeneric(name="writeOut",
def=function(Object, outDir, original) {
standardGeneric("writeOut")
}
)
setGeneric(name="frag4feature",
def=function(pa, xcmsObj, ppm=5, plim=NA, intense=TRUE, convert2RawRT=TRUE,
useGroup=NA, createDb=FALSE,
outDir='.', dbName=NA, grpPeaklist=NA, use_group = NA, out_dir = NA,
create_db = NA, grp_peaklist = NA, db_name = NA, xset = NA){
standardGeneric("frag4feature")
}
)
setGeneric(name="averageIntraFragSpectra",
def=function(pa, minfrac=0.5, minnum=1, ppm=5, snr=0.0, ra=0.0,
av='median', sumi=TRUE, rmp=FALSE, cores=1) {
standardGeneric("averageIntraFragSpectra")
}
)
setGeneric(name="averageInterFragSpectra",
def=function(pa, minfrac=0.5, minnum=1, ppm=5, snr=0.0, ra=0.0,
av='median', sumi=TRUE, rmp=FALSE, cores=1) {
standardGeneric("averageInterFragSpectra")
}
)
setGeneric(name="averageAllFragSpectra",
def=function(pa, minfrac=0.5, minnum=1, ppm=5, snr=0.0, ra=0.0,
av='median', sumi=TRUE, rmp=FALSE, cores=1) {
standardGeneric("averageAllFragSpectra")
}
)
setGeneric(name="filterFragSpectra",
def=function(pa, ilim=0, plim=0.8, ra=0, snr=3, cores=1, rmp=FALSE, snmeth='median', allfrag=FALSE) {
standardGeneric("filterFragSpectra")
}
)
setGeneric(name="createMSP",
def=function(pa, msp_file_pth=NULL, metadata=NULL, metadata_cols=NULL,
xcms_groupids=NULL, method="all", adduct_split=TRUE, filter=TRUE,
msp_schema='massbank', intensity_ra='intensity_ra', include_adducts='') {
standardGeneric("createMSP")
}
)
setGeneric(name="validate",
def=function(pa, ppLCMS){
standardGeneric("validate")
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.