preprocessMatrices {DriverNet} | R Documentation |
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.
preprocessMatrices(patMutMatrix, patOutMatrix, influenceGraph)
patMutMatrix |
Patient Mutation Matrix |
patOutMatrix |
Patient Outlier Matrix |
influenceGraph |
Influence Graph Matrix |
1 |
Reduced version of Patient Mutation Matrix |
2 |
Reduced version of Patient Expression(Outlier) Matrix |
3 |
Influence Graph Matrix |
The dimension of influenceGraph is not changed.
Ali Bashashati, Reza Haffari, Jiarui Ding, Gavin Ha, Kenneth Liu, Jamie Rosner and Sohrab Shah
Maintainer: Jiarui Ding <jiaruid@cs.ubc.ca>
data(samplePatientMutationMatrix) data(samplePatientOutlierMatrix) data(sampleInfluenceGraph) tmp = preprocessMatrices(samplePatientMutationMatrix, samplePatientOutlierMatrix, sampleInfluenceGraph) smallerPatientMutationMatrix = tmp[[1]] smallerPatientOutlierMatrix = tmp[[2]] influenceGraph = tmp[[3]]