... |
... |
@@ -207,7 +207,7 @@ oncoPrint = function(mat, get_type = function(x) x,
|
207 |
207 |
}
|
208 |
208 |
|
209 |
209 |
oncoprint_row_order = function() {
|
210 |
|
- order(rowSums(count_matrix), pct_num, decreasing = TRUE)
|
|
210 |
+ order(rowSums(count_matrix), n_mut, decreasing = TRUE)
|
211 |
211 |
}
|
212 |
212 |
|
213 |
213 |
oncoprint_column_order = function() {
|
... |
... |
@@ -225,6 +225,8 @@ oncoPrint = function(mat, get_type = function(x) x,
|
225 |
225 |
}
|
226 |
226 |
|
227 |
227 |
count_matrix = apply(arr, c(1, 2), sum)
|
|
228 |
+ n_mut = rowSums(apply(arr, 1:2, any))
|
|
229 |
+
|
228 |
230 |
if(is.null(row_order)) row_order = seq_len(nrow(count_matrix))
|
229 |
231 |
if(is.null(column_order)) column_order = seq_len(ncol(count_matrix))
|
230 |
232 |
row_order = row_order
|