exportSRL: Export an SRL.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/export_srl.R

Description

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

Usage

1
exportSRL(SRL.df = NULL, SRL.filepath = NULL)

Arguments

SRL.df

Data frame of an SRL

SRL.filepath

The directory and filename of the SRL to be exported

Value

SRL in directory provided

Author(s)

Madeleine J Otway motway@cmri.org.au

See Also

For functions require to convert SRL before exporting SRL, see: importFasta, digestFasta, importSRL, convertSpecies

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
data(rat_srl_example)
exportSRL(rat_srl_example, "new-srl.txt")

## Entire Workflow
fasta <- system.file("extdata",
                     "human_proteome_example.fasta",
                     package = "dialects")
human_proteome_example <- import.fasta(fasta)
human_digest_example <- digest.fasta(human_proteome_example)
srl_pv <- system.file("extdata",
                      "rat_srl_example.txt",
                      package = "dialects")
rat_srl_example <- import.srl(srl_pv, SRL.format = "peakview")
human_from_rat <- convert.species(human_digest_example, rat_srl_example)
exportSRL(human_from_rat, "human_from_rat_srl.txt")

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