Learn R Programming

mstherm (version 0.4.7)

write.sqlite: Export MSThermResultSet to an SQLite database.

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

write.sqlite(res, file)

Arguments

res
An MSThermResultSet object
file
Path to the output sqlite database to be created

Value

Nothing

Examples

Run this code
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

Run the code above in your browser using DataLab