Skip to content

Commit

Permalink
Merge pull request #162 from ShixiangWang/devel
Browse files Browse the repository at this point in the history
Fix #161
  • Loading branch information
ShixiangWang committed May 7, 2020
2 parents 50e0e00 + 224f933 commit 974827f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

- Added profile plot for DBS and INDEL.
- Fixed error for signature extraction in mode 'DBS' or 'ID'.
- Fixed method 'M' for CN tally cannot work when `cores > 1` (#161).

# sigminer 1.0.3

Expand Down
4 changes: 2 additions & 2 deletions R/helper_fit_cn_components.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ fitComponent <-
logLiks <- t(sapply(z_list, function(x) x[["logLiks"]]))
}

logLiks <- logLiks[is.finite(sapply(z, logLik)), , drop = FALSE]
z <- z[is.finite(sapply(z, logLik))]
logLiks <- logLiks[is.finite(sapply(z, flexmix::logLik)), , drop = FALSE]
z <- z[is.finite(sapply(z, flexmix::logLik))]
rownames(logLiks) <- names(z)
if (!length(z)) {
stop("No convergence to a suitable mixture")
Expand Down

0 comments on commit 974827f

Please sign in to comment.