get_hit_prots: Retrieve functional assay hits from datasource

Description Usage Arguments Value Note Author(s) See Also Examples

Description

This function retrieves the hit data from the specified connection and summarizes the scores as specified in the function retrieved through the getScoreSummaryFunc method of priorDbParams.

Usage

1
get.hit.prots(sample.id.list, db.con, param.obj)

Arguments

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.

db.con

An object inherited from DBIConnection which represents the datasource

param.obj

A priorDbParams object

Value

A list with three elements:

protein.scores

A vector containing scores for each of the specified summary IDs values with corresponding names.

query.dta

The data.frame retrieved from the hit query with the additional combined hit score column.

summary.id

The summary ID column to use for hit data downstream.

Note

The score summary function should take a data.frame as the argument and return a modified data.frame containing an additional column named as in the getCombScoreName method of priorDbParams.

Author(s)

Daniel Bottomly

See Also

priorDbParams

Examples

1
2
3
4
5
6
7
8
9
set.seed(123)
if (require(RSQLite) && require(HitWalkerData))
{
	data(params)
	db.con <- dbConnect("SQLite", hitwalker.db.path())
	sample.id.list <- reconcile.sample.name("08-00102", db.con, examp.prior.param)
	hit.list <- get.hit.prots(sample.id.list, db.con, examp.prior.param)
	dbDisconnect(db.con)
}

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