PriorCD User Guide

Vignette Author

2019-02-10

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:

#>   NSC.ID          DRUG.NAME   PRI.SCORE P.VALUE FDR         STATUS
#> 1 715055          Gefitinib 0.009731980       0   0   FDA approved
#> 2 750691           Afatinib 0.003144476       0   0 Clinical trial
#> 3 761910          Ibrutinib 0.003143151       0   0 Clinical trial
#> 4 693255 Tyrphostin AG 1478 0.003131408       0   0              -
#> 5 717826                  - 0.002638077       0   0              -
#> 6 677423     amythiamicin a 0.001693938       0   0              -
#>          MOA
#> 1 YK|PK:EGFR
#> 2 YK|PK:EGFR
#> 3         YK
#> 4         YK
#> 5          -
#> 6          -

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:

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:

#>     17 355 596 739 740 749 752 755 757 762
#> 17   0   0   1   0   0   0   1   1   1   1
#> 355  0   0   1   0   0   0   1   1   1   1
#> 596  1   1   0   0   0   0   1   1   0   1
#> 739  0   0   0   0   1   0   1   1   0   1
#> 740  0   0   0   1   0   0   1   1   1   1
#> 749  0   0   0   0   0   0   0   0   1   0
#> 752  1   1   1   1   1   0   0   1   1   1
#> 755  1   1   1   1   1   0   1   0   0   1
#> 757  1   1   0   0   1   1   1   0   0   0
#> 762  1   1   1   1   1   0   1   1   0   0