importSRL: Import an SRL.

Description Usage Arguments Value Note Author(s) Examples

View source: R/import_srl.R

Description

This function imports a spectral reference library (SRL) in either PeakView/OneOmics or OpenSWATH formats.

Usage

1
importSRL(filepath = NULL, SRL.format = "peakview")

Arguments

filepath

Full path to SRL file. I.e. /path/to/SRL.file

SRL.format

The format of the SRL. Either "peakview" for PeakView or OneOmics SRLs or "openswath" for OpenSWATH SRLs. Defaults to "peakview".

Value

SRL

Note

PeakView and OneOmics SRLs must be .txt format. OpenSWATH must be either .tsv or .csv format.

Author(s)

Madeleine J Otway motway@cmri.org.au

Examples

1
2
3
4
5
6
7
8
srl_pv <- system.file("extdata",
                      "rat_srl_example.txt",
                      package = "dialects")
importSRL(srl_pv)
importSRL(srl_pv, SRL.format = "peakview")

#srl-os <- system.file("extdata", "SRL-OS", package = "dialects")
#importSRL(srl-os, SRL.format = "openswath")

madeleineotway/dialects documentation built on May 29, 2019, 3:43 a.m.