Skip to content

Commit 0656240

Browse files
author
Wenzheng Li
committed
chrom positions fixed
1 parent 0afc477 commit 0656240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/cnvAnalysis.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ PlotSegment <- function(cur.ratio, cur.ratio.good, sample.name) {
199199
chr <- cur.ratio.good$chrom
200200
chr.shift <- c(chr[-1], chr[length(chr)])
201201

202-
vlines <- c(1, cur.ratio$abspos[which(chr != chr.shift) + 1],
203-
cur.ratio$abspos[nrow(cur.ratio)])
202+
vlines <- c(1, cur.ratio.good$abspos[which(chr != chr.shift) + 1],
203+
cur.ratio.good$abspos[nrow(cur.ratio.good)])
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)