Back to Multiple platform build/check report for BioC 3.20:   simplified   long
ABCDEFGHIJKLMNOP[Q]RSTUVWXYZ

This page was generated on 2024-11-20 12:06 -0500 (Wed, 20 Nov 2024).

HostnameOSArch (*)R versionInstalled pkgs
teran2Linux (Ubuntu 24.04.1 LTS)x86_644.4.2 (2024-10-31) -- "Pile of Leaves" 4481
nebbiolo2Linux (Ubuntu 24.04.1 LTS)x86_644.4.2 (2024-10-31) -- "Pile of Leaves" 4479
palomino8Windows Server 2022 Datacenterx644.4.2 (2024-10-31 ucrt) -- "Pile of Leaves" 4359
lconwaymacOS 12.7.1 Montereyx86_644.4.1 (2024-06-14) -- "Race for Your Life" 4539
kunpeng2Linux (openEuler 22.03 LTS-SP1)aarch644.4.1 (2024-06-14) -- "Race for Your Life" 4493
Click on any hostname to see more info about the system (e.g. compilers)      (*) as reported by 'uname -p', except on Windows and Mac OS X

Package 1626/2289HostnameOS / ArchINSTALLBUILDCHECKBUILD BIN
QDNAseq 1.42.0  (landing page)
Daoud Sie
Snapshot Date: 2024-11-19 13:40 -0500 (Tue, 19 Nov 2024)
git_url: https://git.bioconductor.org/packages/QDNAseq
git_branch: RELEASE_3_20
git_last_commit: ef944cd
git_last_commit_date: 2024-10-29 09:50:46 -0500 (Tue, 29 Oct 2024)
teran2Linux (Ubuntu 24.04.1 LTS) / x86_64  OK    OK    OK  UNNEEDED, same version is already published
nebbiolo2Linux (Ubuntu 24.04.1 LTS) / x86_64  OK    OK    OK  
palomino8Windows Server 2022 Datacenter / x64  OK    OK    OK    OK  UNNEEDED, same version is already published
lconwaymacOS 12.7.1 Monterey / x86_64  OK    OK    OK    OK  UNNEEDED, same version is already published
kunpeng2Linux (openEuler 22.03 LTS-SP1) / aarch64  OK    OK    OK  


CHECK results for QDNAseq on lconway

To the developers/maintainers of the QDNAseq package:
- Allow up to 24 hours (and sometimes 48 hours) for your latest push to git@git.bioconductor.org:packages/QDNAseq.git to reflect on this report. See Troubleshooting Build Report for more information.
- Use the following Renviron settings to reproduce errors and warnings.
- If 'R CMD check' started to fail recently on the Linux builder(s) over a missing dependency, add the missing dependency to 'Suggests:' in your DESCRIPTION file. See Renviron.bioc for more information.

raw results


Summary

Package: QDNAseq
Version: 1.42.0
Command: /Library/Frameworks/R.framework/Resources/bin/R CMD check --install=check:QDNAseq.install-out.txt --library=/Library/Frameworks/R.framework/Resources/library --no-vignettes --timings QDNAseq_1.42.0.tar.gz
StartedAt: 2024-11-20 01:28:11 -0500 (Wed, 20 Nov 2024)
EndedAt: 2024-11-20 01:37:14 -0500 (Wed, 20 Nov 2024)
EllapsedTime: 543.3 seconds
RetCode: 0
Status:   OK  
CheckDir: QDNAseq.Rcheck
Warnings: 0

Command output

##############################################################################
##############################################################################
###
### Running command:
###
###   /Library/Frameworks/R.framework/Resources/bin/R CMD check --install=check:QDNAseq.install-out.txt --library=/Library/Frameworks/R.framework/Resources/library --no-vignettes --timings QDNAseq_1.42.0.tar.gz
###
##############################################################################
##############################################################################


* using log directory ‘/Users/biocbuild/bbs-3.20-bioc/meat/QDNAseq.Rcheck’
* using R version 4.4.1 (2024-06-14)
* using platform: x86_64-apple-darwin20
* R was compiled by
    Apple clang version 14.0.0 (clang-1400.0.29.202)
    GNU Fortran (GCC) 12.2.0
* running under: macOS Monterey 12.7.6
* using session charset: UTF-8
* using option ‘--no-vignettes’
* checking for file ‘QDNAseq/DESCRIPTION’ ... OK
* this is package ‘QDNAseq’ version ‘1.42.0’
* checking package namespace information ... OK
* checking package dependencies ...Warning: unable to access index for repository https://CRAN.R-project.org/src/contrib:
  cannot open URL 'https://CRAN.R-project.org/src/contrib/PACKAGES'
 OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘QDNAseq’ can be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking ‘build’ directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking code files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking contents of ‘data’ directory ... OK
* checking data for non-ASCII characters ... OK
* checking data for ASCII and uncompressed saves ... OK
* checking sizes of PDF files under ‘inst/doc’ ... OK
* checking files in ‘vignettes’ ... OK
* checking examples ... OK
Examples with CPU (user + system) or elapsed time > 5s
                user system elapsed
callBins      12.592  0.218  12.864
frequencyPlot 12.196  0.169  12.385
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ...
  Running ‘QDNAseq,copyneutral.R’
  Running ‘QDNAseq,gain-copyneutral-gain.R’
  Running ‘QDNAseq,parallel-reproducibility.R’
  Running ‘QDNAseq.R’
  Running ‘binReadCounts.R’
  Running ‘poolRuns.R’
 OK
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking running R code from vignettes ... SKIPPED
* checking re-building of vignette outputs ... SKIPPED
* checking PDF version of manual ... OK
* DONE

Status: OK


Installation output

QDNAseq.Rcheck/00install.out

##############################################################################
##############################################################################
###
### Running command:
###
###   /Library/Frameworks/R.framework/Resources/bin/R CMD INSTALL QDNAseq
###
##############################################################################
##############################################################################


* installing to library ‘/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library’
* installing *source* package ‘QDNAseq’ ...
** using staged installation
** R
** data
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (QDNAseq)

Tests output

QDNAseq.Rcheck/tests/binReadCounts.Rout


R version 4.4.1 (2024-06-14) -- "Race for Your Life"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin20

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(QDNAseq)
> 
> if (requireNamespace("QDNAseq.hg19", quietly = TRUE)) {
+   bins <- getBinAnnotations(500, genome = "hg19")
+   print(bins)
+ 
+   bam <- system.file("extdata", "ex1.bam", package = "Rsamtools")
+   print(bam)
+ 
+   counts <- binReadCounts(bins, bamfiles = bam)
+   print(counts)
+ 
+   ## BUG: https://github.com/ccagc/QDNAseq/issues/89
+   counts2 <- binReadCounts(bins, bamfiles = bam, chunkSize = 10e3)
+   print(counts2)
+ }
Loaded bin annotations for genome 'hg19', bin size 500 kbp, and experiment type 'SR50' from annotation package QDNAseq.hg19 v1.36.0
QDNAseq bin annotations for Hsapiens, build hg19.
Created by Ilari Scheinin with QDNAseq 0.7.5, 2014-02-06 09:20:46.041402.
An object of class 'AnnotatedDataFrame'
  rowNames: 1:1-500000 1:500001-1000000 ... Y:59000001-59373566 (6206
    total)
  varLabels: chromosome start ... use (9 total)
  varMetadata: labelDescription
[1] "/Library/Frameworks/R.framework/Versions/4.4-x86_64/Resources/library/Rsamtools/extdata/ex1.bam"
    ex1 (1 of 1): extracting reads ... binning ...
QDNAseqReadCounts (storageMode: lockedEnvironment)
assayData: 6206 features, 1 samples 
  element names: counts 
protocolData: none
phenoData
  sampleNames: ex1
  varLabels: name total.reads used.reads expected.variance
  varMetadata: labelDescription
featureData
  featureNames: 1:1-500000 1:500001-1000000 ... Y:59000001-59373566
    (6206 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
    ex1 (1 of 1): extracting reads ...
binning chunk - seq1:1:10001
binning chunk - seq2:1:10001

QDNAseqReadCounts (storageMode: lockedEnvironment)
assayData: 6206 features, 1 samples 
  element names: counts 
protocolData: none
phenoData
  sampleNames: ex1
  varLabels: name total.reads used.reads expected.variance
  varMetadata: labelDescription
featureData
  featureNames: 1:1-500000 1:500001-1000000 ... Y:59000001-59373566
    (6206 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> 
> 
> proc.time()
   user  system elapsed 
  4.895   0.283   5.523 

QDNAseq.Rcheck/tests/poolRuns.Rout


R version 4.4.1 (2024-06-14) -- "Race for Your Life"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin20

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(QDNAseq)
> library(Biobase)  ## sampleNames()
Loading required package: BiocGenerics

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, aperm, append,
    as.data.frame, basename, cbind, colnames, dirname, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
    pmin.int, rank, rbind, rownames, sapply, saveRDS, setdiff, table,
    tapply, union, unique, unsplit, which.max, which.min

Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

> 
> data(LGG150)
> 
> message("poolRuns(LGG150) ...")
poolRuns(LGG150) ...
> pooledReadCounts <- poolRuns(LGG150, samples = sampleNames(LGG150))
> print(pooledReadCounts)
QDNAseqReadCounts (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: counts 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads used.reads expected.variance
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> message("poolRuns(LGG150) ... done")
poolRuns(LGG150) ... done
> 
> 
> message("Create fake data set with two samples ...")
Create fake data set with two samples ...
> phenodata <- phenoData(LGG150)
> phenodata@data <- rbind(phenodata@data, phenodata@data)
> 
> counts <- assayDataElement(LGG150, "counts")
> counts2 <- cbind(counts, counts)
> colnames(counts2) <- sampleNames(phenodata)
> 
> x <- new("QDNAseqReadCounts", bins = featureData(LGG150), phenodata = phenodata, counts = counts2)
> print(x)
QDNAseqReadCounts (storageMode: lockedEnvironment)
assayData: 38819 features, 2 samples 
  element names: counts 
protocolData: none
phenoData
  sampleNames: LGG150 LGG1501
  varLabels: name reads used.reads expected.variance
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> message("Create fake data set with two samples ... done")
Create fake data set with two samples ... done
> 
> message("poolRuns(LGG150set) ...")
poolRuns(LGG150set) ...
> x_pool <- poolRuns(x, samples = sampleNames(x))
> print(x_pool)
QDNAseqReadCounts (storageMode: lockedEnvironment)
assayData: 38819 features, 2 samples 
  element names: counts 
protocolData: none
phenoData
  sampleNames: LGG150 LGG1501
  varLabels: name reads used.reads expected.variance
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> message("poolRuns(LGG150set) - pooled ...")
poolRuns(LGG150set) - pooled ...
> ## BUG #112 (https://github.com/ccagc/QDNAseq/issues/112)
> x_pool <- poolRuns(x, samples = rep("pooled", times = 2L))
> print(x_pool)
QDNAseqReadCounts (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: counts 
protocolData: none
phenoData
  sampleNames: pooled
  varLabels: name reads ... total.reads (5 total)
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> message("poolRuns(LGG150set) ... done")
poolRuns(LGG150set) ... done
> 
> proc.time()
   user  system elapsed 
  3.594   0.245   3.847 

QDNAseq.Rcheck/tests/QDNAseq,copyneutral.Rout


R version 4.4.1 (2024-06-14) -- "Race for Your Life"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin20

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(QDNAseq)
> library(Biobase)
Loading required package: BiocGenerics

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, aperm, append,
    as.data.frame, basename, cbind, colnames, dirname, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
    pmin.int, rank, rbind, rownames, sapply, saveRDS, setdiff, table,
    tapply, union, unique, unsplit, which.max, which.min

Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

> set.seed(0xBEEF)
> 
> data(LGG150)
> data <- LGG150
> print(data)
QDNAseqReadCounts (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: counts 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads used.reads expected.variance
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> dataF <- applyFilters(data, residual=TRUE, blacklist=TRUE)
38,819	total bins
38,819	of which in selected chromosomes
36,722	of which with reference sequence
33,347	final bins
> print(dataF)
QDNAseqReadCounts (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: counts 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads used.reads expected.variance
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> dataC <- correctBins(dataF)
Calculating correction for GC content and mappability
    Calculating fit for sample LGG150 (1 of 1) ...
Done.
> 
> ## Force all copy neutral data
> cn <- assayDataElement(dataC, "copynumber")
> cn[,1] <- rnorm(nrow(cn), mean = 1.0, sd = 0.05)
> assayDataElement(dataC, "copynumber") <- cn
> 
> print(dataC)
QDNAseqCopyNumbers (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: copynumber 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads ... loess.family (6 total)
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> dataN <- normalizeBins(dataC)
Applying median normalization ...
> print(dataN)
QDNAseqCopyNumbers (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: copynumber 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads ... loess.family (6 total)
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> fit <- segmentBins(dataN)
Performing segmentation:
    Segmenting: LGG150 (1 of 1) ...
> print(fit)
QDNAseqCopyNumbers (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: copynumber, segmented 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads ... loess.family (6 total)
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> fitC <- callBins(fit)
EM algorithm started ... 

[1] "Total number of segments present in the data: 4"
[1] "Number of segments used for fitting the model: 4"
38968388033738208.261.3789600015702310421.7119.8NA98304789600010782159421.782.3
Calling iteration1:

optim results
time: 0
minimum: 16682.0890247004
116682.0890247004-0.825303675797091-0.323169506423803-0.001754401929814960.2970863141060160.5078724084702190.9928769615298530.1100346090918040.0003692713871108020.0111811691191362-0.0001065348234756080.1102701734224670.145866377811007
38983438037159208.261.4789600015702310421.7119.8NA98304789600010782159421.782.3
Calling iteration2:

optim results
time: 0
minimum: 16682.0888522346
116682.0888522346-0.816384144994661-0.31848916294222-0.00167850977268490.292952991143050.5008064461942260.9819310567480430.1311557982956840.0002223141320088620.01118096583020170.0001872099918784220.1313921659017140.175722206269368
EM algorithm done ...

Computing posterior probabilities for all segments ...

Total time:0minutes

Adjusting segmented data for cellularity ... 

Cellularity sample1: 1

Adjusting normalized data for cellularity ... 

Cellularity sample1: 1

1
39010118258913208.463.1789600015702310421.7119.8NA98304789600010782159421.782.3
39010308425659208.464.3789600015702310421.7119.8NA98304789600010782159421.782.3
39010278425653208.464.3789600015702310421.7119.8NA98304789600010782159421.782.3
39010558692433208.466.4789600015702310421.7119.8NA98304789600010782159421.782.3
39014728693367208.466.4789600015702310421.7119.8NA98304789600010782159421.782.3
39014818693371208.466.4789600015702310421.7119.8NA98304789600010782159421.782.3
39014908693375208.466.4789600015702310421.7119.8NA98304789600010782159421.782.3
39014998693379208.466.4789600015702310421.7119.8NA98304789600010782159421.782.3
39015088693383208.466.4789600015702310421.7119.8NA98304789600010782159421.782.3
39015148693386208.466.4789600015702310421.7119.8NA98304789600010782159421.782.3
39015338760116208.466.9789600015702310421.7119.8NA98304789600010782159421.782.3
39019508760496208.466.9789600015702310421.7119.8NA98304789600010782159421.782.3
FINISHED!

Total time:0minutes

There were 24 warnings (use warnings() to see them)
> print(fitC)
QDNAseqCopyNumbers (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: calls, copynumber, probamp, probdloss, probgain, probloss, probnorm, segmented 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads ... loess.family (6 total)
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> 
> ## Assert that everything is called copy-neutral
> calls <- assayDataElement(fitC, "calls")
> stopifnot(all(is.na(calls) | calls == 0))
> 
> formats <- c("tsv", "igv", "bed", "seg", "vcf")
> types <- c("copynumber", "segments", "calls")
> for (format in formats) {
+   for (type in types) {
+     fileext <- sprintf(".%s.%s", type, format)
+     file <- tempfile(pattern =  "QDNAseq-%s", fileext = fileext)
+     message(sprintf("  - exportBins(<%d samples>, format=\"%s\", type=\"%s\")", ncol(fitC), format, type))
+     file <- exportBins(fitC, format = format, type = type, file = file)
+     message(sprintf("    File(s) written: [n=%d] %s",
+             length(file), paste(sQuote(file), collapse = ", ")))
+     stopifnot(all(file_test("-f", file)))
+     if (format == "seg") {
+       segs <- read.table(file, sep = "\t", header = TRUE)
+       print(segs)
+       stopifnot(nrow(segs) == 0L)
+     } else if (format == "vcf") {
+       rows <- readLines(file)
+       rows <- grep("^#", rows, invert = TRUE, value = TRUE)
+       print(rows)
+       stopifnot(length(rows) == 0L)
+     }
+     file.remove(file)
+     stopifnot(!any(file_test("-f", file)))
+   }
+ }
  - exportBins(<1 samples>, format="tsv", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-%s55ea7a01dc03.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-%s55ea10138789.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="calls")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-%s55ea72273b9d.calls.tsv'
  - exportBins(<1 samples>, format="igv", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-%s55ea6dbafaf7.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="segments")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-%s55eaeb2a669.segments.igv'
  - exportBins(<1 samples>, format="igv", type="calls")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-%s55ea72cb3f08.calls.igv'
  - exportBins(<1 samples>, format="bed", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-LGG15055ea7d976118.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="segments")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-LGG15055ea5d67af12.segments.bed'
  - exportBins(<1 samples>, format="bed", type="calls")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-LGG15055ea4216f6a6.calls.bed'
  - exportBins(<1 samples>, format="seg", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-LGG15055ea719b2e2f.copynumber.seg'
[1] SAMPLE_NAME     CHROMOSOME      START           STOP           
[5] DATAPOINTS      LOG2_RATIO_MEAN
<0 rows> (or 0-length row.names)
  - exportBins(<1 samples>, format="seg", type="segments")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-LGG15055ea2f549ee.segments.seg'
[1] SAMPLE_NAME     CHROMOSOME      START           STOP           
[5] DATAPOINTS      LOG2_RATIO_MEAN
<0 rows> (or 0-length row.names)
  - exportBins(<1 samples>, format="seg", type="calls")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-LGG15055ea35c8a9c6.calls.seg'
[1] SAMPLE_NAME     CHROMOSOME      START           STOP           
[5] DATAPOINTS      LOG2_RATIO_MEAN
<0 rows> (or 0-length row.names)
  - exportBins(<1 samples>, format="vcf", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-LGG15055ea90221c0.copynumber.vcf'
character(0)
  - exportBins(<1 samples>, format="vcf", type="segments")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-LGG15055ea6af5c8de.segments.vcf'
character(0)
  - exportBins(<1 samples>, format="vcf", type="calls")
    File(s) written: [n=1] '/tmp/RtmpvpKq0X/QDNAseq-LGG15055ea2e569dae.calls.vcf'
character(0)
> 
> proc.time()
   user  system elapsed 
 14.733   0.532  15.652 

QDNAseq.Rcheck/tests/QDNAseq,gain-copyneutral-gain.Rout


R version 4.4.1 (2024-06-14) -- "Race for Your Life"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin20

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(QDNAseq)
> library(Biobase)
Loading required package: BiocGenerics

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, aperm, append,
    as.data.frame, basename, cbind, colnames, dirname, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
    pmin.int, rank, rbind, rownames, sapply, saveRDS, setdiff, table,
    tapply, union, unique, unsplit, which.max, which.min

Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

> library(utils)
> set.seed(0xBEEF)
> 
> data(LGG150)
> data <- LGG150
> print(data)
QDNAseqReadCounts (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: counts 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads used.reads expected.variance
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> dataF <- applyFilters(data, residual=TRUE, blacklist=TRUE)
38,819	total bins
38,819	of which in selected chromosomes
36,722	of which with reference sequence
33,347	final bins
> print(dataF)
QDNAseqReadCounts (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: counts 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads used.reads expected.variance
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> dataC <- correctBins(dataF)
Calculating correction for GC content and mappability
    Calculating fit for sample LGG150 (1 of 1) ...
Done.
> 
> ## Force results to have segments gain, copy neutral, and gain.
> cnAll <- assayDataElement(dataC, "copynumber")
> cnAll[,1] <- rnorm(nrow(cnAll), mean = 1.0, sd = 0.05)
> chr7 <- (chromosomes(dataC) == "7")
> cn <- cnAll[chr7, , drop = FALSE]
> n <- nrow(cn)
> idxs <- seq(from=1/3*n - 0.1*n, to=1/3*n + 0.1*n)
> cn[idxs,1] <- rnorm(length(idxs), mean = 2.0, sd = 0.05)
> idxs <- seq(from=2/3*n - 0.1*n, to=2/3*n + 0.1*n)
> cn[idxs,1] <- rnorm(length(idxs), mean = 2.0, sd = 0.05)
> cnAll[chr7, ] <- cn
> assayDataElement(dataC, "copynumber") <- cnAll
> print(dataC)
QDNAseqCopyNumbers (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: copynumber 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads ... loess.family (6 total)
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> dataN <- normalizeBins(dataC)
Applying median normalization ...
> print(dataN)
QDNAseqCopyNumbers (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: copynumber 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads ... loess.family (6 total)
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> fit <- segmentBins(dataN)
Performing segmentation:
    Segmenting: LGG150 (1 of 1) ...
> print(fit)
QDNAseqCopyNumbers (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: copynumber, segmented 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads ... loess.family (6 total)
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> fitC <- callBins(fit)
EM algorithm started ... 

[1] "Total number of segments present in the data: 8"
[1] "Number of segments used for fitting the model: 8"
38971488077317208.261.7789600015702310421.7119.8NA98304789600010782127421.782.3
Calling iteration1:

optim results
time: 0
minimum: 16691.936015802
116691.936015802-0.76889026698241-0.310183146024425-0.01185150972096230.2885943760685340.4933553445096880.9879385470392230.0299884700901994-0.0005485736219481460.0111821966975442-4.08995447325668e-050.01000052582656670.0100005260086061
EM algorithm done ...

Computing posterior probabilities for all segments ...

Total time:0minutes

Adjusting segmented data for cellularity ... 

Cellularity sample1: 1

Adjusting normalized data for cellularity ... 

Cellularity sample1: 1

1
39013218302300208.463.4789600015702310421.7119.8NA98304789600010818960421.782.6
39013408469046208.464.7789600015702310421.7119.8NA98304789600010818960421.782.6
39013378469040208.464.7789600015702310421.7119.8NA98304789600010818960421.782.6
39013658737570208.466.7789600015702310421.7119.8NA98304789600010818960421.782.6
39017828738504208.466.7789600015702310421.7119.8NA98304789600010818960421.782.6
39017918738508208.466.7789600015702310421.7119.8NA98304789600010818960421.782.6
39018008738512208.466.7789600015702310421.7119.8NA98304789600010818960421.782.6
39018098738516208.466.7789600015702310421.7119.8NA98304789600010818960421.782.6
39018188738520208.466.7789600015702310421.7119.8NA98304789600010818960421.782.6
39018248738523208.466.7789600015702310421.7119.8NA98304789600010818960421.782.6
39018438805253208.467.2789600015702310421.7119.8NA98304789600010818960421.782.6
39022608805633208.567.2789600015702310421.7119.8NA98304789600010818960421.782.6
FINISHED!

Total time:0minutes

There were 32 warnings (use warnings() to see them)
> print(fitC)
QDNAseqCopyNumbers (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: calls, copynumber, probamp, probdloss, probgain, probloss, probnorm, segmented 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads ... loess.family (6 total)
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> 
> ## Assert that everything is called copy-neutral
> calls <- assayDataElement(fitC, "calls")
> stopifnot(all(is.na(calls) | calls %in% c(0, 2)))
> 
> formats <- c("tsv", "igv", "bed", "seg", "vcf")
> types <- c("copynumber", "segments", "calls")
> for (format in formats) {
+   for (type in types) {
+     fileext <- sprintf(".%s.%s", type, format)
+     file <- tempfile(pattern =  "QDNAseq-%s", fileext = fileext)
+     message(sprintf("  - exportBins(<%d samples>, format=\"%s\", type=\"%s\")", ncol(fitC), format, type))
+     file <- exportBins(fitC, format = format, type = type, file = file)
+     message(sprintf("    File(s) written: [n=%d] %s",
+             length(file), paste(sQuote(file), collapse = ", ")))
+     stopifnot(all(file_test("-f", file)))
+ 
+     if (format == "seg") {
+       segs <- read.table(file, sep = "\t", header = TRUE)
+       print(segs)
+       stopifnot(all(segs$CHROMOSOME == "7"), nrow(segs) == 2L)
+     } else if (format == "vcf") {
+       segs <- read.table(file, sep = "\t", header = FALSE)
+       print(segs)
+       stopifnot(all(segs$V1 == "7"), nrow(segs) == 2L)
+     }
+ 
+     file.remove(file)
+     stopifnot(!any(file_test("-f", file)))
+   }
+ }
  - exportBins(<1 samples>, format="tsv", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-%s58186431a762.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-%s581877e44651.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="calls")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-%s58182bc4ad55.calls.tsv'
  - exportBins(<1 samples>, format="igv", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-%s58187d4fbde5.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="segments")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-%s58187e3c45a8.segments.igv'
  - exportBins(<1 samples>, format="igv", type="calls")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-%s581827015957.calls.igv'
  - exportBins(<1 samples>, format="bed", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-LGG1505818499072c2.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="segments")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-LGG15058182a5e4449.segments.bed'
  - exportBins(<1 samples>, format="bed", type="calls")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-LGG150581812d52a5a.calls.bed'
  - exportBins(<1 samples>, format="seg", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-LGG150581868cf845e.copynumber.seg'
                                                SAMPLE_NAME CHROMOSOME    START
1 /tmp/RtmpOyHI09/QDNAseq-LGG150581868cf845e.copynumber.seg          7 37110001
2 /tmp/RtmpOyHI09/QDNAseq-LGG150581868cf845e.copynumber.seg          7 90165001
       STOP DATAPOINTS LOG2_RATIO_MEAN
1  68955000       1487            0.99
2 122010000       2012            0.99
  - exportBins(<1 samples>, format="seg", type="segments")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-LGG1505818ffb6d14.segments.seg'
                                             SAMPLE_NAME CHROMOSOME    START
1 /tmp/RtmpOyHI09/QDNAseq-LGG1505818ffb6d14.segments.seg          7 37110001
2 /tmp/RtmpOyHI09/QDNAseq-LGG1505818ffb6d14.segments.seg          7 90165001
       STOP DATAPOINTS LOG2_RATIO_MEAN
1  68955000       1487            0.99
2 122010000       2012            0.99
  - exportBins(<1 samples>, format="seg", type="calls")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-LGG150581843b6443e.calls.seg'
                                           SAMPLE_NAME CHROMOSOME    START
1 /tmp/RtmpOyHI09/QDNAseq-LGG150581843b6443e.calls.seg          7 37110001
2 /tmp/RtmpOyHI09/QDNAseq-LGG150581843b6443e.calls.seg          7 90165001
       STOP DATAPOINTS LOG2_RATIO_MEAN
1  68955000       1487            0.99
2 122010000       2012            0.99
  - exportBins(<1 samples>, format="vcf", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-LGG1505818733a652c.copynumber.vcf'
  V1       V2 V3    V4    V5   V6   V7
1  7 37110001  . <DIP> <DUP> 1000 PASS
2  7 90165001  . <DIP> <DUP> 1000 PASS
                                                                      V8 V9 V10
1  SVTYPE=DUP;END=68955000;SVLEN=31845000;BINS=1487;SCORE=2;LOG2CNT=0.99 GT 0/1
2 SVTYPE=DUP;END=122010000;SVLEN=31845000;BINS=2012;SCORE=2;LOG2CNT=0.99 GT 0/1
  - exportBins(<1 samples>, format="vcf", type="segments")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-LGG15058187ec866cd.segments.vcf'
  V1       V2 V3    V4    V5   V6   V7
1  7 37110001  . <DIP> <DUP> 1000 PASS
2  7 90165001  . <DIP> <DUP> 1000 PASS
                                                                      V8 V9 V10
1  SVTYPE=DUP;END=68955000;SVLEN=31845000;BINS=1487;SCORE=2;LOG2CNT=0.99 GT 0/1
2 SVTYPE=DUP;END=122010000;SVLEN=31845000;BINS=2012;SCORE=2;LOG2CNT=0.99 GT 0/1
  - exportBins(<1 samples>, format="vcf", type="calls")
    File(s) written: [n=1] '/tmp/RtmpOyHI09/QDNAseq-LGG150581816d55dc2.calls.vcf'
  V1       V2 V3    V4    V5   V6   V7
1  7 37110001  . <DIP> <DUP> 1000 PASS
2  7 90165001  . <DIP> <DUP> 1000 PASS
                                                                      V8 V9 V10
1  SVTYPE=DUP;END=68955000;SVLEN=31845000;BINS=1487;SCORE=2;LOG2CNT=0.99 GT 0/1
2 SVTYPE=DUP;END=122010000;SVLEN=31845000;BINS=2012;SCORE=2;LOG2CNT=0.99 GT 0/1
> 
> proc.time()
   user  system elapsed 
 15.439   0.566  16.535 

QDNAseq.Rcheck/tests/QDNAseq,parallel-reproducibility.Rout


R version 4.4.1 (2024-06-14) -- "Race for Your Life"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin20

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> ######################################################################
> # This scripts asserts that for each processing step of QDNAseq
> # the output/results are reproducible (numerically equal).
> ######################################################################
> library("QDNAseq")
> options("QDNAseq::verbose"=FALSE)
> 
> # Load data
> data(LGG150)
> data <- LGG150
> 
> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> # TRUTH
> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> # Filter out "bad" bins
> dataF <- applyFilters(data, residual=TRUE, blacklist=TRUE)
> 
> # Correct read counts as a function of GC content and mappability
> dataC <- correctBins(dataF)
> 
> # Normalize binned read counts to have diploid normal copy number
> dataN <- normalizeBins(dataC)
> 
> # Segment copy numbers
> set.seed(42)  ## segmentBins() relies on RNG via DNAcopy::segment()
> fit <- segmentBins(dataN)
> 
> # Call copy-number segments
> fitC <- callBins(fit)
There were 50 or more warnings (use warnings() to see the first 50)
> 
> 
> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> # REPRODUCIBILITY
> # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> strategies <- c("sequential", "multisession")
> if (parallelly::supportsMulticore()) strategies <- c(strategies, "multicore")
> 
> oplan <- future::plan("list")
> for (strategy in strategies) {
+   message(sprintf("Reproducibility with plan(\"%s\") ...", strategy))
+   
+   future::plan(strategy)
+   
+   dataFr <- applyFilters(data, residual=TRUE, blacklist=TRUE)
+   stopifnot(all.equal(dataFr, dataF))
+   
+   dataCr <- correctBins(dataF)
+   stopifnot(all.equal(dataCr, dataC))
+   
+   dataNr <- normalizeBins(dataC)
+   stopifnot(all.equal(dataNr, dataN))
+   
+   set.seed(42)  ## segmentBins() relies on RNG via DNAcopy::segment()
+   fitr <- segmentBins(dataNr)
+   stopifnot(all.equal(fitr, fit))
+   
+   fitCr <- callBins(fitr)
+   stopifnot(all.equal(fitCr, fitC))
+   
+   message(sprintf("Reproducibility with plan(\"%s\") ... done", strategy))
+ }
Reproducibility with plan("sequential") ...
Reproducibility with plan("sequential") ... done
Reproducibility with plan("multisession") ...
    Calculating fit for sample LGG150 (1 of 1) ...
    Segmenting: LGG150 (1 of 1) ...
Reproducibility with plan("multisession") ... done
Reproducibility with plan("multicore") ...
Reproducibility with plan("multicore") ... done
There were 50 or more warnings (use warnings() to see the first 50)
> 
> future::plan(oplan)
> 
> proc.time()
   user  system elapsed 
 50.284   1.322  58.389 

QDNAseq.Rcheck/tests/QDNAseq.Rout


R version 4.4.1 (2024-06-14) -- "Race for Your Life"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin20

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(QDNAseq)
> library(Biobase) ## combine(), sampleNames()
Loading required package: BiocGenerics

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, aperm, append,
    as.data.frame, basename, cbind, colnames, dirname, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, mapply, match, mget, order, paste, pmax, pmax.int, pmin,
    pmin.int, rank, rbind, rownames, sapply, saveRDS, setdiff, table,
    tapply, union, unique, unsplit, which.max, which.min

Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

> library(utils)
> 
> do_plot <- TRUE
> do_cleanup <- TRUE
> 
> # Load data
> data(LGG150)
> data <- LGG150
> print(data)
QDNAseqReadCounts (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: counts 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads used.reads expected.variance
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> stopifnot(inherits(data, "QDNAseqReadCounts"))
> 
> # Plot isobars of read counts
> if (do_plot) isobarPlot(data)
Plotting sample LGG150 median read counts
> 
> # Plot copy number profile
> if (do_plot) {
+   plot(data, ylim=c(-100, 200))
+   highlightFilters(data, residual=TRUE, blacklist=TRUE)
+ }
Plotting sample LGG150 (1 of 1) ...
Highlighted 3,375 bins.
> 
> # Filter out "bad" bins
> dataF <- applyFilters(data, residual=TRUE, blacklist=TRUE)
38,819	total bins
38,819	of which in selected chromosomes
36,722	of which with reference sequence
33,347	final bins
> print(dataF)
QDNAseqReadCounts (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: counts 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads used.reads expected.variance
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> if (do_plot) plot(dataF, ylim=c(-100, 200))
Plotting sample LGG150 (1 of 1) ...
> stopifnot(inherits(dataF, "QDNAseqReadCounts"))
> 
> # Correct read counts as a function of GC content and mappability
> dataC <- correctBins(dataF)
Calculating correction for GC content and mappability
    Calculating fit for sample LGG150 (1 of 1) ...
Done.
> print(dataC)
QDNAseqCopyNumbers (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: copynumber 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads ... loess.family (6 total)
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> if (do_plot) plot(dataC, ylim=c(-100, 200))
Plotting sample LGG150 (1 of 1) ...
> stopifnot(inherits(dataC, "QDNAseqCopyNumbers"))
> 
> # Normalize binned read counts to have diploid normal copy number
> dataN <- normalizeBins(dataC)
Applying median normalization ...
> print(dataN)
QDNAseqCopyNumbers (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: copynumber 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads ... loess.family (6 total)
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> if (do_plot) plot(dataN)
Plotting sample LGG150 (1 of 1) ...
> stopifnot(inherits(dataN, "QDNAseqCopyNumbers"))
> 
> # Plot noise
> if (do_plot) noisePlot(dataF)
Calculating correction for GC content and mappability
    Calculating fit for sample LGG150 (1 of 1) ...
Done.
> 
> # Segment copy numbers
> fit <- segmentBins(dataN)
Performing segmentation:
    Segmenting: LGG150 (1 of 1) ...
> print(fit)
QDNAseqCopyNumbers (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: copynumber, segmented 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads ... loess.family (6 total)
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> if (do_plot) plot(fit)
Plotting sample LGG150 (1 of 1) ...
> stopifnot(inherits(fit, "QDNAseqCopyNumbers"))
> 
> # Call copy-number segments
> fitC <- callBins(fit)
EM algorithm started ... 

[1] "Total number of segments present in the data: 10"
[1] "Number of segments used for fitting the model: 9"
39112528040636208.961.4770627115292324411.6116.7NA98304770627112676921411.696.8
Calling iteration1:

optim results
time: 0
minimum: 16445.6418287481
116443.1634295677-0.939948404909664-0.5351158716347120.04999922851584940.1357341814220170.2320391157632851.492692224927890.46336036623653-0.0007447487965535120.0111894143724591-0.000962583906213420.3145629342085070.798554843389167
3912757804408720961.4770627115292324411.6116.7NA98304770627112676921411.696.8
Calling iteration2:

optim results
time: 0
minimum: 16445.5781374328
116443.1331012469-0.932876677515083-0.535943303880990.0499979048415910.1114729434735370.1905642555481931.861013902305770.4314700360573740.0001440687684080910.01118427659401560.0007568920162792620.2061088124299370.874022351578009
3912756804408620961.4770627115292324411.6116.7NA98304770627112676921411.696.8
Calling iteration3:

optim results
time: 0
minimum: 16445.5975371627
116443.1273697069-0.924012853099601-0.5365177469718870.04999923288882760.108573194240180.1856071014916831.753751992204390.4694950401327692.93313204145295e-050.0111878614439676-0.0001759851682342870.07360543573369820.943675664015282
EM algorithm done ...

Computing posterior probabilities for all segments ...

Total time:0minutes

Adjusting segmented data for cellularity ... 

Cellularity sample1: 1

Adjusting normalized data for cellularity ... 

Cellularity sample1: 1

1
39154258265321209.263.1770627115292324411.6116.7NA98304770627112676921411.696.8
39154448432067209.264.4770627115292324411.6116.7NA98304770627112676921411.696.8
39154418432061209.264.4770627115292324411.6116.7NA98304770627112676921411.696.8
39154698699076209.266.4770627115292324411.6116.7NA98304770627112676921411.696.8
39158868700010209.266.4770627115292324411.6116.7NA98304770627112676921411.696.8
39158958700014209.266.4770627115292324411.6116.7NA98304770627112676921411.696.8
39159048700018209.266.4770627115292324411.6116.7NA98304770627112676921411.696.8
39159138700022209.266.4770627115292324411.6116.7NA98304770627112676921411.696.8
39159228700026209.266.4770627115292324411.6116.7NA98304770627112676921411.696.8
39159288700029209.266.4770627115292324411.6116.7NA98304770627112676921411.696.8
39159478766759209.266.9770627115292324411.6116.7NA98304770627112676921411.696.8
39163648767139209.266.9770627115292324411.6116.7NA98304770627112676921411.696.8
FINISHED!

Total time:0minutes

There were 50 or more warnings (use warnings() to see the first 50)
> print(fitC)
QDNAseqCopyNumbers (storageMode: lockedEnvironment)
assayData: 38819 features, 1 samples 
  element names: calls, copynumber, probamp, probdloss, probgain, probloss, probnorm, segmented 
protocolData: none
phenoData
  sampleNames: LGG150
  varLabels: name reads ... loess.family (6 total)
  varMetadata: labelDescription
featureData
  featureNames: 7:1-15000 7:15001-30000 ... 10:135525001-135534747
    (38819 total)
  fvarLabels: chromosome start ... use (9 total)
  fvarMetadata: labelDescription
experimentData: use 'experimentData(object)'
Annotation:  
> if (do_plot) plot(fitC)
Plotting sample LGG150 (1 of 1) ...
> 
> 
> # ---------------------------------------------------------------
> # Exporting
> # ---------------------------------------------------------------
> message("* exportBins() ...")
* exportBins() ...
> 
> sets <- list(data = data, dataC = dataC, fit = fit, fitC = fitC)
> for (name in names(sets)) {
+   set <- sets[[name]]
+   formats <- c("tsv", "igv", "bed")
+   if (name == "fitC") formats <- c(formats, "vcf", "seg")
+   for (format in formats) {
+     types <- c("copynumber")
+     if (name %in% c("fit", "fitC")) types <- c(types, "segments")
+     if (name == "fitC") types <- c(types, "calls")
+     for (type in types) {
+       fileext <- sprintf(".%s.%s", type, format)
+       templates <- c("QDNAseq-%s.", "QDNAseq-%i.", "QDNAseq-%03i.")
+       if (ncol(set) == 1L || !(format %in% c("bed", "seg", "vcf"))) {
+         templates <- c("QDNAseq.", templates)
+       }
+       for (template in templates) {
+         file <- tempfile(pattern = template, fileext = fileext)
+         message(sprintf("  - exportBins(<%d samples>, format=\"%s\", type=\"%s\", file=\"%s\")", ncol(set), format, type, template))
+         file <- exportBins(set, file = file, format = format, type = type)
+         message(sprintf("    File(s) written: [n=%d] %s",
+                 length(file), paste(sQuote(file), collapse = ", ")))
+         stopifnot(all(file_test("-f", file)))
+         if (do_cleanup) {
+ 	  file.remove(file)
+           stopifnot(!any(file_test("-f", file)))
+ 	}
+       }
+     }
+   }
+ }
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69696fad9965.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.69696e31ef2a.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.6969104ce6eb.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.696928cc56a9.copynumber.tsv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69697f4d862b.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.69693aa3b258.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.69695111cd7b.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.696967c96fd1.copynumber.igv'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.696959cc3792.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-LGG150.69696e54804c.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-1.69696db3362a.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-001.696910a937aa.copynumber.bed'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.696955858271.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.69693036f494.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.696967f33946.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.6969113557fb.copynumber.tsv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.696945232890.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.696973c2966.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.69697ec1eb3f.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69696d3bb61c.copynumber.igv'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69696b31204a.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-LGG150.6969663f1140.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-1.69693685b531.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-001.696943abfee.copynumber.bed'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69692d0ea46d.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.69691c4d0737.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.6969514ba65.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.696913d93f7e.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69691bd77360.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.69695dd7b1e7.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.69697be0e4d2.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.696969ced687.segments.tsv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.6969a666f56.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.69694b177c6f.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.696972ea81ec.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69691f7e7e5.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69693a996c65.segments.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.69692e9b78f1.segments.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.696961212e1e.segments.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.6969495ae563.segments.igv'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69696e89ec34.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-LGG150.696920f2829e.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-1.6969115d63f8.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-001.6969a4e37b0.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.6969152a0919.segments.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-LGG150.69697abb5329.segments.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-1.69692050e7b2.segments.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-001.69691f9b67b1.segments.bed'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.696913b4a5ad.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.696938e90af6.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.69694bceb9aa.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.696970ff6ec7.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.696911c204c6.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.696958c76c45.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.6969c95538c.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69691fa012c8.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="calls", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.6969463118b0.calls.tsv'
  - exportBins(<1 samples>, format="tsv", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.6969414beed0.calls.tsv'
  - exportBins(<1 samples>, format="tsv", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.6969602bbb2d.calls.tsv'
  - exportBins(<1 samples>, format="tsv", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.6969570db8ae.calls.tsv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.696945d7d428.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.69695ca9b1ea.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.69698dfa92d.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.696913dbcde8.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.696943ab4487.segments.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.696921201dc6.segments.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.69694382c327.segments.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69693dda5811.segments.igv'
  - exportBins(<1 samples>, format="igv", type="calls", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.696949cbe3d0.calls.igv'
  - exportBins(<1 samples>, format="igv", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.696968d99289.calls.igv'
  - exportBins(<1 samples>, format="igv", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.696924239626.calls.igv'
  - exportBins(<1 samples>, format="igv", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69691c56ab53.calls.igv'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69697e09e4ad.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-LGG150.69693b845a80.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-1.69696e51a806.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-001.696932ee5a7f.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69693e7761f8.segments.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-LGG150.6969fc100d2.segments.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-1.6969481ce312.segments.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-001.6969607fd7ba.segments.bed'
  - exportBins(<1 samples>, format="bed", type="calls", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.6969692c25d4.calls.bed'
  - exportBins(<1 samples>, format="bed", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-LGG150.69695167b73d.calls.bed'
  - exportBins(<1 samples>, format="bed", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-1.6969702f2f8b.calls.bed'
  - exportBins(<1 samples>, format="bed", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-001.696929da8837.calls.bed'
  - exportBins(<1 samples>, format="vcf", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69694a24e858.copynumber.vcf'
  - exportBins(<1 samples>, format="vcf", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-LGG150.69693d120f6f.copynumber.vcf'
  - exportBins(<1 samples>, format="vcf", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-1.69696cb35fbb.copynumber.vcf'
  - exportBins(<1 samples>, format="vcf", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-001.6969745225bd.copynumber.vcf'
  - exportBins(<1 samples>, format="vcf", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69693d2bd6f4.segments.vcf'
  - exportBins(<1 samples>, format="vcf", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-LGG150.696992d4c8c.segments.vcf'
  - exportBins(<1 samples>, format="vcf", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-1.69697cfc8008.segments.vcf'
  - exportBins(<1 samples>, format="vcf", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-001.69692539cd53.segments.vcf'
  - exportBins(<1 samples>, format="vcf", type="calls", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.696975d7173c.calls.vcf'
  - exportBins(<1 samples>, format="vcf", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-LGG150.69697c36a094.calls.vcf'
  - exportBins(<1 samples>, format="vcf", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-1.696966689441.calls.vcf'
  - exportBins(<1 samples>, format="vcf", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-001.69695bdd6bed.calls.vcf'
  - exportBins(<1 samples>, format="seg", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.696925d8c3b9.copynumber.seg'
  - exportBins(<1 samples>, format="seg", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-LGG150.69693a19ba18.copynumber.seg'
  - exportBins(<1 samples>, format="seg", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-1.69696f089b74.copynumber.seg'
  - exportBins(<1 samples>, format="seg", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-001.69691e16159f.copynumber.seg'
  - exportBins(<1 samples>, format="seg", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69693be58927.segments.seg'
  - exportBins(<1 samples>, format="seg", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-LGG150.69695a8f7e29.segments.seg'
  - exportBins(<1 samples>, format="seg", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-1.69692a3e432.segments.seg'
  - exportBins(<1 samples>, format="seg", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-001.696955da8ff8.segments.seg'
  - exportBins(<1 samples>, format="seg", type="calls", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.6969220ed1.calls.seg'
  - exportBins(<1 samples>, format="seg", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-LGG150.69693bfabb68.calls.seg'
  - exportBins(<1 samples>, format="seg", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-1.69694a25c79b.calls.seg'
  - exportBins(<1 samples>, format="seg", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-001.69697653b724.calls.seg'
> 
> sets <- list(data = data, dataC = dataC, fit = fit, fitC = fitC)
> sets <- lapply(sets, FUN = function(set) {
+   stopifnot(ncol(set) == 1L)
+   name <- sampleNames(set)
+   setA <- set
+   sampleNames(setA) <- sprintf("%sa", name)
+   setB <- set
+   sampleNames(setB) <- sprintf("%sb", name)
+   combine(setA, setB)
+ })
> 
> for (name in names(sets)) {
+   set <- sets[[name]]
+   stopifnot(ncol(set) == 2L)
+   formats <- c("tsv", "igv", "bed")
+   if (name == "fitC") formats <- c(formats, "vcf", "seg")
+   for (format in formats) {
+     types <- c("copynumber")
+     if (name %in% c("fit", "fitC")) types <- c(types, "segments")
+     if (name == "fitC") types <- c(types, "calls")
+     for (type in types) {
+       fileext <- sprintf(".%s.%s", type, format)
+       templates <- c("QDNAseq-%s.", "QDNAseq-%i.", "QDNAseq-%03i.")
+       if (ncol(set) == 1L || !(format %in% c("bed", "seg", "vcf"))) {
+         templates <- c("QDNAseq.", templates)
+       }
+       for (template in templates) {
+         file <- tempfile(pattern = template, fileext = fileext)
+         message(sprintf("  - exportBins(<%d samples>, format=\"%s\", type=\"%s\", file=\"%s\")", ncol(set), format, type, template))
+         file <- exportBins(set, file = file, format = format, type = type)
+         message(sprintf("    File(s) written: [n=%d] %s",
+                 length(file), paste(sQuote(file), collapse = ", ")))
+         stopifnot(all(file_test("-f", file)))
+         if (do_cleanup) {
+           file.remove(file)
+           stopifnot(!any(file_test("-f", file)))
+ 	}  
+       }
+     }
+   }
+ }
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.6969721cd92c.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.696943f6123b.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.696950270258.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.6969310b0884.copynumber.tsv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69694b5c2b43.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.6969101c625c.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.6969377d8e47.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69691407f3c7.copynumber.igv'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-LGG150a.696916159817.copynumber.bed', '/tmp/RtmpUFIx5p/QDNAseq-LGG150b.696916159817.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-1.696963b41954.copynumber.bed', '/tmp/RtmpUFIx5p/QDNAseq-2.696963b41954.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-001.696944eb0cef.copynumber.bed', '/tmp/RtmpUFIx5p/QDNAseq-002.696944eb0cef.copynumber.bed'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.6969239e4242.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.69696b100d52.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.69696adab967.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69693dc24fff.copynumber.tsv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.696920120e06.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.6969156bc5d.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.696965687e5a.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69692f3f7ab9.copynumber.igv'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-LGG150a.696970921fea.copynumber.bed', '/tmp/RtmpUFIx5p/QDNAseq-LGG150b.696970921fea.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-1.696996d7563.copynumber.bed', '/tmp/RtmpUFIx5p/QDNAseq-2.696996d7563.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-001.69697135bb6a.copynumber.bed', '/tmp/RtmpUFIx5p/QDNAseq-002.69697135bb6a.copynumber.bed'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69697ea36636.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.6969198ba42e.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.69691ec7d51c.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69695178310d.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.696929dc7644.segments.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.696948d87fd4.segments.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.69697db05ca8.segments.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.696945935a0f.segments.tsv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69694cfdb278.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.696923d00bc5.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.69692fb4c4e1.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69694e9a83f.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.6969824c29e.segments.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.69692565173f.segments.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.6969fd93c47.segments.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69697f046171.segments.igv'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-LGG150a.6969789982dc.copynumber.bed', '/tmp/RtmpUFIx5p/QDNAseq-LGG150b.6969789982dc.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-1.6969265e775f.copynumber.bed', '/tmp/RtmpUFIx5p/QDNAseq-2.6969265e775f.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-001.69693ef11a7.copynumber.bed', '/tmp/RtmpUFIx5p/QDNAseq-002.69693ef11a7.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-LGG150a.6969446fecf5.segments.bed', '/tmp/RtmpUFIx5p/QDNAseq-LGG150b.6969446fecf5.segments.bed'
  - exportBins(<2 samples>, format="bed", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-1.6969102debed.segments.bed', '/tmp/RtmpUFIx5p/QDNAseq-2.6969102debed.segments.bed'
  - exportBins(<2 samples>, format="bed", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-001.696936dc1ce7.segments.bed', '/tmp/RtmpUFIx5p/QDNAseq-002.696936dc1ce7.segments.bed'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69692ced9dd4.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.69692414e057.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.696956948242.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69692ff3e776.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.696935e10c92.segments.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.69694a0060e0.segments.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.69695ed83814.segments.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69694549d9b1.segments.tsv'
  - exportBins(<2 samples>, format="tsv", type="calls", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.696973731700.calls.tsv'
  - exportBins(<2 samples>, format="tsv", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.69698eb3c37.calls.tsv'
  - exportBins(<2 samples>, format="tsv", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.6969bbe4374.calls.tsv'
  - exportBins(<2 samples>, format="tsv", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.6969783e7ab1.calls.tsv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69694de93823.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.6969a64a9cb.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.696956c753c1.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.6969384bd069.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.6969795fba5e.segments.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.69697bc4af92.segments.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.69692de2d9b9.segments.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69698441838.segments.igv'
  - exportBins(<2 samples>, format="igv", type="calls", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq.69692e9208c5.calls.igv'
  - exportBins(<2 samples>, format="igv", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%s.6969757dd565.calls.igv'
  - exportBins(<2 samples>, format="igv", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%i.696918451626.calls.igv'
  - exportBins(<2 samples>, format="igv", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/RtmpUFIx5p/QDNAseq-%03i.69695fb1253c.calls.igv'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-LGG150a.69696703b738.copynumber.bed', '/tmp/RtmpUFIx5p/QDNAseq-LGG150b.69696703b738.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-1.696924f1f25e.copynumber.bed', '/tmp/RtmpUFIx5p/QDNAseq-2.696924f1f25e.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-001.696985f0c45.copynumber.bed', '/tmp/RtmpUFIx5p/QDNAseq-002.696985f0c45.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-LGG150a.6969181e8a4e.segments.bed', '/tmp/RtmpUFIx5p/QDNAseq-LGG150b.6969181e8a4e.segments.bed'
  - exportBins(<2 samples>, format="bed", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-1.69697d0a1340.segments.bed', '/tmp/RtmpUFIx5p/QDNAseq-2.69697d0a1340.segments.bed'
  - exportBins(<2 samples>, format="bed", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-001.696920760ee2.segments.bed', '/tmp/RtmpUFIx5p/QDNAseq-002.696920760ee2.segments.bed'
  - exportBins(<2 samples>, format="bed", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-LGG150a.696926cb2814.calls.bed', '/tmp/RtmpUFIx5p/QDNAseq-LGG150b.696926cb2814.calls.bed'
  - exportBins(<2 samples>, format="bed", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-1.696963b44cf1.calls.bed', '/tmp/RtmpUFIx5p/QDNAseq-2.696963b44cf1.calls.bed'
  - exportBins(<2 samples>, format="bed", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-001.69695227955a.calls.bed', '/tmp/RtmpUFIx5p/QDNAseq-002.69695227955a.calls.bed'
  - exportBins(<2 samples>, format="vcf", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-LGG150a.696924be71d9.copynumber.vcf', '/tmp/RtmpUFIx5p/QDNAseq-LGG150b.696924be71d9.copynumber.vcf'
  - exportBins(<2 samples>, format="vcf", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-1.696953247067.copynumber.vcf', '/tmp/RtmpUFIx5p/QDNAseq-2.696953247067.copynumber.vcf'
  - exportBins(<2 samples>, format="vcf", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-001.69697d4fa4d5.copynumber.vcf', '/tmp/RtmpUFIx5p/QDNAseq-002.69697d4fa4d5.copynumber.vcf'
  - exportBins(<2 samples>, format="vcf", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-LGG150a.696977cedc38.segments.vcf', '/tmp/RtmpUFIx5p/QDNAseq-LGG150b.696977cedc38.segments.vcf'
  - exportBins(<2 samples>, format="vcf", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-1.69692ddc1dfb.segments.vcf', '/tmp/RtmpUFIx5p/QDNAseq-2.69692ddc1dfb.segments.vcf'
  - exportBins(<2 samples>, format="vcf", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-001.69694e346142.segments.vcf', '/tmp/RtmpUFIx5p/QDNAseq-002.69694e346142.segments.vcf'
  - exportBins(<2 samples>, format="vcf", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-LGG150a.696950dd5c2a.calls.vcf', '/tmp/RtmpUFIx5p/QDNAseq-LGG150b.696950dd5c2a.calls.vcf'
  - exportBins(<2 samples>, format="vcf", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-1.696974cdf2df.calls.vcf', '/tmp/RtmpUFIx5p/QDNAseq-2.696974cdf2df.calls.vcf'
  - exportBins(<2 samples>, format="vcf", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-001.69697d044a61.calls.vcf', '/tmp/RtmpUFIx5p/QDNAseq-002.69697d044a61.calls.vcf'
  - exportBins(<2 samples>, format="seg", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-LGG150a.696924af6666.copynumber.seg', '/tmp/RtmpUFIx5p/QDNAseq-LGG150b.696924af6666.copynumber.seg'
  - exportBins(<2 samples>, format="seg", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-1.6969776bc55a.copynumber.seg', '/tmp/RtmpUFIx5p/QDNAseq-2.6969776bc55a.copynumber.seg'
  - exportBins(<2 samples>, format="seg", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-001.69694469d4f6.copynumber.seg', '/tmp/RtmpUFIx5p/QDNAseq-002.69694469d4f6.copynumber.seg'
  - exportBins(<2 samples>, format="seg", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-LGG150a.69691c8591.segments.seg', '/tmp/RtmpUFIx5p/QDNAseq-LGG150b.69691c8591.segments.seg'
  - exportBins(<2 samples>, format="seg", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-1.69695084f2a5.segments.seg', '/tmp/RtmpUFIx5p/QDNAseq-2.69695084f2a5.segments.seg'
  - exportBins(<2 samples>, format="seg", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-001.6969485657ef.segments.seg', '/tmp/RtmpUFIx5p/QDNAseq-002.6969485657ef.segments.seg'
  - exportBins(<2 samples>, format="seg", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-LGG150a.69691ca73103.calls.seg', '/tmp/RtmpUFIx5p/QDNAseq-LGG150b.69691ca73103.calls.seg'
  - exportBins(<2 samples>, format="seg", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-1.69692482caa7.calls.seg', '/tmp/RtmpUFIx5p/QDNAseq-2.69692482caa7.calls.seg'
  - exportBins(<2 samples>, format="seg", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/RtmpUFIx5p/QDNAseq-001.69696c6acab.calls.seg', '/tmp/RtmpUFIx5p/QDNAseq-002.69696c6acab.calls.seg'
> 
> message("* exportBins() ... done")
* exportBins() ... done
> 
> proc.time()
   user  system elapsed 
 48.873   3.010  57.037 

Example timings

QDNAseq.Rcheck/QDNAseq-Ex.timings

nameusersystemelapsed
addPhenodata0.0930.0030.097
applyFilters0.4600.0070.469
binReadCounts0.0000.0010.001
callBins12.592 0.21812.864
compareToReference1.5120.0341.550
correctBins1.3510.0191.370
createBins0.0000.0000.001
estimateCorrection1.3320.0141.348
exportBins000
frequencyPlot12.196 0.16912.385
getBinAnnotations000
highlightFilters0.4100.0420.454
isobarPlot0.8900.0130.904
makeCgh1.5050.0371.546
noisePlot1.4310.0161.455
normalizeBins1.4290.0141.447
normalizeSegmentedBins3.7920.0653.865
plot1.7670.0551.829
poolRuns0.1010.0010.102
segmentBins4.1320.0944.257
smoothOutlierBins1.3890.0191.409