@@ -199,7 +199,7 @@ ss) {
199199 containsOfftarget <- sum(on.target )!= length(on.target )
200200 if (! containsOfftarget ) return (NULL )
201201 myylim <- quantile(subset(log.ratio ,
202- ! is.infinite(log.ratio )), p = c(0.0001 , 1 - 0.0001 ),na.rm = TRUE )
202+ ! is.infinite(log.ratio )), probs = c(0.0001 , 1 - 0.0001 ), na.rm = TRUE )
203203 plot(log.ratio , col = ifelse(on.target , " black" , " red" ),
204204 pch = " ." ,cex = 3 , ylim = myylim , ylab = " log2 ratio" )
205205 legend(" bottomleft" , legend = c(" On-Target" , " Off-Target" ), ncol = 2 , fill = c(" black" , " red" ))
@@ -240,7 +240,7 @@ ss) {
240240 minLogRatio <- max(min(seg $ seg.mean ), peak.ideal.means [1 ]* 2 )
241241 logRatio <- do.call(c , lapply(seq_len(nrow(seg )), function (i )
242242 rep(seg $ seg.mean [i ], seg $ num.mark [i ])))
243- minLogRatio <- min(minLogRatio , quantile(logRatio , p = 0.01 ))
243+ minLogRatio <- min(minLogRatio , quantile(logRatio , probs = 0.01 ))
244244 logRatio <- logRatio [logRatio > = minLogRatio ]
245245
246246 # estimate genome fractions
@@ -377,10 +377,10 @@ ss) {
377377 ylim = c(
378378 min(
379379 log2(.calcExpectedRatio(- 0.1 , purity , ploidy )),
380- quantile(logRatio $ log.ratio , p = 0.0001 )),
380+ quantile(logRatio $ log.ratio , probs = 0.0001 )),
381381 max(
382382 max(segment.log.ratio * 1.1 ),
383- quantile(logRatio $ log.ratio , p = 1 - 0.0001 ))
383+ quantile(logRatio $ log.ratio , probs = 1 - 0.0001 ))
384384 ),
385385 ... )
386386 points(x , r $ log.ratio [idx ], col = col.snps , pch = mypch )
@@ -418,7 +418,7 @@ ss) {
418418 round(res $ results [[id ]]$ log.likelihood , digits = 2 ))
419419
420420 myylim <- quantile(subset(r $ log.ratio ,
421- ! is.infinite(r $ log.ratio )), p = c(0.001 , 1 - 0.001 ), na.rm = TRUE )
421+ ! is.infinite(r $ log.ratio )), probs = c(0.001 , 1 - 0.001 ), na.rm = TRUE )
422422 myylim [1 ] <- floor(myylim [1 ])
423423 myylim [2 ] <- ceiling(myylim [2 ])
424424
@@ -491,7 +491,7 @@ ss) {
491491
492492 seg <- res $ results [[id ]]$ seg
493493 mylogratio.xlim <- quantile(subset(r $ log.ratio ,
494- ! is.infinite(r $ log.ratio )), p = c(0.001 , 1 - 0.001 ), na.rm = TRUE )
494+ ! is.infinite(r $ log.ratio )), probs = c(0.001 , 1 - 0.001 ), na.rm = TRUE )
495495
496496 peak.ideal.means <- .calcIdealPeaks(seg , purity , ploidy )
497497 scatter.labels <- paste0(r $ ML.C , " m" , r $ ML.M )[! r $ ML.SOMATIC ]
@@ -608,15 +608,15 @@ ss) {
608608 xc <- .matrixTotalPloidyToTumorPloidy(res $ candidates $ all )
609609 xc [is.infinite(xc )] <- min(xc [! is.infinite(xc )], na.rm = TRUE )
610610 xc [is.na(xc )] <- min(xc [! is.infinite(xc )], na.rm = TRUE )
611- xc [xc < quantile(xc , p = 0.2 )] <- quantile(xc , p = 0.2 )
611+ xc [xc < quantile(xc , p = 0.2 )] <- quantile(xc , probs = 0.2 )
612612
613613 mycol.image <- colorRampPalette(rev(brewer.pal(n = 7 ,
614614 name = " RdYlBu" )))(100 )
615615 image(as.numeric(colnames(xc )), as.numeric(rownames(xc )),
616616 t(xc ) - max(xc ), col = mycol.image , xlab = " Purity" ,
617617 ylab = " Ploidy" ,main = main ,... )
618618 .legend.col(col = mycol.image , lev = min(xc ): max(xc ),
619- ylim = quantile(as.numeric(rownames(xc )), p = c(0 ,1 )))
619+ ylim = quantile(as.numeric(rownames(xc )), probs = c(0 ,1 )))
620620
621621 if (show.contour ) contour(as.numeric(colnames(xc )),
622622 as.numeric(rownames(xc )), t(xc ), add = TRUE )
0 commit comments