Skip to contents

Summarise spectrally processed m/z features.

Usage

featureSummary(x)

# S4 method for Binalysis
featureSummary(x)

# S4 method for MetaboProfile
featureSummary(x)

Arguments

x

an object of S4 class Binalysis or MetaboProfile

Value

A tibble containing feature summaries.

Examples

## 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))
#> binneR v2.6.3 Fri Jul 21 17:29:14 2023
#> ________________________________________________________________________________
#> Scans: 5:14 
#> ________________________________________________________________________________
#> Reading raw data
#> Gathering bins
#> Removing single scan events
#> Averaging intensities across scans
#> Calculating bin metrics
#> Calculating accurate m/z
#> Building intensity matrix
#> Gathering file headers
#> 
#> Completed! [1.5S]

featureSummary(analysis)
#> # A tibble: 2 × 3
#>   Mode     `Number of bins` `Missing Data (%)`
#>   <chr>               <int>              <dbl>
#> 1 Negative             1188               6.48
#> 2 Positive             1550               9.68