canonicalFormat: Standardise a sprectrum library data frame

Description Usage Arguments Value Examples

View source: R/canonicalFormat.R

Description

Standardise a sprectrum library data frame

Usage

1
canonicalFormat(dat, format = c("peakview", "openswath"))

Arguments

dat

a data frame of a spectrum library

format

a character string, representing the format of the input spectrum library. One of "peakview" (default) and "openswath"

Value

a data frame of the library in canonical format

Examples

1
2
3
file <- paste(system.file("files",package="SwathXtend"),"Lib1.txt",sep="/")
dat <- read.delim2(file,sep="\t",stringsAsFactor = FALSE, header=TRUE)
dat <- try(canonicalFormat(dat, format = "peakview"))

Example output

Loading required package: e1071
Loading required package: openxlsx
Loading required package: VennDiagram
Loading required package: grid
Loading required package: futile.logger
Loading required package: lattice

SwathXtend documentation built on Nov. 8, 2020, 6:42 p.m.