Learn R Programming

SubtypeDrug (version 0.1.5)

getDrugMatrix: SubtypeDrug internal function

Description

Obtaining drug-disease reverse association score matrix.

Usage

getDrugMatrix(spw_matrix, drug_target_data, weighted.score)

Value

A matrix.

Arguments

spw_matrix

A subpathway activity profile. rows are subpathwyas, columns are samples.

drug_target_data

A list. A list stores a collection of drug up- and down-regulated subpathways.

weighted.score

A binary value of 0 or 1. If the `weighted.score` = 1, the drug reverse association score will be weighted by the subpathway activity.

Author

Xudong Han, Junwei Han, Chonghui Liu

Details

getDrugMatrix

Examples

Run this code
require(GSVA)
Geneexp<-get("GeneexpT")
UserDS<-get("UserDST")
UserGS<-get("UserGST")
spw_matrix<-gsva(Geneexp,UserGS,verbose=FALSE)
x<-getDrugMatrix(spw_matrix,UserDS,weighted.score=FALSE)

Run the code above in your browser using DataLab