construct.msp(spectra, extra.info)
read.msp(file, only.org = FALSE, org.set = c("C", "H", "D", "N", "O", "P", "S"), noNumbers = NULL)
filter.msp(msp, rtrange = NULL, mzrange = NULL, minintens = 0, minPeaks = 0)
write.msp(msp, file, newFile = TRUE)
xset2msp(xsetList, settings)
to.msp(object, file = NULL, settings = NULL, ndigit = 0, minfeat, minintens, intensity = c("maxo", "into"), secs2mins = TRUE)
to.msp
, the input object is
returned as an msp object. If non-null, the information will be
written to the file with this name.Name
, CAS
,
stdFile
, date
, validated
,
ChemspiderID
, SMILES
, InChI
,
Class
, comment
, csLinks
.to.msp
will
convert this object into a list that can be written as an msp file.Other issues may arise with the keywords. While read.msp will be able to read msp files with non-standard keywords, the metaMS package expects at least the following list to be present (case-sensitive): Name, validated, CAS, rt, monoMW, and Class. The final keyword is always Num Peaks, and should be followed by the list of mz-I combinations.
data("threeStdsDB")
## Not run:
# write.msp(DB, file = "huhn.msp")
# DB2 <- read.msp("huhn.msp")
# ## End(Not run)
Run the code above in your browser using DataLab