getDrugMatrix: SubtypeDrug internal function

View source: R/getDrugMatrix.R

getDrugMatrixR Documentation

SubtypeDrug internal function

Description

Obtaining drug-disease reverse association score matrix.

Usage

getDrugMatrix(spw_matrix, drug_target_data, weighted.score)

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.

Details

getDrugMatrix

Value

A matrix.

Author(s)

Xudong Han, Junwei Han, Chonghui Liu

Examples

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

SubtypeDrug documentation built on May 29, 2024, 10:33 a.m.