Skip to content

Commit

Permalink
fix plot error caused by NAs in signatureEnrichment
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang authored Jun 13, 2018
1 parent cbbc5d0 commit a7fa450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/signatureCorrelation.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ signatureEnrichment = function(maf, sig_res, minMut = 5, useCNV = FALSE, fn = NU
#layout(matrix(1:1, ncol=2, byrow = TRUE), heights=c(1,1,1,0.2))
title_size = 1
par(mar = c(3.5,2.5,2,2))
b = barplot(as.matrix(sig.mean.stat), ylim = c(0, 1 + max(sig.sd.stat)), col = cols,
b = barplot(as.matrix(sig.mean.stat), ylim = c(0, 1 + max(sig.sd.stat, na.rm = TRUE)), col = cols,
axes = FALSE, border = 0.1, xaxt = "n")
for(i in 1:ncol(sig.sd.stat)){
segments(x0 = b[i], y0 = cumsum(sig.mean.stat[,i]) - sig.sd.stat[,i],
Expand Down

0 comments on commit a7fa450

Please sign in to comment.