Learn R Programming

DrugClust (version 0.2)

InitFeatures: InitFeatures

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

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

Run this code
#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

Run the code above in your browser using DataLab