PriorCD User Guide"

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

1 Introduce

This vignette illustrates how to easily use the PriorCD package. With the use of functions in this packages, users could obtain prioritizing list of candidate drugs and detailed information about it.

2 Example: Prioritize candidates for drug repurposing and obtain detailed information about them

We can use function getData to return example data and environment variables.

library(PriorCD)
e <- getData("drug.edgelist") #Get the two-column edge list of drug functional similarity network
brc <- getData("breast_cancer") #Get the FDA-approved drugs for breast cancer
#priorlist <- prior(e, brc, times = 5) #Prioritize drug. Times is 5 here, normally it should be set to 1000.

The prioritizing list looks like this:

priorlist<-getData("priorlist")
head(priorlist)

The list shown above is the detailed information of prioritizing list, which include NSC ID, drug name, prioritizing score, p-value, FDR, status and mechanisms of action (MOA).

Besides, you can also get the AUC value and ROC curve of the results.

#getROC(e, brc, file=file.path("../inst/tempdir", "ROC.pdf"))
knitr::include_graphics("../inst/roc.jpeg")

Moreover, you can browse the network structure of the candidate drugs and the therapeutic drugs.

candidates <- getData("brc_candidates")
getDDN(e, brc, candidates)

And then you will get a HTML web page, click it and the page just looks like:

knitr::include_graphics("../inst/html_page.jpg")

3 Example: Convert drug correlation matrix into binary drug similarity matrix

library(PriorCD)
r <- getData("drug.r") #Get example drug correlation matrix
fdr <- getData("drug.fdr") #Get example fdr matrix of drug correlation
m <- drsim(r, fdr, top = 0.5) #Convert into binary drug similarity matrix. top is determined by the number of drugs you want to leave.

The converted matrix looks like this:

m


Try the PriorCD package in your browser

Any scripts or data that you put into this service are public.

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