Skip to content

Commit

Permalink
Merge branch 'devel' of https://github.com/lima1/PureCN into devel
Browse files Browse the repository at this point in the history
  • Loading branch information
lima1 committed May 12, 2024
2 parents 7905ce8 + 476f205 commit 9080c51
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Package: PureCN
Type: Package
Title: Copy number calling and SNV classification using
targeted short read sequencing
Version: 2.11.0
Date: 2024-04-24
Version: 2.11.1
Date: 2024-05-10
Authors@R: c(person("Markus", "Riester",
role = c("aut", "cre"),
email = "markus.riester@novartis.com",
Expand Down
11 changes: 11 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
Changes in version 2.12.0
-------------------------

NEW FEATURES

o Added --num-eigen-vectors to PureCN.R to set the number of eigen vectors.
Tuning parameter for coverage normalization. Default should in most cases
be a good compromise between removing most normal noise and not
overfitting to pool of normal samples.


Changes in version 2.10.0
-------------------------

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ For outdated R/Bioconductor versions, you can try backporting the latest stable
version (this should work fine for Bioconductor 3.3 and later):

```
BiocManager::install("lima1/PureCN", ref = "RELEASE_3_18")
BiocManager::install("lima1/PureCN", ref = "RELEASE_3_19")
```

If you want the latest and greatest from the developer branch:
Expand Down
5 changes: 4 additions & 1 deletion inst/extdata/PureCN.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ option_list <- list(
make_option(c("--min-fraction-offtarget"), action = "store", type = "double",
default = formals(PureCN::filterIntervals)$min.fraction.offtarget,
help = "Interval Filter: Ignore off-target internals when only the specified fraction of all intervals are off-target intervals [default %default]"),
make_option(c("--num-eigen-vectors"), action = "store", type = "integer",
default = formals(PureCN::calculateTangentNormal)$num.eigen,
help = "Coverage Normalization: Number of eigen vectors when --normaldb is provided [default %default]"),
make_option(c("--fun-segmentation"), action = "store", type = "character", default = "CBS",
help = "Segmentation: Algorithm. CBS, PSCBS, GATK4, Hclust, or none [default %default]"),
make_option(c("--alpha"), action = "store", type = "double",
Expand Down Expand Up @@ -283,7 +286,7 @@ if (file.exists(file.rds) && !opt$force) {
if (!is.null(normalDB)) {
if (is.null(normal.coverage.file)) {
normal.coverage.file <- calculateTangentNormal(tumor.coverage.file,
normalDB)
normalDB, num.eigen = opt[["num_eigen_vectors"]])
}
} else if (is.null(normal.coverage.file) && is.null(seg.file) &&
is.null(log.ratio)) {
Expand Down

0 comments on commit 9080c51

Please sign in to comment.