Skip to content

Commit

Permalink
Zipped more example files to reduce package size.
Browse files Browse the repository at this point in the history
  • Loading branch information
lima1 committed Feb 26, 2022
1 parent da76569 commit 4a7f481
Show file tree
Hide file tree
Showing 39 changed files with 103 additions and 40,303 deletions.
6 changes: 3 additions & 3 deletions R/annotateTargets.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
#' library(TxDb.Hsapiens.UCSC.hg19.knownGene)
#' library(org.Hs.eg.db)
#'
#' normal.coverage.file <- system.file("extdata", "example_normal.txt",
#' package="PureCN")
#' x <- head(readCoverageFile(normal.coverage.file),100)
#' normal.coverage.file <- system.file("extdata", "example_normal.txt.gz",
#' package = "PureCN")
#' x <- head(readCoverageFile(normal.coverage.file), 100)
#' x <- annotateTargets(x,TxDb.Hsapiens.UCSC.hg19.knownGene, org.Hs.eg.db)
#'
#' @importFrom GenomicFeatures transcriptsByOverlaps exonsByOverlaps cdsByOverlaps
Expand Down
8 changes: 4 additions & 4 deletions R/calculateLogRatio.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
#' @author Markus Riester
#' @examples
#'
#' normal.coverage.file <- system.file("extdata", "example_normal.txt",
#' package="PureCN")
#' tumor.coverage.file <- system.file("extdata", "example_tumor.txt",
#' package="PureCN")
#' normal.coverage.file <- system.file("extdata", "example_normal.txt.gz",
#' package = "PureCN")
#' tumor.coverage.file <- system.file("extdata", "example_tumor.txt.gz",
#' package = "PureCN")
#' normal <- readCoverageFile(normal.coverage.file)
#' tumor <- readCoverageFile(tumor.coverage.file)
#' log.ratio <- calculateLogRatio(normal, tumor)
Expand Down
8 changes: 4 additions & 4 deletions R/callAmplificationsInLowPurity.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
#' @examples
#'
#' data(purecn.example.output)
#' normal.coverage.file <- system.file("extdata", "example_normal.txt",
#' package="PureCN")
#' normal2.coverage.file <- system.file("extdata", "example_normal2.txt",
#' package="PureCN")
#' normal.coverage.file <- system.file("extdata", "example_normal.txt.gz",
#' package = "PureCN")
#' normal2.coverage.file <- system.file("extdata", "example_normal2.txt.gz",
#' package = "PureCN")
#' normal.coverage.files <- c(normal.coverage.file, normal2.coverage.file)
#' normalDB <- createNormalDatabase(normal.coverage.files)
#' callAmplificationsInLowPurity(purecn.example.output, normalDB)["EIF2A", ]
Expand Down
2 changes: 1 addition & 1 deletion R/correctCoverageBias.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ globalVariables(names = c("..level.."))
#' @seealso \code{\link{preprocessIntervals}}
#' @examples
#'
#' normal.coverage.file <- system.file("extdata", "example_normal.txt",
#' normal.coverage.file <- system.file("extdata", "example_normal.txt.gz",
#' package = "PureCN")
#' interval.file <- system.file("extdata", "example_intervals.txt",
#' package = "PureCN")
Expand Down
16 changes: 8 additions & 8 deletions R/createNormalDatabase.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#' @seealso \code{\link{calculateTangentNormal}}
#' @examples
#'
#' normal.coverage.file <- system.file("extdata", "example_normal.txt",
#' normal.coverage.file <- system.file("extdata", "example_normal.txt.gz",
#' package = "PureCN")
#' normal2.coverage.file <- system.file("extdata", "example_normal2.txt",
#' normal2.coverage.file <- system.file("extdata", "example_normal2.txt.gz",
#' package = "PureCN")
#' normal.coverage.files <- c(normal.coverage.file, normal2.coverage.file)
#' normalDB <- createNormalDatabase(normal.coverage.files)
Expand Down Expand Up @@ -281,12 +281,12 @@ optimal.off.target.counts = 120, plot = FALSE, ...) {
#' @author Markus Riester
#' @examples
#'
#' tumor.coverage.file <- system.file('extdata', 'example_tumor.txt',
#' package='PureCN')
#' normal.coverage.file <- system.file("extdata", "example_normal.txt",
#' package="PureCN")
#' normal2.coverage.file <- system.file("extdata", "example_normal2.txt",
#' package="PureCN")
#' tumor.coverage.file <- system.file('extdata', 'example_tumor.txt.gz',
#' package = 'PureCN')
#' normal.coverage.file <- system.file("extdata", "example_normal.txt.gz",
#' package = "PureCN")
#' normal2.coverage.file <- system.file("extdata", "example_normal2.txt.gz",
#' package = "PureCN")
#' normal.coverage.files <- c(normal.coverage.file, normal2.coverage.file)
#' normalDB <- createNormalDatabase(normal.coverage.files)
#' pool <- calculateTangentNormal(tumor.coverage.file, normalDB)
Expand Down
6 changes: 3 additions & 3 deletions R/filterIntervals.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@
#' @author Markus Riester
#' @examples
#'
#' normal.coverage.file <- system.file("extdata", "example_normal.txt",
#' normal.coverage.file <- system.file("extdata", "example_normal.txt.gz",
#' package = "PureCN")
#' normal2.coverage.file <- system.file("extdata", "example_normal2.txt",
#' normal2.coverage.file <- system.file("extdata", "example_normal2.txt.gz",
#' package = "PureCN")
#' normal.coverage.files <- c(normal.coverage.file, normal2.coverage.file)
#' normalDB <- createNormalDatabase(normal.coverage.files)
#'
#' tumor.coverage.file <- system.file("extdata", "example_tumor.txt",
#' tumor.coverage.file <- system.file("extdata", "example_tumor.txt.gz",
#' package = "PureCN")
#' vcf.file <- system.file("extdata", "example.vcf.gz",
#' package = "PureCN")
Expand Down
2 changes: 1 addition & 1 deletion R/getSex.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#' @seealso \code{\link{getSexFromVcf}}
#' @examples
#'
#' tumor.coverage.file <- system.file("extdata", "example_tumor.txt",
#' tumor.coverage.file <- system.file("extdata", "example_tumor.txt.gz",
#' package = "PureCN")
#' sex <- getSexFromCoverage(tumor.coverage.file)
#'
Expand Down
4 changes: 2 additions & 2 deletions R/poolCoverage.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
#' @seealso \code{\link{readCoverageFile}}
#' @examples
#'
#' normal.coverage.file <- system.file("extdata", "example_normal.txt",
#' normal.coverage.file <- system.file("extdata", "example_normal.txt.gz",
#' package = "PureCN")
#' normal2.coverage.file <- system.file("extdata", "example_normal2.txt",
#' normal2.coverage.file <- system.file("extdata", "example_normal2.txt.gz",
#' package = "PureCN")
#' normal.coverage.files <- c(normal.coverage.file, normal2.coverage.file)
#' pool <- poolCoverage(lapply(normal.coverage.files, readCoverageFile),
Expand Down
8 changes: 4 additions & 4 deletions R/processMultipleSamples.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
#' @seealso \code{\link{runAbsoluteCN}}
#' @examples
#'
#' normal1.coverage.file <- system.file("extdata", "example_normal.txt",
#' normal1.coverage.file <- system.file("extdata", "example_normal.txt.gz",
#' package = "PureCN")
#' normal2.coverage.file <- system.file("extdata", "example_normal2.txt",
#' normal2.coverage.file <- system.file("extdata", "example_normal2.txt.gz",
#' package = "PureCN")
#' tumor1.coverage.file <- system.file("extdata", "example_tumor.txt",
#' tumor1.coverage.file <- system.file("extdata", "example_tumor.txt.gz",
#' package = "PureCN")
#' tumor2.coverage.file <- system.file("extdata", "example_tumor2.txt",
#' tumor2.coverage.file <- system.file("extdata", "example_tumor2.txt.gz",
#' package = "PureCN")
#'
#' normal.coverage.files <- c(normal1.coverage.file, normal2.coverage.file)
Expand Down
8 changes: 4 additions & 4 deletions R/readCoverageFile.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
#' @seealso \code{\link{calculateBamCoverageByInterval}}
#' @examples
#'
#' tumor.coverage.file <- system.file("extdata", "example_tumor.txt",
#' package="PureCN")
#' tumor.coverage.file <- system.file("extdata", "example_tumor.txt.gz",
#' package = "PureCN")
#' coverage <- readCoverageFile(tumor.coverage.file)
#'
#'
#' @importFrom tools file_ext
#' @importFrom rhdf5 H5Fopen
#' @importFrom data.table fread
#' @export readCoverageFile
readCoverageFile <- function(file, format, zero=NULL, read.length = 100) {
readCoverageFile <- function(file, format, zero = NULL, read.length = 100) {
if (missing(format)) format <- .getFormat(file)
if (format %in% c("cnn", "cnr")) {
targetCoverage <- .readCoverageCnn(file, zero, format)
Expand Down
Loading

0 comments on commit 4a7f481

Please sign in to comment.