detectMissInjections: Detect miss injections

Description Usage Arguments Details Value Examples

Description

Detect miss injected samples.

Usage

1
2
3
4
5
6
7
detectMissInjections(x, idx = "fileOrder")

## S4 method for signature 'Binalysis'
detectMissInjections(x, idx = "fileOrder")

## S4 method for signature 'MetaboProfile'
detectMissInjections(x, idx = "fileOrder")

Arguments

x

object of class Binalysis or MetaboProfile

idx

sample information column to use for sample indexes

Details

Samples with a total ion count (TIC) below 1.5 times the inter-quartile range are detected as miss injections.

Value

A list containing the name of sample information column used to index the miss injections and a vector of miss injection indexes.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## 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$missInjections

jasenfinch/metaboMisc documentation built on Feb. 10, 2022, 4:22 p.m.