readMsp: Title This function is come form R package named "metaMS"....

Description Usage Arguments Value References Examples

View source: R/readMsp.R

Description

Title This function is come form R package named "metaMS". The original name of this function is "read.msp" Beacuse of this function have bug when reading msp files with some complicated compound name. So I changed it to fit my objective. Function reads an msp file, and returns one list of compounds. Argument only.org allow to exclude all molecular formulas with non-organic elements. What exactly are organic elements can be defined with the optional argument org.set. A second optional argument indicates which fields should never be converted into numbers, even if possible.

Usage

1
2
3
4
5
6
readMsp(
  file,
  only.org = FALSE,
  org.set = c("C", "H", "D", "N", "O", "P", "S"),
  noNumbers = NULL
)

Arguments

file,

the msp file

only.org

FALSE

org.set

c("C", "H", "D", "N", "O", "P", "S")

noNumbers

NULL

Value

mspData

References

This function is come form R package named "metaMS". The original name of this function is "read.msp"

Examples

1
2
mspData <- readMsp(file =
                   system.file("extdata/database","MoNA-export-MetaboBASE.msp", package = "MetEx"))

zhengfj1994/MeTEA documentation built on June 29, 2021, 5:21 a.m.