checkIntensityRules: Check intensity rules

View source: R/subfunctionsIdentification.R

checkIntensityRulesR Documentation

Check intensity rules


Check intensity rules to confirm chains position.


checkIntensityRules(intrules, rates, intrequired, nchains, combinations)



character vector specifying the fragments to compare. See details.


character vector with the expected rates between fragments given as a string (i.e. "3/1"). See details.


logical vector indicating if any of the rules is required. If not, at least one must be verified to confirm the structure.


number of chains of the targeted lipid class.


output of combineChains.


This function will be employed when the targeted lipid class has more than one chain.

Taking PG subclass as an example, intensities of lysoPG fragments (informative for sn1) can be employed to confirm the chains structure (intrules = c("lysopg_sn1/lysopg_sn1")). In this case, the intensity of the lysoPG resulting from the loss of the FA chain in sn2 is at least 3 times greater (rates = c("3/1")) than the lysoPG resulting from the loss of the FA chain in sn1.

For the intrules argument, "/" will be use to separate the fragments related to each chain (sn1/sn2/etc), and "_" will be use to indicate the list in which they'll be searched. This will depend on the chain fragments rules defined previously. Following the example, as we use lysoPG to define the sn1 position, both fragments will be searched in this list (sn1).

For classes with more than one FA chain, if some intensity rule should be employed to identify their position but they are no defined yet, use "Unknown". If it is not necessary because the fragmentation rules are informative enough to define the position (i.e. sphingolipid species), just leave an empty vector.


List of logical vectors with the confirmation for each combination.


M Isabel Alcoriza-Balaguer <>

LipidMS documentation built on March 18, 2022, 7:14 p.m.