View source: R/merge_osw_mzml.R
getPrecursorIndices | R Documentation |
This function reads the header of chromatogram files. It then fetches chromatogram indices by matching transition_group_id(osw) with chromatogramID(xics).
getPrecursorIndices(
fileInfo,
precursors,
mzPntrs,
ions = ".*",
applyFun = lapply
)
fileInfo |
(data-frame) Output of getRunNames function. |
precursors |
(data-frame) Atleast two columns transition_group_id and transition_ids are required. |
mzPntrs |
A list of mzRpwiz. |
ions |
(character) Strings to specify ions. eg. i0, i1. |
applyFun |
(function) value must be either lapply or BiocParallel::bplapply. |
(list) A list of dataframes having following columns:
transition_group_id |
(string) it is PRECURSOR.ID from osw file. |
chromatogramIndex |
(integer) index of MS1 chromatogram in mzML file. |
Shubham Gupta, shubh.gupta@mail.utoronto.ca
ORCID: 0000-0003-3500-8152
License: (c) Author (2022) + GPL-3 Date: 2022-01-15
chromatogramIdAsInteger, mapPrecursorToChromIndices
dataPath <- system.file("extdata", package = "DIAlignR")
fileInfo <- getRunNames(dataPath = dataPath)
precursors <- getPrecursors(fileInfo, oswMerged = TRUE, context = "experiment-wide")
mzPntrs <- getMZMLpointers(fileInfo)
prec2chromIndex <- getPrecursorIndices(fileInfo, precursors, mzPntrs)
for(mz in mzPntrs) DBI::dbDisconnect(mz)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.