getScanInfo: getScanInfo

View source: R/getset_MSData.R

getScanInfoR Documentation

getScanInfo

Description

get metadata for a scan or multiple scans

Usage

getScanInfo(file, number, data, type = c("acquisition", "ms1", "ms2"))

Arguments

file

character vector of MS data file basenames. Files must be loaded in data.

number

scan for which to get metadata. Can be an acquisition number or an index of an ms1 or ms2 scan

data

an MSnExp or OnDiskMSnExp object. NYI: If NULL, will assume that values$MSData$MSnExp is defined in parent environment

type

specify what the scan number represents, either "acquisition", "ms1" or "ms2".

Value

a subset of the data@featureData@data data.frame matching the search criteria, with an additional filename column


mjhelf/METABOseek documentation built on April 27, 2022, 5:13 p.m.