get_sample_overlays: Retrieve sample-specific metadata

Description Usage Arguments Value Author(s) See Also Examples

Description

This function retrieves sample-level gene annotation (e.g. differential expression, methylation status) and returns a revised annotatedIGraph object with the sample-specific data merged in with the existing annotation.

Usage

1
get.sample.overlays(db.con, param.obj, graph.obj, sample.id.list)

Arguments

db.con

An object inheriting from DBIConnection representing the datasource

param.obj

A priorDbParams object

graph.obj

An annotatedIGraph object

sample.id.list

A list with three elements: 'recon' is the human readable name, 'ind' is the database index value and 'num.pats' is the number of samples in the database.

Value

An annotatedIGraphcontaining the sample-specific data merged in with the exising annotation supplied in graph.obj.

Author(s)

Daniel Bottomly

See Also

annotatedIGraph, priorDbParams

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if (require(RSQLite) && require(HitWalkerData))
{
	set.seed(123)
	data(params)
	db.con <- dbConnect("SQLite", hitwalker.db.path())
	graph.obj <- loadGraph(graph.file.path(), examp.prior.param)
	sample.id.list <- reconcile.sample.name("08-00102", db.con, examp.prior.param)
	new.graph.obj <- get.sample.overlays(db.con, examp.prior.param, graph.obj, sample.id.list)
	##Note that the graph.obj will look the same in this example.  See the Hitwalker_Add_Metadata vignette for an actual example
}

dbottomly/HitWalker documentation built on May 15, 2019, 1:22 a.m.