| Back to Multiple platform build/check report for BioC 3.9 |
|
This page was generated on 2019-10-16 12:33:11 -0400 (Wed, 16 Oct 2019).
| Package 435/1741 | Hostname | OS / Arch | INSTALL | BUILD | CHECK | BUILD BIN | ||||||
| diffHic 1.16.0 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 |
| Package: diffHic |
| Version: 1.16.0 |
| Command: C:\Users\biocbuild\bbs-3.9-bioc\R\bin\R.exe CMD check --force-multiarch --install=check:diffHic.install-out.txt --library=C:\Users\biocbuild\bbs-3.9-bioc\R\library --no-vignettes --timings diffHic_1.16.0.tar.gz |
| StartedAt: 2019-10-16 03:15:29 -0400 (Wed, 16 Oct 2019) |
| EndedAt: 2019-10-16 03:24:19 -0400 (Wed, 16 Oct 2019) |
| EllapsedTime: 530.0 seconds |
| RetCode: 0 |
| Status: WARNINGS |
| CheckDir: diffHic.Rcheck |
| Warnings: 1 |
##############################################################################
##############################################################################
###
### Running command:
###
### C:\Users\biocbuild\bbs-3.9-bioc\R\bin\R.exe CMD check --force-multiarch --install=check:diffHic.install-out.txt --library=C:\Users\biocbuild\bbs-3.9-bioc\R\library --no-vignettes --timings diffHic_1.16.0.tar.gz
###
##############################################################################
##############################################################################
* using log directory 'C:/Users/biocbuild/bbs-3.9-bioc/meat/diffHic.Rcheck'
* using R version 3.6.1 (2019-07-05)
* using platform: x86_64-w64-mingw32 (64-bit)
* using session charset: ISO8859-1
* using option '--no-vignettes'
* checking for file 'diffHic/DESCRIPTION' ... OK
* this is package 'diffHic' version '1.16.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 whether package 'diffHic' can be installed ... WARNING
Found the following significant warnings:
Rd warning: C:/Users/biocbuild/bbs-3.9-bioc/tmpdir/RtmpAvfTHM/R.INSTALL202c346d6937/diffHic/man/connectCounts.Rd:100: file link 'ReverseStrictGInteractions-class' in package 'InteractionSet' does not exist and so has been treated as a topic
Rd warning: C:/Users/biocbuild/bbs-3.9-bioc/tmpdir/RtmpAvfTHM/R.INSTALL202c346d6937/diffHic/man/filterDiag.Rd:43: file link 'pairdist' in package 'InteractionSet' does not exist and so has been treated as a topic
Rd warning: C:/Users/biocbuild/bbs-3.9-bioc/tmpdir/RtmpAvfTHM/R.INSTALL202c346d6937/diffHic/man/mergeCMs.Rd:13: file link 'deflate' in package 'InteractionSet' does not exist and so has been treated as a topic
Rd warning: C:/Users/biocbuild/bbs-3.9-bioc/tmpdir/RtmpAvfTHM/R.INSTALL202c346d6937/diffHic/man/mergeCMs.Rd:22: file link 'deflate' in package 'InteractionSet' does not exist and so has been treated as a topic
Rd warning: C:/Users/biocbuild/bbs-3.9-bioc/tmpdir/RtmpAvfTHM/R.INSTALL202c346d6937/diffHic/man/mergeCMs.Rd:46: file link 'deflate' in package 'InteractionSet' does not exist and so has been treated as a topic
Rd warning: C:/Users/biocbuild/bbs-3.9-bioc/tmpdir/RtmpAvfTHM/R.INSTALL202c346d6937/diffHic/man/squareCounts.Rd:108: file link 'ReverseStrictGInteractions-class' in package 'InteractionSet' does not exist and so has been treated as a topic
See 'C:/Users/biocbuild/bbs-3.9-bioc/meat/diffHic.Rcheck/00install.out' for details.
* checking installed package size ... NOTE
installed size is 5.7Mb
sub-directories of 1Mb or more:
doc 1.3Mb
libs 2.9Mb
* 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
* loading checks for arch 'i386'
** 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
* loading checks for arch 'x64'
** 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 for i386 is not available
Note: information on .o files for x64 is not available
File 'C:/Users/biocbuild/bbs-3.9-bioc/R/library/diffHic/libs/i386/diffHic.dll':
Found '_exit', possibly from '_exit' (C)
Found 'abort', possibly from 'abort' (C), 'runtime' (Fortran)
Found 'exit', possibly from 'exit' (C), 'stop' (Fortran)
Found 'printf', possibly from 'printf' (C)
Found 'putchar', possibly from 'putchar' (C)
Found 'puts', possibly from 'printf' (C), 'puts' (C)
File 'C:/Users/biocbuild/bbs-3.9-bioc/R/library/diffHic/libs/x64/diffHic.dll':
Found '_exit', possibly from '_exit' (C)
Found 'abort', possibly from 'abort' (C), 'runtime' (Fortran)
Found 'exit', possibly from 'exit' (C), 'stop' (Fortran)
Found 'printf', possibly from 'printf' (C)
Found 'putchar', possibly from 'putchar' (C)
Found 'puts', possibly from 'printf' (C), 'puts' (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 installed files from 'inst/doc' ... OK
* checking files in 'vignettes' ... OK
* checking examples ...
** running examples for arch 'i386' ... OK
Examples with CPU or elapsed time > 5s
user system elapsed
normalizeCNV 13.23 0.28 13.52
cutGenome 6.45 0.19 6.64
** running examples for arch 'x64' ... OK
Examples with CPU or elapsed time > 5s
user system elapsed
normalizeCNV 9.73 0.01 9.75
* checking for unstated dependencies in 'tests' ... OK
* checking tests ...
** running tests for arch 'i386' ...
Running 'test-basic.R'
Comparing 'test-basic.Rout' to 'test-basic.Rout.save' ... OK
Running 'testthat.R'
OK
** running tests for arch 'x64' ...
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 WARNING, 2 NOTEs
See
'C:/Users/biocbuild/bbs-3.9-bioc/meat/diffHic.Rcheck/00check.log'
for details.
diffHic.Rcheck/00install.out
##############################################################################
##############################################################################
###
### Running command:
###
### C:\cygwin\bin\curl.exe -O https://malbec2.bioconductor.org/BBS/3.9/bioc/src/contrib/diffHic_1.16.0.tar.gz && rm -rf diffHic.buildbin-libdir && mkdir diffHic.buildbin-libdir && C:\Users\biocbuild\bbs-3.9-bioc\R\bin\R.exe CMD INSTALL --merge-multiarch --build --library=diffHic.buildbin-libdir diffHic_1.16.0.tar.gz && C:\Users\biocbuild\bbs-3.9-bioc\R\bin\R.exe CMD INSTALL diffHic_1.16.0.zip && rm diffHic_1.16.0.tar.gz diffHic_1.16.0.zip
###
##############################################################################
##############################################################################
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 1455k 100 1455k 0 0 13.6M 0 --:--:-- --:--:-- --:--:-- 14.6M
install for i386
* installing *source* package 'diffHic' ...
** using staged installation
** libs
C:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/Rhtslib/include" -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/zlibbioc/include" -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/Rcpp/include" -I"C:/extsoft/include" -O2 -Wall -mtune=generic -c binner.cpp -o binner.o
C:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/Rhtslib/include" -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/zlibbioc/include" -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/Rcpp/include" -I"C:/extsoft/include" -O2 -Wall -mtune=generic -c check_input.cpp -o check_input.o
C:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/Rhtslib/include" -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/zlibbioc/include" -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/Rcpp/include" -I"C:/extsoft/include" -O2 -Wall -mtune=generic -c cluster_2d.cpp -o cluster_2d.o
C:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/Rhtslib/include" -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/zlibbioc/include" -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/Rcpp/include" -I"C:/extsoft/include" -O2 -Wall -mtune=generic -c count_background.cpp -o count_background.o
C:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/Rhtslib/include" -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/zlibbioc/include" -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/Rcpp/include" -I"C:/extsoft/include" -O2 -Wall -mtune=generic -c count_connect.cpp -o count_connect.o
count_connect.cpp: In function 'SEXPREC* count_connect(SEXP, SEXP)':
count_connect.cpp:57:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (size_t odex=0; odex < ncombos; ++odex) {
^
C:/Rtools/mingw_32/bin/g++ -std=gnu++11 -I"C:/Users/BIOCBU~1/BBS-3~1.9-B/R/include" -DNDEBUG -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/Rhtslib/include" -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/zlibbioc/include" -I"C:/Users/biocbuild/bbs-3.9-bioc/R/library/Rcpp/include" -I"C:/extsoft/include" -O2 -Wall -mtune=generic -c count_patch.cpp -o count_patch.o
count_patch.cpp: In function 'SEXPREC* count_patch(SEXP, SEXP, SEXP, SEXP, SEXP)':
count_patch.cpp:45:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (size_t vecdex=0; vecdex
|
diffHic.Rcheck/tests_i386/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
|
diffHic.Rcheck/tests_x64/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
|
|
diffHic.Rcheck/tests_i386/testthat.Rout
R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-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, 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, 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
Attaching package: 'IRanges'
The following object is masked from 'package:grDevices':
windows
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 | WARNINGS: 0 | FAILED: 0 ]
>
> proc.time()
user system elapsed
18.45 1.54 19.98
|
diffHic.Rcheck/tests_x64/testthat.Rout
R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (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, 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, 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
Attaching package: 'IRanges'
The following object is masked from 'package:grDevices':
windows
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 | WARNINGS: 0 | FAILED: 0 ]
>
> proc.time()
user system elapsed
25.87 0.87 26.73
|
|
diffHic.Rcheck/tests_i386/test-basic.Rout
R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: i386-w64-mingw32/i386 (32-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
|
|
|
diffHic.Rcheck/tests_x64/test-basic.Rout
R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (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
|
|
diffHic.Rcheck/examples_i386/diffHic-Ex.timings
|
diffHic.Rcheck/examples_x64/diffHic-Ex.timings
|