outputLib: output a spectrum library into a PeakView format file

Description Usage Arguments Value Examples

View source: R/outputLib.R

Description

output a spectrum library into a PeakView format file

Usage

1
2
outputLib(dat, filename = "NewLib.txt", format = c("peakview", "openswath"),
  nodup = TRUE)

Arguments

dat

A data frame of a spectrum library

filename

A character string for the name of the output.

format

A character string representing the output format. One of "peakview" (default) and "openswath".

nodup

A logic value, indicating if remove duplicated sprectrum (default)

Value

a file with the specified file name (lib.txt as default) will be saved under the current working directory

Examples

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

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