Package 'DrugSim2DR'

Title: Predict Drug Functional Similarity to Drug Repurposing
Description: A systematic biology tool was developed to repurpose drugs via a drug-drug functional similarity network. 'DrugSim2DR' first predict drug-drug functional similarity in the context of specific disease, and then using the similarity constructed a weighted drug similarity network. Finally, it used a network propagation algorithm on the network to identify drugs with significant target abnormalities as candidate drugs.
Authors: Junwei Han [aut, cre, cph], Ji Li [aut], Jiashuo Wu [aut]
Maintainer: Junwei Han <[email protected]>
License: GPL (>= 2)
Version: 0.1.1
Built: 2024-10-27 03:35:05 UTC
Source: https://github.com/hanjunwei-lab/drugsim2dr

Help Index


CalDEscore

Description

Function "CalDEscore" uses gene expression to calculate differential expression level.

Usage

CalDEscore(exp, Label)

Arguments

exp

A gene expression profile of interest (rows are genes, columns are samples).

Label

A character vector consist of "0" and "1" which represent sample class in the gene expression profile. "0" means normal sample and "1" means disease sample.

Value

A matrix with one column of zscore.

Examples

# Obtain the example data
GEP<-Gettest("GEP")
label<-Gettest("label")
# Run the function
DEscore<-CalDEscore(GEP,label)

datasummary: Custom Data Summaries

Description

Easily generate custom data frame summaries

Author(s)

Maintainer: Junwei Han [email protected] [copyright holder]

Authors:

  • Ji Li

  • Jiashuo Wu


DrugReposition

Description

The function "DrugReposition" is used in drug repositioning by calculating the eigenvector centrality of drugs.

Usage

DrugReposition(DE,nperm = 1000,r = 0.9,p = 10^-10)

Arguments

DE

A matrix with one column of zscore.

nperm

Number of random permutations (default: 1000).

r

Restart the probability of the random-walk algorithm (default: 0.9).

p

For each node, if the difference in centrality score between iterations changes less than this value, the algorithm considers the calculation complete (default: 10^-10).

Value

A dataframe with seven columns those are drugbankid, centralscore, p.value,fdr,number of targets, drug targets,drugname.

Examples

# Obtain the example data
GEP<-Gettest("GEP")
label<-Gettest("label")
# Run the function
DEscore<-CalDEscore(GEP,label)
# Run the function
drug_centrality<-DrugReposition(DE=DEscore,nperm = 1000,r = 0.9,p = 10^-10)

DrugSimscore

Description

The function "DrugSimscore" is used in calculating the drug functional similarity score.

Usage

DrugSimscore(DE,nperm = 0)

Arguments

DE

A matrix with one column of zscore.

nperm

Number of random permutations (default: 0).

Value

A dataframe with four columns those are drug1, drug2, drug1 name, drug2 name, functional similarity score and FDR.

Examples

# Obtain the example data
GEP<-Gettest("GEP")
label<-Gettest("label")
# Run the function
DEscore<-CalDEscore(GEP,label)
# Run the function
drug_drug<-DrugSimscore(DE=DEscore,nperm = 0)

Gettest

Description

Get the example data

Usage

Gettest(exampleData)

Arguments

exampleData

A character,should be one of"Jaccard","commongenes","GO_MF","Drugs","Drugbankid_CID","drugname","GEP","label"

Value

data


An environment variable which includes some example data

Description

An environment variable which includes some example data. Jaccard:A matrix of Jaccard score between drugs and GOMF. commongenes:A matrix consisting of genes shared by drug targets and GOMF. GO_MF:GO terms of molecular functions. Drugs:Drugs and corresponding targets. GEP:An example gene expression profile. label:A vector representing the label of the sample of GEP, where "1" is the disease sample and "0" is the normal sample. Drugbankid_CID:A dataframe including three columns which are drugbankid, ChembleID, and drugname.

Usage

myenv

Format

An environment variable


plotDrugstructure

Description

The function "plotDrugstructure" can plot the chemical structure of a drug.

Usage

plotDrugstructure(drugid = "")

Arguments

drugid

A drugbank ID.

Value

A chemical structure of specific drug

Examples

# Load depend package
library(ChemmineR)
library(rvest)
# Obtain molecular formula and visualize it.
plotDrugstructure(drugid ="DB00780")

plotTargetheatmap

Description

The function "plotTargetheatmap" is used to plot a heat map of drug targets expression.

Usage

plotTargetheatmap(drugid,ExpData,label,significance=FALSE,
cluster.rows=FALSE,cluster.cols=FALSE,bk=c(-2.4,2.3),show.rownames=TRUE,
show.colnames=FALSE,ann_colors=c("#FFAA2C","#2CBADA"),col=c("#2A95FF","#FF1C1C"))

Arguments

drugid

The drugbank ID of a drug.

ExpData

A gene expression profile of interest (rows are genes, columns are samples).

label

A character vector consists of "0" and "1" which represent sample class in the gene expression profile. "0" means normal sample and "1" means disease sample.

significance

This parameter controls whether the p-value of differential expression is displayed.

cluster.rows

Logical value that represents whether row clustering is used.

cluster.cols

Logical value that represents whether col clustering is used.

bk

This parameter adjusts the range of values displayed by the color bar.

show.rownames

This parameter controls whether row names are displayed.

show.colnames

This parameter controls whether column names are displayed.

ann_colors

Vector of colors used to define groups.

col

Vector of colors used in the heatmap.

Value

A heat map of drug targets expression.

Examples

# Obtain the example data
GEP<-Gettest("GEP")
label<-Gettest("label")
# Run the function
plotTargetheatmap("DB00780",GEP,label)