Skip to content

Commit 75c92ba

Browse files
committed
Update clusterSampleVcf.R
1 parent 4bba0c4 commit 75c92ba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

contamination/clusterSampleVcf.R

+1-3
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ X[!gt %in% c("0/0", "0/1", "1/1")] = NA
3434
gt = matrix(as.integer(factor(X)), nrow = nrow(gt), ncol = ncol(gt), dimnames = list(rownames(gt), colnames(gt)))
3535
dt = as.matrix(dist(t(gt)))
3636

37-
print(opt$sample_pairs)
38-
3937
tumor_samples = unlist(lapply(strsplit(x = unlist(strsplit(x = as.character(opt$sample_pairs), split = " ")), split = "_"), function(x) { x[1] }))
4038
normal_samples = unlist(lapply(strsplit(x = unlist(strsplit(x = as.character(opt$sample_pairs), split = " ")), split = "_"), function(x) { x[2] }))
4139
sample_pairs = dplyr::tibble(tumor_samples = factor(c(tumor_samples, unique(normal_samples)), levels = rownames(dt), ordered = TRUE),
@@ -64,7 +62,7 @@ col_pal = c(rep("#662506", 3),
6462
rep("#fff7bc", 3))
6563

6664
pdf(as.character(opt$output_file), height = 21, width = 22)
67-
draw(Heatmap(matrix = dt
65+
draw(Heatmap(matrix = dt,
6866
name = " ",
6967
rect_gp = gpar(col = "white"),
7068
border = NA,

0 commit comments

Comments
 (0)