Back to Multiple platform build/check report for BioC 3.9 |
|
This page was generated on 2019-04-09 13:31:30 -0400 (Tue, 09 Apr 2019).
Package 428/1703 | Hostname | OS / Arch | INSTALL | BUILD | CHECK | BUILD BIN | ||||||
diffHic 1.15.2 Aaron Lun
| malbec2 | Linux (Ubuntu 18.04.2 LTS) / x86_64 | OK | OK | OK | |||||||
tokay2 | Windows Server 2012 R2 Standard / x64 | OK | OK | WARNINGS | OK | |||||||
celaya2 | OS X 10.11.6 El Capitan / x86_64 | OK | OK | OK | OK | |||||||
merida2 | OS X 10.11.6 El Capitan / x86_64 | OK | OK | [ OK ] | OK |
Package: diffHic |
Version: 1.15.2 |
Command: /Library/Frameworks/R.framework/Versions/Current/Resources/bin/R CMD check --install=check:diffHic.install-out.txt --library=/Library/Frameworks/R.framework/Versions/Current/Resources/library --no-vignettes --timings diffHic_1.15.2.tar.gz |
StartedAt: 2019-04-09 00:29:27 -0400 (Tue, 09 Apr 2019) |
EndedAt: 2019-04-09 00:35:32 -0400 (Tue, 09 Apr 2019) |
EllapsedTime: 365.1 seconds |
RetCode: 0 |
Status: OK |
CheckDir: diffHic.Rcheck |
Warnings: 0 |
############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Versions/Current/Resources/bin/R CMD check --install=check:diffHic.install-out.txt --library=/Library/Frameworks/R.framework/Versions/Current/Resources/library --no-vignettes --timings diffHic_1.15.2.tar.gz ### ############################################################################## ############################################################################## * using log directory ‘/Users/biocbuild/bbs-3.9-bioc/meat/diffHic.Rcheck’ * using R Under development (unstable) (2018-11-27 r75683) * using platform: x86_64-apple-darwin15.6.0 (64-bit) * using session charset: UTF-8 * using option ‘--no-vignettes’ * checking for file ‘diffHic/DESCRIPTION’ ... OK * this is package ‘diffHic’ version ‘1.15.2’ * 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 ‘diffHic’ 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 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 line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking compiled code ... NOTE Note: information on .o files is not available File ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/diffHic/libs/diffHic.so’: Found ‘___assert_rtn’, possibly from ‘assert’ (C) Found ‘___stderrp’, possibly from ‘stderr’ (C) Found ‘___stdoutp’, possibly from ‘stdout’ (C) Found ‘_abort’, possibly from ‘abort’ (C) Found ‘_exit’, possibly from ‘exit’ (C) Found ‘_printf’, possibly from ‘printf’ (C) Found ‘_putchar’, possibly from ‘putchar’ (C) Found ‘_puts’, possibly from ‘printf’ (C), ‘puts’ (C) Found ‘_srand48’, possibly from ‘srand48’ (C) Compiled code should not call entry points which might terminate R nor write to stdout/stderr instead of to the console, nor use Fortran I/O nor system RNGs. The detected symbols are linked into the code but might come from libraries and not actually be called. See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual. * checking sizes of PDF files under ‘inst/doc’ ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK Examples with CPU or elapsed time > 5s user system elapsed normalizeCNV 10.108 0.072 10.295 * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘test-basic.R’ Comparing ‘test-basic.Rout’ to ‘test-basic.Rout.save’ ... OK Running ‘testthat.R’ OK * checking for unstated dependencies in vignettes ... OK * checking package vignettes in ‘inst/doc’ ... OK * checking running R code from vignettes ... SKIPPED * checking re-building of vignette outputs ... SKIPPED * checking PDF version of manual ... OK * DONE Status: 1 NOTE See ‘/Users/biocbuild/bbs-3.9-bioc/meat/diffHic.Rcheck/00check.log’ for details.
diffHic.Rcheck/00install.out
############################################################################## ############################################################################## ### ### Running command: ### ### /Library/Frameworks/R.framework/Versions/Current/Resources/bin/R CMD INSTALL diffHic ### ############################################################################## ############################################################################## * installing to library ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library’ * installing *source* package ‘diffHic’ ... ** libs clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c binner.cpp -o binner.o clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c check_input.cpp -o check_input.o clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c cluster_2d.cpp -o cluster_2d.o clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c count_background.cpp -o count_background.o clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c count_connect.cpp -o count_connect.o clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c count_patch.cpp -o count_patch.o clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c directionality.cpp -o directionality.o clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c init.cpp -o init.o clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c iterative_correction.cpp -o iterative_correction.o clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c neighbors.cpp -o neighbors.o clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c pair_stats.cpp -o pair_stats.o clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c quadrant_bg.cpp -o quadrant_bg.o clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c report_hic_pairs.cpp -o report_hic_pairs.o clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c trended_filter.cpp -o trended_filter.o clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/zlibbioc/include" -I"/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c utils.cpp -o utils.o clang++ -std=gnu++11 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o diffHic.so binner.o check_input.o cluster_2d.o count_background.o count_connect.o count_patch.o directionality.o init.o iterative_correction.o neighbors.o pair_stats.o quadrant_bg.o report_hic_pairs.o trended_filter.o utils.o /Library/Frameworks/R.framework/Versions/3.6/Resources/library/Rhtslib/usrlib/libhts.a -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation installing to /Library/Frameworks/R.framework/Versions/3.6/Resources/library/diffHic/libs ** R ** inst ** byte-compile and prepare package for lazy loading ** help *** installing help indices ** building package indices ** installing vignettes ‘diffHic.Rnw’ ** testing if installed package can be loaded * DONE (diffHic)
diffHic.Rcheck/tests/test-basic.Rout
R Under development (unstable) (2018-11-27 r75683) -- "Unsuffered Consequences" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-apple-darwin15.6.0 (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. > # These are just placeholders for the real things in inst/tests. > > suppressWarnings(suppressPackageStartupMessages(require(diffHic))) > > hic.file <- system.file("exdata", "hic_sort.bam", package="diffHic") > cuts <- readRDS(system.file("exdata", "cuts.rds", package="diffHic")) > param <- pairParam(fragments=cuts) > > # Setting up the parameters > fout <- "output.h5" > preparePairs(hic.file, param, file=fout) $pairs total marked filtered mapped 32 7 3 22 $same.id dangling self.circle 4 1 $singles [1] 2 $chimeras total mapped multi invalid 12 8 7 5 > head(getPairData(fout, param)) length orientation insert 1 40 1 40 2 80 1 80 3 60 2 54 4 40 3 160 5 20 1 66 6 80 0 114 > > loadChromos(fout) anchor1 anchor2 1 chrA chrA 2 chrB chrA 3 chrB chrB > head(loadData(fout, "chrA", "chrA")) anchor1.id anchor2.id anchor1.pos anchor2.pos anchor1.len anchor2.len 1 2 1 49 14 -5 10 2 2 1 79 9 -10 10 3 2 1 65 21 10 -10 4 4 1 156 6 -10 -10 5 4 2 141 80 -5 10 6 4 2 154 50 10 10 > head(loadData(fout, "chrA", "chrB")) anchor1.id anchor2.id anchor1.pos anchor2.pos anchor1.len anchor2.len 1 5 2 19 44 10 -10 2 5 3 14 105 10 -10 3 6 1 65 19 5 10 4 6 2 24 90 -5 5 5 6 3 24 100 -5 -10 6 6 3 24 95 -5 -10 Warning message: In value[[3L]](cond) : anchor definitions are reversed > > # Loading the counts. > data <- squareCounts(fout, param, width=50, filter=1) > data class: InteractionSet dim: 10 1 metadata(2): param width assays(1): counts rownames: NULL rowData names(0): colnames: NULL colData names(1): totals type: ReverseStrictGInteractions regions: 6 > > margins <- marginCounts(fout, param, width=50) > margins class: RangedSummarizedExperiment dim: 6 1 metadata(1): param assays(1): counts rownames: NULL rowData names(1): nfrags colnames: NULL colData names(1): totals > totalCounts(fout, param) [1] 17 > > regions <- GRanges("chrA", IRanges(c(1, 100, 150), c(20, 140, 160))) > connectCounts(fout, param, regions=regions, filter=1L) class: InteractionSet dim: 2 1 metadata(1): param assays(1): counts rownames: NULL rowData names(0): colnames: NULL colData names(1): totals type: ReverseStrictGInteractions regions: 3 > > # Checking some values. > head(getArea(data)) [1] 2208 2304 2208 2208 3312 3174 > head(pairdist(data)) [1] 47 140 93 47 NA NA > > anchors(data, type="first") GRanges object with 10 ranges and 1 metadata column: seqnames ranges strand | nfrags <Rle> <IRanges> <Rle> | <integer> [1] chrA 49-94 * | 1 [2] chrA 141-188 * | 1 [3] chrA 141-188 * | 1 [4] chrA 141-188 * | 1 [5] chrB 1-69 * | 2 [6] chrB 1-69 * | 2 [7] chrB 1-69 * | 2 [8] chrB 1-69 * | 2 [9] chrB 70-92 * | 1 [10] chrB 70-92 * | 1 ------- seqinfo: 2 sequences from an unspecified genome > anchors(data, type="second") GRanges object with 10 ranges and 1 metadata column: seqnames ranges strand | nfrags <Rle> <IRanges> <Rle> | <integer> [1] chrA 1-48 * | 1 [2] chrA 1-48 * | 1 [3] chrA 49-94 * | 1 [4] chrA 95-140 * | 1 [5] chrA 1-48 * | 1 [6] chrA 49-94 * | 1 [7] chrA 95-140 * | 1 [8] chrB 1-69 * | 2 [9] chrB 1-69 * | 2 [10] chrB 70-92 * | 1 ------- seqinfo: 2 sequences from an unspecified genome > assay(data) [,1] [1,] 3 [2,] 1 [3,] 2 [4,] 1 [5,] 1 [6,] 2 [7,] 3 [8,] 1 [9,] 2 [10,] 1 > regions(data) GRanges object with 6 ranges and 1 metadata column: seqnames ranges strand | nfrags <Rle> <IRanges> <Rle> | <integer> [1] chrA 1-48 * | 1 [2] chrA 49-94 * | 1 [3] chrA 95-140 * | 1 [4] chrA 141-188 * | 1 [5] chrB 1-69 * | 2 [6] chrB 70-92 * | 1 ------- seqinfo: 2 sequences from an unspecified genome > > data$totals [1] 17 > colData(data) DataFrame with 1 row and 1 column totals <integer> 1 17 > metadata(data) $param Genome contains 7 restriction fragments across 2 chromosomes No discard regions are specified No limits on chromosomes for read extraction No cap on the read pairs per pair of restriction fragments $width [1] 50 > > asDGEList(data) An object of class "DGEList" $counts Sample1 1 3 2 1 3 2 4 1 5 1 6 2 7 3 8 1 9 2 10 1 $samples group lib.size norm.factors Sample1 1 17 1 > asDGEList(data, lib.size=20)$samples group lib.size norm.factors Sample1 1 20 1 > asDGEList(data, norm.factors=2, group="a")$samples group lib.size norm.factors Sample1 a 17 2 > > # Playing around with some bin counts. > stuff <- correctedContact(data) > head(stuff$truth) [1] 1.517032e+04 6.123523e-01 6.123523e-01 8.162749e-01 2.041633e-01 [6] 2.041633e-01 > > data.large <- squareCounts(fout, param, width=100, filter=1) > boxed <- boxPairs(larger=data.large, smaller=data) > head(boxed$indices$larger) [1] 1 2 3 4 5 6 > head(boxed$indices$smaller) [1] 1 2 2 3 4 4 > > head(enrichedPairs(data)) class: InteractionSet dim: 6 1 metadata(2): param width assays(5): counts quadrant vertical horizontal surrounding rownames: NULL rowData names(4): N.quadrant N.vertical N.horizontal N.surrounding colnames: NULL colData names(1): totals type: ReverseStrictGInteractions regions: 6 > head(clusterPairs(data, tol=10)$indices[[1]]) [1] 1 2 2 2 3 3 > > # End. > > unlink(fout) > > proc.time() user system elapsed 14.512 0.715 15.330
diffHic.Rcheck/tests/test-basic.Rout.save
R version 3.5.0 Patched (2018-04-30 r74679) -- "Joy in Playing" Copyright (C) 2018 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. Natural language support but running in an English locale 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. > # These are just placeholders for the real things in inst/tests. > > suppressWarnings(suppressPackageStartupMessages(require(diffHic))) > > hic.file <- system.file("exdata", "hic_sort.bam", package="diffHic") > cuts <- readRDS(system.file("exdata", "cuts.rds", package="diffHic")) > param <- pairParam(fragments=cuts) > > # Setting up the parameters > fout <- "output.h5" > preparePairs(hic.file, param, file=fout) $pairs total marked filtered mapped 32 7 3 22 $same.id dangling self.circle 4 1 $singles [1] 2 $chimeras total mapped multi invalid 12 8 7 5 > head(getPairData(fout, param)) length orientation insert 1 40 1 40 2 80 1 80 3 60 2 54 4 40 3 160 5 20 1 66 6 80 0 114 > > loadChromos(fout) anchor1 anchor2 1 chrA chrA 2 chrB chrA 3 chrB chrB > head(loadData(fout, "chrA", "chrA")) anchor1.id anchor2.id anchor1.pos anchor2.pos anchor1.len anchor2.len 1 2 1 49 14 -5 10 2 2 1 79 9 -10 10 3 2 1 65 21 10 -10 4 4 1 156 6 -10 -10 5 4 2 141 80 -5 10 6 4 2 154 50 10 10 > head(loadData(fout, "chrA", "chrB")) anchor1.id anchor2.id anchor1.pos anchor2.pos anchor1.len anchor2.len 1 5 2 19 44 10 -10 2 5 3 14 105 10 -10 3 6 1 65 19 5 10 4 6 2 24 90 -5 5 5 6 3 24 100 -5 -10 6 6 3 24 95 -5 -10 Warning message: In value[[3L]](cond) : anchor definitions are reversed > > # Loading the counts. > data <- squareCounts(fout, param, width=50, filter=1) > data class: InteractionSet dim: 10 1 metadata(2): param width assays(1): counts rownames: NULL rowData names(0): colnames: NULL colData names(1): totals type: ReverseStrictGInteractions regions: 6 > > margins <- marginCounts(fout, param, width=50) > margins class: RangedSummarizedExperiment dim: 6 1 metadata(1): param assays(1): counts rownames: NULL rowData names(1): nfrags colnames: NULL colData names(1): totals > totalCounts(fout, param) [1] 17 > > regions <- GRanges("chrA", IRanges(c(1, 100, 150), c(20, 140, 160))) > connectCounts(fout, param, regions=regions, filter=1L) class: InteractionSet dim: 2 1 metadata(1): param assays(1): counts rownames: NULL rowData names(0): colnames: NULL colData names(1): totals type: ReverseStrictGInteractions regions: 3 > > # Checking some values. > head(getArea(data)) [1] 2208 2304 2208 2208 3312 3174 > head(pairdist(data)) [1] 47 140 93 47 NA NA > > anchors(data, type="first") GRanges object with 10 ranges and 1 metadata column: seqnames ranges strand | nfrags <Rle> <IRanges> <Rle> | <integer> [1] chrA 49-94 * | 1 [2] chrA 141-188 * | 1 [3] chrA 141-188 * | 1 [4] chrA 141-188 * | 1 [5] chrB 1-69 * | 2 [6] chrB 1-69 * | 2 [7] chrB 1-69 * | 2 [8] chrB 1-69 * | 2 [9] chrB 70-92 * | 1 [10] chrB 70-92 * | 1 ------- seqinfo: 2 sequences from an unspecified genome > anchors(data, type="second") GRanges object with 10 ranges and 1 metadata column: seqnames ranges strand | nfrags <Rle> <IRanges> <Rle> | <integer> [1] chrA 1-48 * | 1 [2] chrA 1-48 * | 1 [3] chrA 49-94 * | 1 [4] chrA 95-140 * | 1 [5] chrA 1-48 * | 1 [6] chrA 49-94 * | 1 [7] chrA 95-140 * | 1 [8] chrB 1-69 * | 2 [9] chrB 1-69 * | 2 [10] chrB 70-92 * | 1 ------- seqinfo: 2 sequences from an unspecified genome > assay(data) [,1] [1,] 3 [2,] 1 [3,] 2 [4,] 1 [5,] 1 [6,] 2 [7,] 3 [8,] 1 [9,] 2 [10,] 1 > regions(data) GRanges object with 6 ranges and 1 metadata column: seqnames ranges strand | nfrags <Rle> <IRanges> <Rle> | <integer> [1] chrA 1-48 * | 1 [2] chrA 49-94 * | 1 [3] chrA 95-140 * | 1 [4] chrA 141-188 * | 1 [5] chrB 1-69 * | 2 [6] chrB 70-92 * | 1 ------- seqinfo: 2 sequences from an unspecified genome > > data$totals [1] 17 > colData(data) DataFrame with 1 row and 1 column totals <integer> 1 17 > metadata(data) $param Genome contains 7 restriction fragments across 2 chromosomes No discard regions are specified No limits on chromosomes for read extraction No cap on the read pairs per pair of restriction fragments $width [1] 50 > > asDGEList(data) An object of class "DGEList" $counts Sample1 1 3 2 1 3 2 4 1 5 1 6 2 7 3 8 1 9 2 10 1 $samples group lib.size norm.factors Sample1 1 17 1 > asDGEList(data, lib.size=20)$samples group lib.size norm.factors Sample1 1 20 1 > asDGEList(data, norm.factors=2, group="a")$samples group lib.size norm.factors Sample1 a 17 2 > > # Playing around with some bin counts. > stuff <- correctedContact(data) > head(stuff$truth) [1] 1.517032e+04 6.123523e-01 6.123523e-01 8.162749e-01 2.041633e-01 [6] 2.041633e-01 > > data.large <- squareCounts(fout, param, width=100, filter=1) > boxed <- boxPairs(larger=data.large, smaller=data) > head(boxed$indices$larger) [1] 1 2 3 4 5 6 > head(boxed$indices$smaller) [1] 1 2 2 3 4 4 > > head(enrichedPairs(data)) class: InteractionSet dim: 6 1 metadata(2): param width assays(5): counts quadrant vertical horizontal surrounding rownames: NULL rowData names(4): N.quadrant N.vertical N.horizontal N.surrounding colnames: NULL colData names(1): totals type: ReverseStrictGInteractions regions: 6 > head(clusterPairs(data, tol=10)$indices[[1]]) [1] 1 2 2 2 3 3 > > # End. > > unlink(fout) > > proc.time() user system elapsed 5.571 0.168 5.757
diffHic.Rcheck/tests/testthat.Rout
R Under development (unstable) (2018-11-27 r75683) -- "Unsuffered Consequences" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-apple-darwin15.6.0 (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(testthat) > library(diffHic) Loading required package: GenomicRanges Loading required package: stats4 Loading required package: BiocGenerics Loading required package: parallel Attaching package: 'BiocGenerics' The following objects are masked from 'package:parallel': clusterApply, clusterApplyLB, clusterCall, clusterEvalQ, clusterExport, clusterMap, parApply, parCapply, parLapply, parLapplyLB, parRapply, parSapply, parSapplyLB 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, append, as.data.frame, basename, cbind, colMeans, colSums, 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, rowMeans, rowSums, rownames, sapply, setdiff, sort, table, tapply, union, unique, unsplit, which, which.max, which.min Loading required package: S4Vectors Attaching package: 'S4Vectors' The following object is masked from 'package:base': expand.grid Loading required package: IRanges Loading required package: GenomeInfoDb Loading required package: InteractionSet Loading required package: SummarizedExperiment Loading required package: Biobase Welcome to Bioconductor Vignettes contain introductory material; view with 'browseVignettes()'. To cite Bioconductor, see 'citation("Biobase")', and for packages 'citation("pkgname")'. Loading required package: DelayedArray Loading required package: matrixStats Attaching package: 'matrixStats' The following objects are masked from 'package:Biobase': anyMissing, rowMedians Loading required package: BiocParallel Attaching package: 'DelayedArray' The following objects are masked from 'package:matrixStats': colMaxs, colMins, colRanges, rowMaxs, rowMins, rowRanges The following objects are masked from 'package:base': aperm, apply, rowsum > > test_check("diffHic") ══ testthat results ═══════════════════════════════════════════════════════════ OK: 309 SKIPPED: 0 FAILED: 0 > > proc.time() user system elapsed 26.708 1.203 28.219
diffHic.Rcheck/diffHic-Ex.timings
name | user | system | elapsed | |
DNaseHiC | 0.161 | 0.006 | 0.167 | |
annotatePairs | 0.444 | 0.007 | 0.454 | |
boxPairs | 0.809 | 0.072 | 0.885 | |
clusterPairs | 0.682 | 0.006 | 0.699 | |
compartmentalize | 1.313 | 0.031 | 1.358 | |
connectCounts | 1.454 | 0.060 | 1.535 | |
consolidatePairs | 0.317 | 0.001 | 0.320 | |
correctedContact | 0.399 | 0.011 | 0.412 | |
cutGenome | 4.540 | 0.121 | 4.725 | |
diClusters | 1.548 | 0.031 | 1.589 | |
diffHicUsersGuide | 0.002 | 0.000 | 0.001 | |
domainDirections | 0.099 | 0.007 | 0.109 | |
enrichedPairs | 0.381 | 0.001 | 0.384 | |
extractPatch | 0.510 | 0.005 | 0.519 | |
filterDiag | 0.101 | 0.005 | 0.106 | |
filterPeaks | 0.199 | 0.001 | 0.200 | |
filters | 0.183 | 0.001 | 0.184 | |
getArea | 0.112 | 0.003 | 0.114 | |
getPairData | 0.054 | 0.004 | 0.058 | |
loadData | 0.069 | 0.006 | 0.075 | |
marginCounts | 0.415 | 0.008 | 0.424 | |
mergeCMs | 0.477 | 0.008 | 0.486 | |
mergePairs | 0.172 | 0.012 | 0.185 | |
neighborCounts | 0.100 | 0.003 | 0.107 | |
normalizeCNV | 10.108 | 0.072 | 10.295 | |
pairParam | 0.063 | 0.001 | 0.064 | |
plotDI | 0.393 | 0.005 | 0.408 | |
plotPlaid | 1.909 | 0.031 | 1.972 | |
preparePairs | 0.176 | 0.021 | 0.196 | |
prunePairs | 0.192 | 0.017 | 0.212 | |
readMTX2IntSet | 0.364 | 0.041 | 0.407 | |
savePairs | 0.056 | 0.005 | 0.061 | |
squareCounts | 0.517 | 0.022 | 0.547 | |
totalCounts | 0.370 | 0.009 | 0.382 | |