InitFeatures: InitFeatures

Description Usage Arguments Value Examples

View source: R/VariousFunctions.R

Description

Initialize the features matrix. The data needs to be binary matrices where each row is a drug, and columns represents drugs features. If the element in position ij is 1 it means that the ith drug interacts with the jth element (for example a protein). The same for the matrix where side effects are stored.

Usage

1
InitFeatures(namefeatures)

Arguments

namefeatures

name of the file where the features are stored.The file needs to be in the same folder where you have the code.

Value

The matrix containing drugs features

Examples

1
2
3
#Generate a sample features binary matrix
#for example you will fin the file bioma2.txt which is a sample file for feature matrix
#you can therefore type the command features<-InitFeatures("bio2mat.txt") to upload it

Example output



DrugClust documentation built on May 30, 2017, 2:30 a.m.