loadFromDB-methods {maDB}R Documentation

Load a dataset from the database

Description

loadFromDB in package maDBi This method allows to load data sets, stored previously into the database using the publishToDB method, back into the R workspace. A list of available data sets in a database created by the maDB package is returned by the dbGetExperimentInfo function (by submitting the connection to the database as parameter, a connection to a PostgreSQL database can be established by the dbConnect function from the RdbiPgSQL). \ For further informations and examples refer to the package vignette (which can be opened using the openMadbVignette).

Usage

loadFromDB(object=NULL,connection=NULL,name=NULL,pk=NULL,v=TRUE,...)

Arguments

object An empty MadbSet or Sample object, generated either by link{newMadbSet} or new("MadbSet") for MadbSet objects, or by new("Sample") for Sample objects.
connection The connection object to the database.
name Only used if a MadbSet should be loaded from the database. Name should be equal to the experiment name that was stored into the database (use dbGetExperimentInfo to get a list of all available experiments in the database).
pk For MadbSet: if a subset of arrays should be loaded from one experiment. As pk the primary keys of the corresponding signal channels should be submitted (to get a list of all signal channels, arrays, samples of a specific experiment in the maDB database use the dbGetExperimentInfo function by submitting also the name of the experiment along with the connection to the database as a parameter).
v If TRUE additional informations will be printed to the console.
... Additional parameters. Not used yet.

Methods

object = "MadbSet"
Loads a MadbSet object from the database.
object = "Sample"
Loads a Sample object from the database, (submit new("Sample"))

Warning

The usage of this method for EexprSet objects is deprecated! Use the MadbSet objects instead!


[Package maDB version 1.10.0 Index]