getTopresults: Get Top Results

Description Usage Arguments Details Value Examples

Description

The function returns the given top number of predicted results along with true interactions.

Usage

1
getTopresults(A, P, top = 10, druglist = NULL)

Arguments

A

Drug target association matrix.

P

Drug target predicted matrix.

top

top number of predicted targets.

druglist

It accepts a vector of drugnames for which results will return

Details

Get top predicted results.

Value

it returns a list of aucc,auc, bedorc,enrichment factor and auc (top 10

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data(Enzyme)
A = enzyme_ADJ
S1 = enzyme_Gsim
S2= enzyme_Csim
## Running the netcombo algorithm.
P <- netCombo(g1,s1=S1,s2=S2,nbi.alpha=0.5,nbi.lamda=0.5,par=TRUE)
result = getTopresults(A,P,top=10,druglist=NULL)
## Getting result from a drug list.
drugs = c("D00014","D00018", "D00029", "D00036","D00045","D00049")
result = getTopresults(A,P,top=10,druglist=drugs)

abhik1368/netpredictor documentation built on May 10, 2019, 4:09 a.m.