Learn R Programming

DriverNet (version 1.12.0)

preprocessMatrices: Remove unnecessary entries from matrices

Description

Remove patients (rows) which are not in both matrices from patMutMatrix and patOutMatrix. Remove mutations (columns) from patMutMatrix if they are not a row of influenceGraph. Remove expressions (columns) from patOutMatrix if they are not a column of influenceGraph.

Usage

preprocessMatrices(patMutMatrix, patOutMatrix, influenceGraph)

Arguments

patMutMatrix
Patient Mutation Matrix
patOutMatrix
Patient Outlier Matrix
influenceGraph
Influence Graph Matrix

Value

1
Reduced version of Patient Mutation Matrix
2
Reduced version of Patient Expression(Outlier) Matrix
3
Influence Graph Matrix

Examples

Run this code
data(samplePatientMutationMatrix)
data(samplePatientOutlierMatrix)
data(sampleInfluenceGraph)
tmp = preprocessMatrices(samplePatientMutationMatrix, samplePatientOutlierMatrix, 
sampleInfluenceGraph)

smallerPatientMutationMatrix = tmp[[1]]
smallerPatientOutlierMatrix = tmp[[2]]
influenceGraph = tmp[[3]]

Run the code above in your browser using DataLab