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/Mosaic documentation built on April 28, 2022, 11:32 a.m.