SM identification based on fragmentation patterns for LC-MS/MS AIF data acquired in positive mode.
idSMpos(MS1, MSMS1, MSMS2 = data.frame(), ppm_precursor = 5,
ppm_products = 10, rttol = 3, rt = c(min(MS1$RT), max(MS1$RT)),
adducts = c("M+Na", "M+H"), clfrags = c(104.1075, 184.0739, 183.06604),
clrequired = c(F, F, F), ftype = c("F", "F", "NL"),
chainfrags_sn1 = c("sph_M+H-2H2O"), chainfrags_sn2 = c(),
intrules = c(), rates = c(), intrequired = c(), dbs = list(smdb =
LipidMS::smdb, sphdb = LipidMS::sphdb, fadb = LipidMS::fadb, adductsTable =
LipidMS::adductsTable))
data frame cointaining all peaks from the full MS function. It must have three columns: m.z, RT (in seconds) and int (intensity).
data frame cointaining all peaks from the low energy function. It must have three columns: m.z, RT and int.
data frame cointaining all peaks from the high energy function if it is the case. It must have three columns: m.z, RT and int. Optional.
mass tolerance for precursor ions. By default, 5 ppm.
mass tolerance for product ions. By default, 10 ppm.
total rt window for coelution between precursor and product ions. By default, 3 seconds.
rt range where the function will look for candidates. By default, it will search within all RT range in MS1.
expected adducts for SM in ESI+. Adducts allowed can be modified in adductsTable (dbs argument).
vector containing the expected fragments for a given lipid class. See checkClass for details.
logical vector indicating if each class fragment is required or not. If any of them is required, at least one of them must be present within the coeluting fragments. See checkClass for details.
character vector indicating the type of fragments in clfrags. It can be: "F" (fragment), "NL" (neutral loss) or "BB" (building block). See checkClass for details.
character vector containing the fragmentation rules for the chain fragments in sn1 position. See chainFrags for details.
character vector containing the fragmentation rules for the chain fragments in sn2 position. See chainFrags for details. If empty, it will be estimated based on the difference between precursors and sn1 chains.
character vector specifying the fragments to compare. See checkIntensityRules.
character vector with the expected rates between fragments given as a string (i.e. "3/1"). See checkIntensityRules.
logical vector indicating if any of the rules is required. If not, at least one must be verified to confirm the structure.
list of data bases required for annotation. By default, dbs contains the required data frames based on the default fragmentation rules. If these rules are modified, dbs may need to be changed. If data bases have been customized using createLipidDB, they also have to be modified here.
List with SM annotations (results) and some additional information (class fragments and chain fragments).
idSMpos
function involves 5 steps. 1) FullMS-based
identification of candidate SM as M+H and M+Na. 2) Search of SM class
fragments: 104.1075, 184.0739 and neutral loss of 183.06604 coeluting with
the precursor ion. 3) Search of specific fragments that inform about the
composition of the sphingoid base (Sph as M+H-2H2O resulting from the loss of
the FA chain) and the FA chain (by default it is calculated using the
difference between precursor and sph chain fragments). 4) Look for possible
chains structure based on the combination of chain fragments. 5) Check
intensity rules to confirm chains position. In this case, there are no
intensity rules by default as FA chain is unlikely to be detected.
Results data frame shows: ID, class of lipid, CDB (total number of carbons and double bounds), FA composition (specific chains composition if it has been confirmed), mz, RT (in seconds), I (intensity, which comes directly from de input), Adducts, ppm (m.z error), confidenceLevel (Subclass, FA level, where chains are known but not their positions, or FA position level).
# NOT RUN {
idSMpos(MS1 = LipidMS::mix_pos_fullMS, MSMS1 = LipidMS::mix_pos_Ce20,
MSMS2 = LipidMS::mix_pos_Ce40)
idSMpos(MS1 = LipidMS::serum_pos_fullMS, MSMS1 = LipidMS::serum_pos_Ce20,
MSMS2 = LipidMS::serum_pos_Ce40)
# }
Run the code above in your browser using DataLab