Skip to content

Commit 4135918

Browse files
author
Wenzheng Li
committed
more appropriate way to plot chrom positions with data before filtering, so that chrom positions are not subject to bad regions filtered
1 parent 0656240 commit 4135918

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/cnvAnalysis.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ SDUndoAll <- function (sd.short, ratio.data, sd.undo) {
196196

197197
PlotSegment <- function(cur.ratio, cur.ratio.good, sample.name) {
198198

199-
chr <- cur.ratio.good$chrom
199+
chr <- cur.ratio$chrom
200200
chr.shift <- c(chr[-1], chr[length(chr)])
201201

202-
vlines <- c(1, cur.ratio.good$abspos[which(chr != chr.shift) + 1],
203-
cur.ratio.good$abspos[nrow(cur.ratio.good)])
202+
vlines <- c(1, cur.ratio$abspos[which(chr != chr.shift) + 1],
203+
cur.ratio$abspos[nrow(cur.ratio)])
204204
hlines <- c(0.5, 1.0, 1.5, 2.0)
205205
chr.text <- c(1:22, "X", "Y")
206206
vlines.shift <- c(vlines[-1], 4 * 10^9)

0 commit comments

Comments
 (0)