View source: R/align_dia_runs.R
alignTargetedRuns | R Documentation |
This function expects osw and xics directories at dataPath. It first reads osw files and fetches chromatogram indices for each analyte. It then align XICs of its reference XICs. Best peak, which has lowest m-score, about the aligned retention time is picked for quantification.
alignTargetedRuns(
dataPath,
outFile = "DIAlignR",
params = paramsDIAlignR(),
oswMerged = TRUE,
scoreFile = NULL,
runs = NULL,
peps = NULL,
refRun = NULL,
applyFun = lapply,
saveAlignedPeaks = FALSE
)
dataPath |
(string) path to xics and osw directory. |
outFile |
(string) name of the output file. |
params |
(list) parameters are entered as list. Output of the |
oswMerged |
(logical) TRUE if merged file from pyprophet is used. |
scoreFile |
(string) path to the peptide score file, needed when oswMerged is FALSE. |
runs |
(string) names of xics file without extension. |
peps |
(integer) ids of peptides to be aligned. If NULL, align all peptides. |
refRun |
(string) reference for alignment. If no run is provided, m-score is used to select reference run. |
applyFun |
(function) value must be either lapply or BiocParallel::bplapply. |
saveAlignedPeaks |
(logical) Save a mapping table to track aligned feature ids against reference feature id |
An output table with following columns: precursor, run, intensity, RT, leftWidth, rightWidth, peak_group_rank, m_score, alignment_rank, peptide_id, sequence, charge, group_label.
Shubham Gupta, shubh.gupta@mail.utoronto.ca
ORCID: 0000-0003-3500-8152
License: (c) Author (2019) + GPL-3 Date: 2019-12-14
Gupta S, Ahadi S, Zhou W, Röst H. "DIAlignR Provides Precise Retention Time Alignment Across Distant Runs in DIA and Targeted Proteomics." Mol Cell Proteomics. 2019 Apr;18(4):806-817. doi: https://doi.org/10.1074/mcp.TIR118.001132 Epub 2019 Jan 31.
getRunNames, getFeatures, setAlignmentRank, getMultipeptide
params <- paramsDIAlignR()
params[["context"]] <- "experiment-wide"
dataPath <- system.file("extdata", package = "DIAlignR")
BiocParallel::register(BiocParallel::MulticoreParam(workers = 4, progressbar = TRUE))
alignTargetedRuns(dataPath, outFile = "testDIAlignR", params = params, applyFun = BiocParallel::bplapply)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.