Skip to content

Commit 82799e4

Browse files
author
Wenzheng Li
committed
added back chrom.arm
1 parent 0156d54 commit 82799e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/cnvAnalysis.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ CBSSegment01 <- function(varbin.gc, bad.bins.file,
244244

245245
## Convert the chromosome names into numeric ids sorted by
246246
## chromosome number with sex chroms at the end
247-
gc$chrom <- sub('_.*', '', rownames(gc))
248247
chrom.numeric <- sub('_.*', '', substring(rownames(gc), 4))
249248
chrom.numeric[chrom.numeric == 'X'] <- "23"
250249
chrom.numeric[chrom.numeric == 'Y'] <- "24"
@@ -273,7 +272,7 @@ CBSSegment01 <- function(varbin.gc, bad.bins.file,
273272
## Do the work of the copy number analysis using CNA, and
274273
## immediately apply smoothing to the result.
275274
cna.result <- smooth.CNA(CNA(log2(cur.ratio.good$lowratio),
276-
gc$chrom[-bad.bins[, 1]],
275+
gc$chrom.arm[-bad.bins[, 1]],
277276
cur.ratio.good$chrompos,
278277
data.type="logratio",
279278
sampleid=sample.name))

0 commit comments

Comments
 (0)