HEAD
R/io.R
writeMSP.Rd
Write MSP file for NIST search
writeMSP(list, name = "unknown", sep = FALSE)
Write MSP files for NIST search
writeMSP(
ins,
mz,
name = "unknown",
rt = NULL,
rti = NULL,
formula = NULL,
ionmode = "positive",
premz = NULL,
ce = NULL,
comment = NULL
)
a list with spectra information
name of the compounds
numeric or logical the numbers of spectra in each file and FALSE to include all of the spectra in one msp file
none a MSP file will be created.
=======a intensity vector
a vector for mass to charge ratio
name of the compounds
retention time
retention time index
chemical formula
ion mode, default positive
precursor ion
collision energy
comments
none a MSP file will be created at the sub folder working dictionary with name 'MSP'
>>>>>>> 3056ccf (update)if (FALSE) {
ins <- c(10000,20000,10000,30000,5000)
mz <- c(101,143,189,221,234)
<<<<<<< HEAD
writeMSP(list(list(spectra = cbind.data.frame(mz,ins))), name = 'test')
=======
writeMSP(ins,mz,'test')
>>>>>>> 3056ccf (update)
}