LipidMS (version 0.1.0)

combineChains: Combine chain fragments that could belong to the same precursor.

Description

It calculates combinations of chain fragments that sum up the same number of carbons and double bounds as the precursor.

Usage

combineChains(candidates, nchains, sn1, sn2, sn3, sn4)

Arguments

candidates

candidates data frame. Output of findCandidates.

nchains

number of chains of the targeted lipid class.

sn1

list of chain fragments identified for sn1 position. Output of chainFrags.

sn2

list of chain fragments identified for sn2 position. Output of chainFrags. If required.

sn3

list of chain fragments identified for sn3 position. Output of chainFrags. If required.

sn4

list of chain fragments identified for sn4 position. Output of chainFrags. If required.

Value

List of data frames with candidate chains structures.

Examples

Run this code
# NOT RUN {
dbs <- list(pgdb = LipidMS::pgdb, lysopgdb = LipidMS::lysopgdb,
fadb = LipidMS::fadb, adductsTable = LipidMS::adductsTable)

candidates <- findCandidates(MS1 = LipidMS::mix_neg_fullMS, dbs[["pgdb"]],
ppm = 10, rt = c(min(MS1$RT), max(MS1$RT)), adducts = c("M-H"),
rttol = 3, dbs)

MSMS <- rbind(LipidMS::mix_neg_Ce20, LipidMS::mix_neg_Ce40)
coelfrags <- coelutingFrags(candidates$RT, MSMS, rttol)

classConf <- checkClass(candidates, clfrags = c(227.0326, 209.022, 74.0359),
clrequired = c(F, F, F, F), ftype = c("F", "F", "NL"), ppm_products = 10,
dbs)

sn1 <- chainFrags(coelfrags, chainfrags = c("lysopg_M-H"), ppm = 10,
dbs = dbs)
sn2 <- chainFrags(coelfrags, chainfrags = c("fa_M-H"), ppm = 10, dbs)

chainsComb <- combineChains(candidates, nchains=2, sn1, sn2)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab