Skip to content

Commit

Permalink
fixed issue with copy number correction
Browse files Browse the repository at this point in the history
There was an issue with the use of the cellular prevalence in the copy number correction post-processing step. The issue is now fixed and cellular prevalence is properly used in the computation of the new corrected copy number.
  • Loading branch information
gavinha committed Oct 23, 2018
1 parent b39a30d commit eb288ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -1223,8 +1223,8 @@ correctIntegerCN <- function(cn, segs, purity, ploidy, maxCNtoCorrect.autosomes
}

## compute copy number using corrected log ratio ##
logRbasedCN <- function(x, purity, ploidyT, cellPrev, cn = 2){
if (is.null(cellPrev) || is.na(cellPrev)){
logRbasedCN <- function(x, purity, ploidyT, cellPrev=NA, cn = 2){
if (length(cellPrev) == 1 && is.na(cellPrev)){
cellPrev <- 1
}
ct <- (2^x
Expand Down

0 comments on commit eb288ea

Please sign in to comment.