detectMissInjections | R Documentation |
Detect miss injected samples or samples with a total ion count below a percentage threshold of the median.
detectMissInjections(x, idx = "injOrder", threshold = 25)
## S4 method for signature 'Binalysis'
detectMissInjections(x, idx = "injOrder", threshold = 25)
## S4 method for signature 'MetaboProfile'
detectMissInjections(x, idx = "injOrder", threshold = 25)
x |
object of S4 class |
idx |
the sample information column to use for sample indexes |
threshold |
the percentage of the median TIC below which samples will be considered miss injections. |
A list containing the name of the sample information column used to index the miss injections and a vector of miss injection indexes.
## Retrieve file paths and sample information for example data
files <- metaboData::filePaths('FIE-HRMS','BdistachyonEcotypes')[1:2]
info <- metaboData::runinfo('FIE-HRMS','BdistachyonEcotypes')[1:2,]
## Perform spectral binning
analysis <- binneR::binneRlyse(files,
info,
parameters = binneR::detectParameters(files))
## Detect miss injections
miss_injections <- detectMissInjections(analysis)
## Display detected miss injections
miss_injections
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.