write.sqlite: Export MSThermResultSet to an SQLite database.

Description Usage Arguments Value Examples

View source: R/export.R

Description

Exports and MSThermResultSet object to a new SQLite database file. Each model (specific to a given replicate and protein) is exported as an individual record. The schema used for the 'data' table can be seen in the code below.

Usage

1

Arguments

res

An MSThermResultSet object

file

Path to the output sqlite database to be created

Value

Nothing

Examples

1
2
3
4
5
6
7
8
9
control <- system.file("extdata", "demo_project/control.tsv", package="mstherm")
annots  <- system.file("extdata", "demo_project/annots.tsv",  package="mstherm")
expt    <- MSThermExperiment(control, annotations=annots)
expt    <- normalize_to_std(expt, "cRAP_ALBU_BOVIN", plot=FALSE)
res     <- model_experiment(expt, bootstrap=FALSE, np=2)

fn <- tempfile(fileext = ".sqlite")
write.sqlite(res, fn)
unlink(fn) # for example only

jvolkening/r-mstherm documentation built on May 20, 2019, 5:21 a.m.