read_peak_list function

Read content of a text file and convert it to a list

Read content of a text file and convert it to a list

Reads the content of text file that is formatted as described in align_chromatograms and converts it to a list.

read_peak_list(data, sep = "\t", rt_col_name, check = T)

Arguments

  • data: A text file containing a peak list. See align_chromatograms for details.
  • sep: The field separator character. The default is tab separated (sep = '\t'). See the "sep" argument in read.table for details.
  • rt_col_name: A character giving the name of the column containing the retention times. The decimal separator needs to be a point.
  • check: logical

Returns

A list of data frames containing peak data for every sample of data.

Examples

path <- system.file("extdata", "simulated_peak_data.txt", package = "GCalignR") x <- read_peak_list(data = path, rt_col_name = "rt")

Author(s)

Meinolf Ottensmann (meinolf.ottensmann@web.de) & Martin Stoffel (martin.adam.stoffel@gmail.com)

  • Maintainer: Meinolf Ottensmann
  • License: GPL (>= 2) | file LICENSE
  • Last published: 2024-07-03