readLibFile: Load a spectrum library into a data frame

Description Usage Arguments Value Examples

View source: R/readLibFile.R

Description

Load a spectrum library into a data frame

Usage

1
2
readLibFile(file, format = c("peakview", "openswath"), type = c("spectrum",
  "hydro"), clean = TRUE, ...)

Arguments

file

A file of a spectrum library, in .txt or .csv format, can be .gz files.

format

A character string denoting the file format. One of "peakview" (default) and "openswath"

type

A character string denoting the file type. One of "spectrum" (default) and "hydro"

clean

A logic value, representing if the library will be cleaned.

...

Additional parameters to pass in

Value

a data frame of the library with cleaning process

Examples

1
2
file <- paste(system.file("files",package="SwathXtend"),"Lib1.txt",sep="/")
dat <- readLibFile(file)

Bioconductor-mirror/SwathXtend documentation built on July 19, 2017, 8:41 a.m.