Skip to content

Commit 1681609

Browse files
committed
Removed call to orig_start/orig_end in every plotJPG call
1 parent cb852c9 commit 1681609

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/RdTest/RdTestV2.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,8 @@ plotJPG <- function(genotype_matrix,cnv_matrix,chr,start,end,cnvID,sampleIDs,out
906906
active_start_idx <- 1
907907
active_end_idx <- ncol(cnv_matrix)
908908
}
909+
if(missing(orig_start)) { orig_start <- start }
910+
if(missing(orig_end)) { orig_end <- end }
909911

910912
##If only one bin##
911913
if(ncol(cnv_matrix)==1)
@@ -989,7 +991,6 @@ plotJPG <- function(genotype_matrix,cnv_matrix,chr,start,end,cnvID,sampleIDs,out
989991
)
990992

991993
n_bins <- nrow(plot_cnvmatrix)
992-
993994
if (pad > 0) {
994995
# Compute plotting coordinates for the event region rectangle
995996
x_axis_positions <- seq(start, end, length.out = n_bins)
@@ -1352,7 +1353,7 @@ runRdTest<-function(bed)
13521353
plotK=FALSE, plotfamily=FALSE, famfile, outFolder, pad=opt$padding, orig_start=orig_start, orig_end=orig_end)
13531354
} else {
13541355
plotJPG(genotype_matrix, cnv_matrix, chr, start, end, cnvID, sampleIDs, outputname, cnvtype,
1355-
plotK=FALSE, plotfamily=FALSE, famfile, outFolder, orig_start=start, orig_end=end)
1356+
plotK=FALSE, plotfamily=FALSE, famfile, outFolder)
13561357
}
13571358
}
13581359

0 commit comments

Comments
 (0)