convertToDr converts genomic data into a list further
used for computing gene-to-phenotype association scores.convertToDr(dataIntersection, response, nPlatforms = length(data))dataIntersection
must account for the same set of patients(columns) and genes (rows)dataIntersection) must
have the same dimentions, with columns being patients,
and rows being genes. Column names identify the patients,
while rownames identify the genes.
The argument response is used to pass phenotypic information
about samples to be analyzed. This is a simple two columns
data.frame in which the first column correspond to patients
identifiers, and the second column to the phenotypic response
encoded as binary class (using the integers 0 and 1).
The nPlatforms argument specifies the number of platforms
that will be analyzed.
###load data
data(exampleData)
###convert
dataDr <- convertToDr(dat, pheno, 4)
Run the code above in your browser using DataLab