fillProfiles: Fill enviMass profiles from picked files

Description Usage Arguments Details Value Author(s)

View source: R/profiles.R

Description

Reads a set of files containing enviPick results, and fills an enviMass profile container with the data. Does not compute the actual profiles; this can be done with computeProfiles.

Usage

1
2
fillProfiles(dataDir, files, polarity = "+", pattern = NA,
  rtrange = c(-Inf, Inf))

Arguments

dataDir

Folder containing the enviPick files in .MSlist format. May be either MSlist.pos and MSlist.neg files, or files with an arbitrary pattern. Typically, filenames should correspond to the names built by batchPick or comprehensiveBatchPick, respectively: * If only MS1 data was peak-picked (batchPick), raw file FILENAME.mzXML should give filenames FILENAME.mzXML.MSlist.pos.RData (or neg, respectively) if only MS1 were picked * If DIA data was picked (comprehensiveBatchPick) a raw file FILENAME.mzXML should give filenames: * FILENAME.mzXML.MSlist.1-pos-- for the MS1 positive * e.g. FILENAME.mzXML.MSlist.2-neg-200-100 for MS2-DIA, negative, center mass 200, isolation width 100 etc. However other patterns work too, since pattern specifies which file pattern is searched.

files

The filenames of the raw files, with or without full path. NOT the filenames or path of the enviPick results.

polarity

If pattern is not used, either + or -; this chooses which files to look for.

pattern

The file pattern to search for (i.e. what is appended to the raw file name). If a raw file FILENAME.mzXML was picked into FILENAME.mzXML.MSlist.ABCDE.RData, the pattern must be set to ABCDE, see above. If this is longer than one, a separate container will be created for each pattern and filled accordingly.

rtrange

Optional RT range of peaks to extract. Use this to cut off e.g. the column dead volume.

Details

Code is copied and adapted from enviMass.

Value

A profile container in enviMass format (for no pattern or a single pattern, or a list of containers named after the corresponding pattern/scan.

Author(s)

stravsmi, mostly copied from Martin Loos


meowcat/RMassScreening documentation built on Jan. 9, 2020, 10:49 p.m.