prior: prior

Description Usage Arguments Value Examples

View source: R/prior.R

Description

This function is used to generate drug prioritizing result.

Usage

1
prior(drug.el, p0, gamma = 0.7, times = 100)

Arguments

drug.el

A edge list of drugs, which is a two-column matrix, each row defines one edge. Numbers in the edge list represent NSC-ID of drugs.

p0

A vector of approved drugs' NSC-ID of interested cancer.

gamma

gamma = 0.7(default). A probability of losing when doing Random Walk. On the contray, there is a probability of 1-gamma left to itself. The range of this value is (0, 1).

times

times = 100(default). Loop times when getting p-values.

Value

Detailed information about drug prioritizing, which contain NSC-id, name, prioritizing score, p-value, FDR, status and MOA(mechanism of action) of drugs.

Examples

1
2
3
e <- getData("drug.edgelist")
brc <- getData("breast_cancer")
result <- prior(e, brc,time=20)

PriorCD documentation built on May 2, 2019, 7:28 a.m.