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

This page was generated on 2024-03-29 11:36:15 -0400 (Fri, 29 Mar 2024).

HostnameOSArch (*)R versionInstalled pkgs
nebbiolo2Linux (Ubuntu 22.04.3 LTS)x86_644.3.3 (2024-02-29) -- "Angel Food Cake" 4669
palomino4Windows Server 2022 Datacenterx644.3.3 (2024-02-29 ucrt) -- "Angel Food Cake" 4404
merida1macOS 12.7.1 Montereyx86_644.3.3 (2024-02-29) -- "Angel Food Cake" 4427
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 1622/2266HostnameOS / ArchINSTALLBUILDCHECKBUILD BIN
QDNAseq 1.38.0  (landing page)
Daoud Sie
Snapshot Date: 2024-03-27 14:05:05 -0400 (Wed, 27 Mar 2024)
git_url: https://git.bioconductor.org/packages/QDNAseq
git_branch: RELEASE_3_18
git_last_commit: 4ba6932
git_last_commit_date: 2023-10-24 09:57:59 -0400 (Tue, 24 Oct 2023)
nebbiolo2Linux (Ubuntu 22.04.3 LTS) / x86_64  OK    OK    OK  UNNEEDED, same version is already published
palomino4Windows Server 2022 Datacenter / x64  OK    OK    OK    OK  UNNEEDED, same version is already published
merida1macOS 12.7.1 Monterey / x86_64  OK    OK    OK    OK  UNNEEDED, same version is already published
kjohnson1macOS 13.6.1 Ventura / arm64see weekly results here

CHECK results for QDNAseq on nebbiolo2


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.38.0
Command: /home/biocbuild/bbs-3.18-bioc/R/bin/R CMD check --install=check:QDNAseq.install-out.txt --library=/home/biocbuild/bbs-3.18-bioc/R/site-library --timings QDNAseq_1.38.0.tar.gz
StartedAt: 2024-03-28 01:39:15 -0400 (Thu, 28 Mar 2024)
EndedAt: 2024-03-28 01:46:17 -0400 (Thu, 28 Mar 2024)
EllapsedTime: 422.0 seconds
RetCode: 0
Status:   OK  
CheckDir: QDNAseq.Rcheck
Warnings: 0

Command output

##############################################################################
##############################################################################
###
### Running command:
###
###   /home/biocbuild/bbs-3.18-bioc/R/bin/R CMD check --install=check:QDNAseq.install-out.txt --library=/home/biocbuild/bbs-3.18-bioc/R/site-library --timings QDNAseq_1.38.0.tar.gz
###
##############################################################################
##############################################################################


* using log directory ‘/home/biocbuild/bbs-3.18-bioc/meat/QDNAseq.Rcheck’
* using R version 4.3.3 (2024-02-29)
* using platform: x86_64-pc-linux-gnu (64-bit)
* R was compiled by
    gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
    GNU Fortran (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
* running under: Ubuntu 22.04.4 LTS
* using session charset: UTF-8
* checking for file ‘QDNAseq/DESCRIPTION’ ... OK
* this is package ‘QDNAseq’ version ‘1.38.0’
* checking package namespace information ... OK
* checking package dependencies ... 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 R 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 loading without being on the library search path ... 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 files in ‘vignettes’ ... OK
* checking examples ... OK
Examples with CPU (user + system) or elapsed time > 5s
                         user system elapsed
callBins               17.203  0.187  17.392
frequencyPlot          17.302  0.072  17.374
segmentBins             6.730  0.277   7.006
normalizeSegmentedBins  6.741  0.031   6.773
* 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’
 OK
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes in ‘inst/doc’ ... OK
* checking running R code from vignettes ...
  ‘QDNAseq.Rnw’... OK
 OK
* checking re-building of vignette outputs ... OK
* checking PDF version of manual ... OK
* DONE

Status: OK


Installation output

QDNAseq.Rcheck/00install.out

##############################################################################
##############################################################################
###
### Running command:
###
###   /home/biocbuild/bbs-3.18-bioc/R/bin/R CMD INSTALL QDNAseq
###
##############################################################################
##############################################################################


* installing to library ‘/home/biocbuild/bbs-3.18-bioc/R/site-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.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

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.32.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] "/home/biocbuild/bbs-3.18-bioc/R/site-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 
  6.066   0.216   6.273 

QDNAseq.Rcheck/tests/QDNAseq,copyneutral.Rout


R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

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, setdiff, sort, 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"
40000338178975213.762.5784937115630790419.3119.3784937110732491419.381.9
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
40015388182396213.862.5784937115630790419.3119.3784937110732491419.381.9
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
40042068404150213.964.2784937115630790419.3119.3784937110921108419.383.4
40042258570896213.965.4784937115630790419.3119.3784937110921108419.383.4
40042228570890213.965.4784937115630790419.3119.3784937110921108419.383.4
40042508837670213.967.5784937115630790419.3119.3784937110921108419.383.4
40046778838625213.967.5784937115630790419.3119.3784937110921108419.383.4
40046868838629213.967.5784937115630790419.3119.3784937110921108419.383.4
40046958838633213.967.5784937115630790419.3119.3784937110921108419.383.4
40047048838637213.967.5784937115630790419.3119.3784937110921108419.383.4
40047138838641213.967.5784937115630790419.3119.3784937110921108419.383.4
40047198838644213.967.5784937115630790419.3119.3784937110921108419.383.4
40047388905374213.968784937115630790419.3119.3784937110921108419.383.4
40051558905697213.968784937115630790419.3119.3784937110921108419.383.4
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/RtmpPfWtI8/QDNAseq-%s437025c10d532.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments")
    File(s) written: [n=1] '/tmp/RtmpPfWtI8/QDNAseq-%s4370268eee19c.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="calls")
    File(s) written: [n=1] '/tmp/RtmpPfWtI8/QDNAseq-%s437021cfd4818.calls.tsv'
  - exportBins(<1 samples>, format="igv", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpPfWtI8/QDNAseq-%s437027441669.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="segments")
    File(s) written: [n=1] '/tmp/RtmpPfWtI8/QDNAseq-%s437022d511175.segments.igv'
  - exportBins(<1 samples>, format="igv", type="calls")
    File(s) written: [n=1] '/tmp/RtmpPfWtI8/QDNAseq-%s437024e237331.calls.igv'
  - exportBins(<1 samples>, format="bed", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpPfWtI8/QDNAseq-LGG150437022eca558e.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="segments")
    File(s) written: [n=1] '/tmp/RtmpPfWtI8/QDNAseq-LGG150437023216fba7.segments.bed'
  - exportBins(<1 samples>, format="bed", type="calls")
    File(s) written: [n=1] '/tmp/RtmpPfWtI8/QDNAseq-LGG150437029e1f310.calls.bed'
  - exportBins(<1 samples>, format="seg", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpPfWtI8/QDNAseq-LGG1504370279e399fb.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/RtmpPfWtI8/QDNAseq-LGG1504370217cd75b.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/RtmpPfWtI8/QDNAseq-LGG150437025ea33334.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/RtmpPfWtI8/QDNAseq-LGG1504370256fb7d67.copynumber.vcf'
character(0)
  - exportBins(<1 samples>, format="vcf", type="segments")
    File(s) written: [n=1] '/tmp/RtmpPfWtI8/QDNAseq-LGG150437021ac0616a.segments.vcf'
character(0)
  - exportBins(<1 samples>, format="vcf", type="calls")
    File(s) written: [n=1] '/tmp/RtmpPfWtI8/QDNAseq-LGG15043702ba1be48.calls.vcf'
character(0)
> 
> proc.time()
   user  system elapsed 
 18.903   0.348  19.243 

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


R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

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, setdiff, sort, 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"
40003438222554213.762.8784937115630790419.3119.3784937110732494419.381.9
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
40045168447537213.964.5784937115630790419.3119.3784937110964813419.383.7
40045358614283213.965.8784937115630790419.3119.3784937110964813419.383.7
40045328614277213.965.8784937115630790419.3119.3784937110964813419.383.7
40045608882807213.967.8784937115630790419.3119.3784937110964813419.383.7
40049878883762213.967.8784937115630790419.3119.3784937110964813419.383.7
40049968883766213.967.8784937115630790419.3119.3784937110964813419.383.7
40050058883770213.967.8784937115630790419.3119.3784937110964813419.383.7
40050148883774213.967.8784937115630790419.3119.3784937110964813419.383.7
40050238883778213.967.8784937115630790419.3119.3784937110964813419.383.7
40050298883781213.967.8784937115630790419.3119.3784937110964813419.383.7
40050488950511213.968.3784937115630790419.3119.3784937110964813419.383.7
4005465895083421468.3784937115630790419.3119.3784937110964813419.383.7
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/RtmpPnx8Yc/QDNAseq-%s43c06386878dd.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments")
    File(s) written: [n=1] '/tmp/RtmpPnx8Yc/QDNAseq-%s43c0613158d60.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="calls")
    File(s) written: [n=1] '/tmp/RtmpPnx8Yc/QDNAseq-%s43c066b7a8ee0.calls.tsv'
  - exportBins(<1 samples>, format="igv", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpPnx8Yc/QDNAseq-%s43c0627ff3f10.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="segments")
    File(s) written: [n=1] '/tmp/RtmpPnx8Yc/QDNAseq-%s43c066383126a.segments.igv'
  - exportBins(<1 samples>, format="igv", type="calls")
    File(s) written: [n=1] '/tmp/RtmpPnx8Yc/QDNAseq-%s43c06681807ab.calls.igv'
  - exportBins(<1 samples>, format="bed", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpPnx8Yc/QDNAseq-LGG15043c061e96971c.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="segments")
    File(s) written: [n=1] '/tmp/RtmpPnx8Yc/QDNAseq-LGG15043c06202c16f2.segments.bed'
  - exportBins(<1 samples>, format="bed", type="calls")
    File(s) written: [n=1] '/tmp/RtmpPnx8Yc/QDNAseq-LGG15043c0651cdc208.calls.bed'
  - exportBins(<1 samples>, format="seg", type="copynumber")
    File(s) written: [n=1] '/tmp/RtmpPnx8Yc/QDNAseq-LGG15043c0670ce864e.copynumber.seg'
                                                 SAMPLE_NAME CHROMOSOME
1 /tmp/RtmpPnx8Yc/QDNAseq-LGG15043c0670ce864e.copynumber.seg          7
2 /tmp/RtmpPnx8Yc/QDNAseq-LGG15043c0670ce864e.copynumber.seg          7
     START      STOP DATAPOINTS LOG2_RATIO_MEAN
1 37110001  68955000       1487            0.99
2 90165001 122010000       2012            0.99
  - exportBins(<1 samples>, format="seg", type="segments")
    File(s) written: [n=1] '/tmp/RtmpPnx8Yc/QDNAseq-LGG15043c066d9d20b0.segments.seg'
                                               SAMPLE_NAME CHROMOSOME    START
1 /tmp/RtmpPnx8Yc/QDNAseq-LGG15043c066d9d20b0.segments.seg          7 37110001
2 /tmp/RtmpPnx8Yc/QDNAseq-LGG15043c066d9d20b0.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/RtmpPnx8Yc/QDNAseq-LGG15043c061e97a95c.calls.seg'
                                            SAMPLE_NAME CHROMOSOME    START
1 /tmp/RtmpPnx8Yc/QDNAseq-LGG15043c061e97a95c.calls.seg          7 37110001
2 /tmp/RtmpPnx8Yc/QDNAseq-LGG15043c061e97a95c.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/RtmpPnx8Yc/QDNAseq-LGG15043c06123f7eeb.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/RtmpPnx8Yc/QDNAseq-LGG15043c06725bdcf3.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/RtmpPnx8Yc/QDNAseq-LGG15043c0624c284aa.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 
 18.607   0.319  18.915 

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


R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

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 
 62.691   0.964  72.638 

QDNAseq.Rcheck/tests/QDNAseq.Rout


R version 4.3.3 (2024-02-29) -- "Angel Food Cake"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

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, setdiff, sort, 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)
> 
> # 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
> isobarPlot(data)
Plotting sample LGG150 median read counts
> 
> # Plot copy number profile
> plot(data, ylim=c(-100, 200))
Plotting sample LGG150 (1 of 1) ...
> highlightFilters(data, residual=TRUE, blacklist=TRUE)
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:  
> 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:  
> 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:  
> plot(dataN)
Plotting sample LGG150 (1 of 1) ...
> stopifnot(inherits(dataN, "QDNAseqCopyNumbers"))
> 
> # Plot noise
> 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:  
> 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"
40142758185488214.462.5784539116163616419123.478453911110251241984.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
40157808188939214.562.5784539116163616419123.478453911110251241984.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
40157808188939214.562.5784539116163616419123.478453911110251241984.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
40184488410173214.764.2784539116163616419123.478453911110251241984.8
40184678576919214.765.5784539116163616419123.478453911110251241984.8
40184648576913214.765.5784539116163616419123.478453911110251241984.8
40184928843928214.767.5784539116163616419123.478453911110251241984.8
40189198844883214.767.5784539116163616419123.478453911110251241984.8
40189288844887214.767.5784539116163616419123.478453911110251241984.8
40189378844891214.767.5784539116163616419123.478453911110251241984.8
40189468844895214.767.5784539116163616419123.478453911110251241984.8
40189558844899214.767.5784539116163616419123.478453911110251241984.8
40189618844902214.767.5784539116163616419123.478453911110251241984.8
40189808911632214.768784539116163616419123.478453911110251241984.8
40193978911955214.768784539116163616419123.478453911110251241984.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:  
> 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)))
+         file.remove(file)
+         stopifnot(!any(file_test("-f", file)))
+       }
+     }
+   }
+ }
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea466bdf23c.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea4dbee000.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea41d54568d.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea4dc243dc.copynumber.tsv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea46d98a52f.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea47ebef832.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea43dd4449b.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea414d5b61.copynumber.igv'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea472381ae2.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150.45ea421a6301b.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea43ceafca8.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea44540eaff.copynumber.bed'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea41584d0eb.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea46e16a17.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea437e7bf08.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea43f1daff.copynumber.tsv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea42737c0f9.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea446a8b628.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea4245ca1e5.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea474f0fea4.copynumber.igv'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea4473a7dc5.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150.45ea46f2534c7.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea454c34d19.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea47c0d85e9.copynumber.bed'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea461c525b6.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea446a8b493.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea462fba6ac.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea42831d40e.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea452d6dbe7.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea42228eafc.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea478457cdb.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea43994ce24.segments.tsv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea42fe7cafd.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea41599d368.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea447571200.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea41d80702c.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea41458cb9a.segments.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea452b569b.segments.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea41ecdcb8d.segments.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea4690e67c.segments.igv'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea426d186b6.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150.45ea45bb8c836.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea44bd1d17b.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea43c5657a2.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea4629a324d.segments.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150.45ea43b99084.segments.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea4404832a1.segments.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea49d1f346.segments.bed'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea44a6246ac.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea464a4d486.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea47ec2f1ea.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea4119cc471.copynumber.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea453ca094d.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea453863f03.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea4daa4a5b.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea4358f2f04.segments.tsv'
  - exportBins(<1 samples>, format="tsv", type="calls", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea41a2ef396.calls.tsv'
  - exportBins(<1 samples>, format="tsv", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea470a5f107.calls.tsv'
  - exportBins(<1 samples>, format="tsv", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea45dc10312.calls.tsv'
  - exportBins(<1 samples>, format="tsv", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea46d05cf7e.calls.tsv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea412cedc04.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea456067fed.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea4269a9da2.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea442b6a701.copynumber.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea46ba05355.segments.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea46df1afa2.segments.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea46037172d.segments.igv'
  - exportBins(<1 samples>, format="igv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea47ff91ef0.segments.igv'
  - exportBins(<1 samples>, format="igv", type="calls", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea4731d063e.calls.igv'
  - exportBins(<1 samples>, format="igv", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea47f04e2bb.calls.igv'
  - exportBins(<1 samples>, format="igv", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea468a056c.calls.igv'
  - exportBins(<1 samples>, format="igv", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea419ee8cf4.calls.igv'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea45abdaaf1.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150.45ea4525bd6e8.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea45644e496.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea43d57dd3e.copynumber.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea45615676c.segments.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150.45ea4168d1738.segments.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea44729d084.segments.bed'
  - exportBins(<1 samples>, format="bed", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea42077ae18.segments.bed'
  - exportBins(<1 samples>, format="bed", type="calls", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea47b31ebbe.calls.bed'
  - exportBins(<1 samples>, format="bed", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150.45ea445ecc26e.calls.bed'
  - exportBins(<1 samples>, format="bed", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea43214728a.calls.bed'
  - exportBins(<1 samples>, format="bed", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea44efbf50c.calls.bed'
  - exportBins(<1 samples>, format="vcf", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea419730171.copynumber.vcf'
  - exportBins(<1 samples>, format="vcf", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150.45ea43fbebce5.copynumber.vcf'
  - exportBins(<1 samples>, format="vcf", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea448b2410.copynumber.vcf'
  - exportBins(<1 samples>, format="vcf", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea433a1f507.copynumber.vcf'
  - exportBins(<1 samples>, format="vcf", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea43064adec.segments.vcf'
  - exportBins(<1 samples>, format="vcf", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150.45ea4624c2722.segments.vcf'
  - exportBins(<1 samples>, format="vcf", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea420a7c485.segments.vcf'
  - exportBins(<1 samples>, format="vcf", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea4433389f0.segments.vcf'
  - exportBins(<1 samples>, format="vcf", type="calls", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea43852a70f.calls.vcf'
  - exportBins(<1 samples>, format="vcf", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150.45ea447426227.calls.vcf'
  - exportBins(<1 samples>, format="vcf", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea45ea30f1.calls.vcf'
  - exportBins(<1 samples>, format="vcf", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea423f2fa64.calls.vcf'
  - exportBins(<1 samples>, format="seg", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea4353411ca.copynumber.seg'
  - exportBins(<1 samples>, format="seg", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150.45ea46621481f.copynumber.seg'
  - exportBins(<1 samples>, format="seg", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea423ec1954.copynumber.seg'
  - exportBins(<1 samples>, format="seg", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea428511808.copynumber.seg'
  - exportBins(<1 samples>, format="seg", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea465262ada.segments.seg'
  - exportBins(<1 samples>, format="seg", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150.45ea42a761ec1.segments.seg'
  - exportBins(<1 samples>, format="seg", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea4423fa4fc.segments.seg'
  - exportBins(<1 samples>, format="seg", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea43fe3d5cb.segments.seg'
  - exportBins(<1 samples>, format="seg", type="calls", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea47cd1f5a9.calls.seg'
  - exportBins(<1 samples>, format="seg", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150.45ea418848993.calls.seg'
  - exportBins(<1 samples>, format="seg", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea47d3bb309.calls.seg'
  - exportBins(<1 samples>, format="seg", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea452e75d15.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)))
+         file.remove(file)
+         stopifnot(!any(file_test("-f", file)))
+       }
+     }
+   }
+ }
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea42f11a0cb.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea44465838d.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea4735f0b2d.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea42a438c89.copynumber.tsv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea4a5245fb.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea425737db7.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea4793f8195.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea423c5476c.copynumber.igv'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150a.45ea465323a9c.copynumber.bed', '/tmp/Rtmp3FBCEW/QDNAseq-LGG150b.45ea465323a9c.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea47dcaa5a5.copynumber.bed', '/tmp/Rtmp3FBCEW/QDNAseq-2.45ea47dcaa5a5.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea457673c73.copynumber.bed', '/tmp/Rtmp3FBCEW/QDNAseq-002.45ea457673c73.copynumber.bed'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea41596e889.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea46016ccc7.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea4780f00f9.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea458ca7279.copynumber.tsv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea4186973d6.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea43f516320.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea45eb4a36b.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea43c5c6e3b.copynumber.igv'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150a.45ea4748574ea.copynumber.bed', '/tmp/Rtmp3FBCEW/QDNAseq-LGG150b.45ea4748574ea.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea444d5eb8a.copynumber.bed', '/tmp/Rtmp3FBCEW/QDNAseq-2.45ea444d5eb8a.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea46048878f.copynumber.bed', '/tmp/Rtmp3FBCEW/QDNAseq-002.45ea46048878f.copynumber.bed'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea41cd68cf2.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea429fc1664.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea4abea650.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea45f1631ef.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea469dfec2f.segments.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea47909bf9.segments.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea4779abb82.segments.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea4671b9f38.segments.tsv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea45a77f90e.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea426ac5c4d.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea42b8122c5.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea44dd7043c.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea450efe8d6.segments.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea435d368c0.segments.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea4734a81f3.segments.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea44a2f6a6c.segments.igv'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150a.45ea45998b02c.copynumber.bed', '/tmp/Rtmp3FBCEW/QDNAseq-LGG150b.45ea45998b02c.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea4587cbc90.copynumber.bed', '/tmp/Rtmp3FBCEW/QDNAseq-2.45ea4587cbc90.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea447fa1011.copynumber.bed', '/tmp/Rtmp3FBCEW/QDNAseq-002.45ea447fa1011.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150a.45ea430ffec9f.segments.bed', '/tmp/Rtmp3FBCEW/QDNAseq-LGG150b.45ea430ffec9f.segments.bed'
  - exportBins(<2 samples>, format="bed", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea46e13a519.segments.bed', '/tmp/Rtmp3FBCEW/QDNAseq-2.45ea46e13a519.segments.bed'
  - exportBins(<2 samples>, format="bed", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea42810dcd9.segments.bed', '/tmp/Rtmp3FBCEW/QDNAseq-002.45ea42810dcd9.segments.bed'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea4290eed98.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea446de1792.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea4407a50af.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea4686050b9.copynumber.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea42592bafd.segments.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea47cd6beea.segments.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea45ce5c5a3.segments.tsv'
  - exportBins(<2 samples>, format="tsv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea46a68a687.segments.tsv'
  - exportBins(<2 samples>, format="tsv", type="calls", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea45d1f467a.calls.tsv'
  - exportBins(<2 samples>, format="tsv", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea479bc5296.calls.tsv'
  - exportBins(<2 samples>, format="tsv", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea41464bceb.calls.tsv'
  - exportBins(<2 samples>, format="tsv", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea467ddecca.calls.tsv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea458d28485.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea47e44a91a.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea46f6e88c4.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea4506d4007.copynumber.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea465604852.segments.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea449e681d2.segments.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea477199c54.segments.igv'
  - exportBins(<2 samples>, format="igv", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea410e16b17.segments.igv'
  - exportBins(<2 samples>, format="igv", type="calls", file="QDNAseq.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq.45ea417bd860e.calls.igv'
  - exportBins(<2 samples>, format="igv", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%s.45ea44809852a.calls.igv'
  - exportBins(<2 samples>, format="igv", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%i.45ea446b4d3d7.calls.igv'
  - exportBins(<2 samples>, format="igv", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=1] '/tmp/Rtmp3FBCEW/QDNAseq-%03i.45ea4b080802.calls.igv'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150a.45ea41238ef96.copynumber.bed', '/tmp/Rtmp3FBCEW/QDNAseq-LGG150b.45ea41238ef96.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea4204d8403.copynumber.bed', '/tmp/Rtmp3FBCEW/QDNAseq-2.45ea4204d8403.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea46384c492.copynumber.bed', '/tmp/Rtmp3FBCEW/QDNAseq-002.45ea46384c492.copynumber.bed'
  - exportBins(<2 samples>, format="bed", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150a.45ea45a32ffa8.segments.bed', '/tmp/Rtmp3FBCEW/QDNAseq-LGG150b.45ea45a32ffa8.segments.bed'
  - exportBins(<2 samples>, format="bed", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea4514d70a3.segments.bed', '/tmp/Rtmp3FBCEW/QDNAseq-2.45ea4514d70a3.segments.bed'
  - exportBins(<2 samples>, format="bed", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea4519869ab.segments.bed', '/tmp/Rtmp3FBCEW/QDNAseq-002.45ea4519869ab.segments.bed'
  - exportBins(<2 samples>, format="bed", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150a.45ea4243dc81.calls.bed', '/tmp/Rtmp3FBCEW/QDNAseq-LGG150b.45ea4243dc81.calls.bed'
  - exportBins(<2 samples>, format="bed", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea47a5c5e3b.calls.bed', '/tmp/Rtmp3FBCEW/QDNAseq-2.45ea47a5c5e3b.calls.bed'
  - exportBins(<2 samples>, format="bed", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea41876813d.calls.bed', '/tmp/Rtmp3FBCEW/QDNAseq-002.45ea41876813d.calls.bed'
  - exportBins(<2 samples>, format="vcf", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150a.45ea442be2d30.copynumber.vcf', '/tmp/Rtmp3FBCEW/QDNAseq-LGG150b.45ea442be2d30.copynumber.vcf'
  - exportBins(<2 samples>, format="vcf", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea462bcaef4.copynumber.vcf', '/tmp/Rtmp3FBCEW/QDNAseq-2.45ea462bcaef4.copynumber.vcf'
  - exportBins(<2 samples>, format="vcf", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea43e093c3b.copynumber.vcf', '/tmp/Rtmp3FBCEW/QDNAseq-002.45ea43e093c3b.copynumber.vcf'
  - exportBins(<2 samples>, format="vcf", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150a.45ea43f94ec1b.segments.vcf', '/tmp/Rtmp3FBCEW/QDNAseq-LGG150b.45ea43f94ec1b.segments.vcf'
  - exportBins(<2 samples>, format="vcf", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea43fa27498.segments.vcf', '/tmp/Rtmp3FBCEW/QDNAseq-2.45ea43fa27498.segments.vcf'
  - exportBins(<2 samples>, format="vcf", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea42871e2c2.segments.vcf', '/tmp/Rtmp3FBCEW/QDNAseq-002.45ea42871e2c2.segments.vcf'
  - exportBins(<2 samples>, format="vcf", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150a.45ea41cb43295.calls.vcf', '/tmp/Rtmp3FBCEW/QDNAseq-LGG150b.45ea41cb43295.calls.vcf'
  - exportBins(<2 samples>, format="vcf", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea4395ec72e.calls.vcf', '/tmp/Rtmp3FBCEW/QDNAseq-2.45ea4395ec72e.calls.vcf'
  - exportBins(<2 samples>, format="vcf", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea43cd69fae.calls.vcf', '/tmp/Rtmp3FBCEW/QDNAseq-002.45ea43cd69fae.calls.vcf'
  - exportBins(<2 samples>, format="seg", type="copynumber", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150a.45ea44921f5f.copynumber.seg', '/tmp/Rtmp3FBCEW/QDNAseq-LGG150b.45ea44921f5f.copynumber.seg'
  - exportBins(<2 samples>, format="seg", type="copynumber", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea412314bb3.copynumber.seg', '/tmp/Rtmp3FBCEW/QDNAseq-2.45ea412314bb3.copynumber.seg'
  - exportBins(<2 samples>, format="seg", type="copynumber", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea43b1b48c8.copynumber.seg', '/tmp/Rtmp3FBCEW/QDNAseq-002.45ea43b1b48c8.copynumber.seg'
  - exportBins(<2 samples>, format="seg", type="segments", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150a.45ea47400a823.segments.seg', '/tmp/Rtmp3FBCEW/QDNAseq-LGG150b.45ea47400a823.segments.seg'
  - exportBins(<2 samples>, format="seg", type="segments", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea4629e8bba.segments.seg', '/tmp/Rtmp3FBCEW/QDNAseq-2.45ea4629e8bba.segments.seg'
  - exportBins(<2 samples>, format="seg", type="segments", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea4207b911b.segments.seg', '/tmp/Rtmp3FBCEW/QDNAseq-002.45ea4207b911b.segments.seg'
  - exportBins(<2 samples>, format="seg", type="calls", file="QDNAseq-%s.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-LGG150a.45ea43de729f6.calls.seg', '/tmp/Rtmp3FBCEW/QDNAseq-LGG150b.45ea43de729f6.calls.seg'
  - exportBins(<2 samples>, format="seg", type="calls", file="QDNAseq-%i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-1.45ea459b8280e.calls.seg', '/tmp/Rtmp3FBCEW/QDNAseq-2.45ea459b8280e.calls.seg'
  - exportBins(<2 samples>, format="seg", type="calls", file="QDNAseq-%03i.")
    File(s) written: [n=2] '/tmp/Rtmp3FBCEW/QDNAseq-001.45ea4315cfc32.calls.seg', '/tmp/Rtmp3FBCEW/QDNAseq-002.45ea4315cfc32.calls.seg'
> 
> message("* exportBins() ... done")
* exportBins() ... done
> 
> proc.time()
   user  system elapsed 
 70.270   1.084  71.356 

Example timings

QDNAseq.Rcheck/QDNAseq-Ex.timings

nameusersystemelapsed
addPhenodata0.1170.0000.117
applyFilters0.5460.0030.550
binReadCounts000
callBins17.203 0.18717.392
compareToReference1.8730.0281.901
correctBins1.7370.0111.749
createBins0.0000.0000.001
estimateCorrection1.6550.0081.664
exportBins000
frequencyPlot17.302 0.07217.374
getBinAnnotations000
highlightFilters0.8010.0170.817
isobarPlot1.0060.0111.019
makeCgh2.2160.0132.228
noisePlot2.0200.0082.027
normalizeBins1.7140.0161.729
normalizeSegmentedBins6.7410.0316.773
plot2.4330.1092.542
poolRuns0.1210.0110.134
segmentBins6.7300.2777.006
smoothOutlierBins1.7710.0481.819