Giter VIP home page Giter VIP logo

binless's Introduction

binless

Resolution-independent normalization of Hi-C data

Refer to the CHANGELOG for the latest changes

Installation

The easy way

Let devtools do the installation for you. Type the following in an R shell

install.packages("devtools")
devtools::install_github("3DGenomes/binless",subdir="binless")

Installation should take about 10 minutes.

Manual installation

You can also install it manually as follows:

  • Download the latest release here
  • Unpack it in a clean folder on your machine, and hit R CMD INSTALL binless in a shell.
  • If it complains that some packages are not installed, you must install them in R using install.packages

Requirements

The minimum required R version is 3.2.0 Binless uses the following packages: data.table, Hmisc, foreach, doParallel, MASS, matrixStats, ggplot2, dplyr, Matrix, quadprog, scales, utils

Also, you will need some common C++ libraries: the GNU Scientific Library (GSL), boost, OpenMP and Eigen. If you use a mac and homebrew, type brew install gsl libomp boost eigen in a terminal and that should be it.

Binless has been developed and tested on a MacBook Pro (2015) and on a CentOS 7 linux workstation with 128Gb RAM and 32 cores. Resource usage can go from modest (fast binless will run on a laptop for loci <10Mb) to huge (fast binless on human chromosome 1 at 5kb base resolution requires about 500Gb of RAM).

How does it work?

In the example/ folder, we provide plots and files to perform a normalization, taken from publicly available data (Rao et al., 2014). Alternatively you can use your own data. Start with something not too large, for example 1Mb. If you want a quick and dirty overview, skip to the Fast binless section. Otherwise, read on.

Preprocessing

Try out the file preprocessing.R, executing each line step by step (e.g. using rstudio). Binless takes mapped read pairs as input, in TADbit .tsv format (see below for file format descriptions). Binless normalization is performed on multiple datasets simultaneously. All .tsv files are pre-processed and put into a single CSnorm object that will hold all relevant information you need. At this point, you will also be able to visualize your data using our base-resolution (arrows) representation.

Optimized binless

See optimized_binless.R. The resolution-independent normalization is performed on the CSnorm object you built at the previous step. Once normalized, datasets can be combined, and signal and difference detection can be performed. This is the full-blown version of the algorithm, with statistically significant output. Note that this is a beta version, so check for updates regularly.

Fast binless

See fast_binless.R. Here, we implemented a fast approximation with fixed fusion penalty and approximate decay and bias terms. You can either use a CSnorm object produced at the preprocessing stage, or directly provide the binned raw matrix. This is a fast and approximate version of the full algorithm, so you will not get statistically significant output. But you can try out a whole chromosome ;)

Chromosome-wide normalization

Binless is meant for locus-specific normalization. If however you need binless on a whole chromosome, the script chromosome_binless.R can be used to combine optimized and fast binless in order to get a good first guess. See the paper for the procedure used to estimate the required parameters.

Base-resolution (arrow) plots

If you just want to see how your data looks like with the arrow plots and are not interested in binless normalization, check out the short tutorial arrow_plot.R.

Questions? Problems?

Check out the FAQ in the GitHub issues tracker. If you don't find anything, just file an issue by clicking on the "New issue" button. You can use it to report bugs, ask questions or suggest new features. We are looking forward to your feedback!

Citation

If you use this software, please acknowledge the following paper

Spill YG, Castillo D, Vidal E, Marti-Renom MA, "Binless normalization of Hi-C data provides significant interaction and difference detection independent of resolution", Nature Communications, 10:1938 (2019) doi:10.1038/s41467-019-09907-2

File format description

TADbit .tsv: tab-separated text file containing paired-end mapped reads for a single experiment. All lines starting with # will be discarded. The order of the reads is unimportant. It has the following columns

  1. id: ID of the mapped pair (alphanumeric without spaces)
  2. chr1: chromosome of read 1 (alphanumeric without spaces)
  3. pos1: position of the 5' end of read 1 (integer)
  4. strand1: whether the read maps on the forward (1) or reverse (0) direction
  5. length1: how many bases were mapped (integer)
  6. re.up1: upstream restriction site closest to pos1 (integer <= pos1)
  7. re.dn1: downstream restriction site closest to pos1 (integer > pos1)
  8. chr2
  9. pos2
  10. strand2
  11. length2
  12. re.up2
  13. re.dn2

Binned raw matrix (used for fast binless): tab, comma or space-separated text file containing multiple datasets. The first line is a header that must start with "name" "bin1" "pos1" "bin2" "pos2" "distance" "observed" "nobs". Optionally, more columns can be added but make sure their column names are different.

  1. name: The name of the dataset. Put in "" if you use spaces
  2. bin1: the label for the bin on the x axis. For example "[begin1,end1)"
  3. pos1: The position in bases of the center of the bin on the x axis
  4. bin2: The label for the bin on the y axis
  5. pos2: The position on the y axis
  6. distance: The average distance (in bases) between the two bins
  7. observed: How many paired-end reads were mapped within (bin1,bin2)
  8. nobs: The number of observables, i.e. four times the number of cut site intersections in that bin

Note that name will be converted to R factors, so you an also provide them as integers starting at 1 (i.e. use 1 for the first dataset, 2 for the second etc.). Also, you must have pos2 >= pos1, and the data must be sorted by name, pos1 and pos2, in that order.

binless's People

Contributors

david-castillo avatar yannickspill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

binless's Issues

Installation failed on CentOS6.6 with R 3.5.1

Hi there.
I have a problem when install binless...

devtools::install_github("3DGenomes/binless",subdir="binless")
Downloading GitHub repo 3DGenomes/binless@master
These packages have more recent versions available.
Which would you like to update?

1: All
2: CRAN packages only
3: None
4: digest (0.6.18 -> 0.6.19) [CRAN]
5: knitr (1.22 -> 1.23 ) [CRAN]

Enter one or more numbers separated by spaces, or an empty line to cancel
1: 1
digest (0.6.18 -> 0.6.19) [CRAN]
knitr (1.22 -> 1.23 ) [CRAN]
Installing 2 packages: digest, knitr
trying URL 'http://mirrors.ustc.edu.cn/CRAN/src/contrib/digest_0.6.19.tar.gz'
Content type 'application/gzip' length 140243 bytes (136 KB)

downloaded 136 KB

trying URL 'http://mirrors.ustc.edu.cn/CRAN/src/contrib/knitr_1.23.tar.gz'
Content type 'application/gzip' length 880134 bytes (859 KB)

downloaded 859 KB

  • installing source package 'digest' ...
    ** package 'digest' successfully unpacked and MD5 sums checked
    ** libs
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -g -O2 -c SpookyV2.cpp -o SpookyV2.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c aes.c -o aes.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c crc32.c -o crc32.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c digest.c -o digest.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c digest2int.c -o digest2int.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c init.c -o init.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c md5.c -o md5.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c pmurhash.c -o pmurhash.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c raes.c -o raes.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c sha1.c -o sha1.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c sha2.c -o sha2.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c sha256.c -o sha256.o
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -g -O2 -c spooky_serialize.cpp -o spooky_serialize.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c xxhash.c -o xxhash.o
    g++ -std=gnu++11 -shared -L/public1/home/stu_wangyibin/packages/R-devel/lib64/R/lib -fPIC -L/public1/home/stu_wangyibin/software/zlib-1.2.11/lib -L/public1/home/stu_wangyibin/packages/lib -o digest.so SpookyV2.o aes.o crc32.o digest.o digest2int.o init.o md5.o pmurhash.o raes.o sha1.o sha2.o sha256.o spooky_serialize.o xxhash.o -L/public1/home/stu_wangyibin/packages/R-devel/lib64/R/lib -lR
    installing to /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/digest/libs
    ** R
    ** 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
  • DONE (digest)
  • installing source package 'knitr' ...
    ** package 'knitr' successfully unpacked and MD5 sums checked
    ** R
    ** demo
    ** 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
  • DONE (knitr)

The downloaded source packages are in
'/tmp/RtmppMrezo/downloaded_packages'
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
checking for file '/tmp/RtmppMrezo/remotes936475d47ff/3DGenomes-binless-602fv checking for file '/tmp/RtmppMrezo/remotes936475d47ff/3DGenomes-binless-602fbc6/binless/DESCRIPTION' (643ms)

  • preparing 'binless':
    v checking DESCRIPTION meta-information
  • cleaning src
  • running 'cleanup'
  • checking for LF line-endings in source and make files and shell scripts (650ms)
  • checking for empty or unneeded directories
  • building 'binless_0.15.0.tar.gz'
  • installing source package 'binless' ...
    ** libs
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -g -O2 -c AnalyticalGAMLibrary.cpp -o AnalyticalGAMLibrary.o
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -g -O2 -c FastData.cpp -o FastData.o
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -g -O2 -c GFLLibraryTrapezeImpl.cpp -o GFLLibraryTrapezeImpl.o
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -g -O2 -c GFLLibraryTriangleImpl.cpp -o GFLLibraryTriangleImpl.o
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -g -O2 -c QuadProg++.cpp -o QuadProg++.o
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -g -O2 -c QuadProgGAMLibrary.cpp -o QuadProgGAMLibrary.o
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -g -O2 -c candidate_generation.cpp -o candidate_generation.o
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -g -O2 -c csnorm_cpp.cpp -o csnorm_cpp.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c cts_core.c -o cts_core.o
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -g -O2 -c cts_to_mat.cpp -o cts_to_mat.o
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -g -O2 -c fast_binless.cpp -o fast_binless.o
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -g -O2 -c fast_dataframe.cpp -o fast_dataframe.o
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -g -O2 -c gam.cpp -o gam.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c gfl_csparse.c -o gfl_csparse.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c gfl_graph_fl.c -o gfl_graph_fl.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c gfl_tf.c -o gfl_tf.o
    gcc -std=gnu99 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -fPIC -I/public1/home/stu_wangyibin/software/zlib-1.2.11/include -I/public1/home/stu_wangyibin/packages/include -c gfl_utils.c -o gfl_utils.o
    g++ -std=gnu++11 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/Rcpp/include" -I"/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/RcppEigen/include" -I/usr/local/include -fpic -g -O2 -c graph_helpers.cpp -o graph_helpers.o
    In file included from /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/tti/has_member_function.hpp:15:0,
    from /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/graph/depth_first_search.hpp:27,
    from /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/graph/connected_components.hpp:15,
    from graph_helpers.cpp:7:
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/graph/depth_first_search.hpp: In substitution of 'template static boost::type_traits::yes_type boost::detail::has_member_function_finish_edge_detail_types<BOOST_TTI_DETAIL_TP_PMEMF, BOOST_TTI_DETAIL_TP_C>::chkt(boost::detail::has_member_function_finish_edge_detail_types<BOOST_TTI_DETAIL_TP_PMEMF, BOOST_TTI_DETAIL_TP_C>::helper<(& BOOST_TTI_DETAIL_TP_EC:: finish_edge)>) [with BOOST_TTI_DETAIL_TP_EC = boost::detail::components_recorder<int>]':
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/graph/depth_first_search.hpp:63:5: required from 'struct boost::detail::has_member_function_finish_edge_detail_types<void (boost::detail::components_recorder<int*>::)(boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, const boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, Coordinate>&), boost::detail::components_recorder<int> >'
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/graph/depth_first_search.hpp:63:5: required from 'struct boost::detail::has_member_function_finish_edge_detail_ctmf_invoke<boost::detail::components_recorder<int*>, void, boost::mpl::vector<boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, const boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, Coordinate>&, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, boost::function_types::detail::property_tag<0l, 0l> >'
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/mpl/eval_if.hpp:38:31: required from 'struct boost::mpl::eval_if<boost::is_class<boost::detail::components_recorder<int*> >, boost::detail::has_member_function_finish_edge_detail_ctmf_invoke<boost::detail::components_recorder<int*>, void, boost::mpl::vector<boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, const boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, Coordinate>&, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, boost::function_types::detail::property_tag<0l, 0l> >, mpl_::bool_ >'
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/graph/depth_first_search.hpp:63:5: required from 'struct boost::detail::has_member_function_finish_edge_detail_call_types<boost::detail::components_recorder<int*>, void, boost::mpl::vector<boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, const boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, Coordinate>&, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, boost::function_types::detail::property_tag<0l, 0l> >'
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/mpl/eval_if.hpp:38:31: required from 'struct boost::mpl::eval_if<boost::mpl::and_<boost::is_same<void, boost::tti::detail::deftype>, boost::is_same<boost::mpl::vector<boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, const boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, Coordinate>&, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, boost::mpl::vector<mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na> >, boost::is_same<boost::function_types::detail::property_tag<0l, 0l>, boost::function_types::detail::property_tag<0l, 0l> >, mpl_::bool_, mpl_::bool_ >, boost::detail::has_member_function_finish_edge_detail_check_comp<boost::detail::components_recorder<int*> >, boost::detail::has_member_function_finish_edge_detail_call_types<boost::detail::components_recorder<int*>, void, boost::mpl::vector<boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, const boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, Coordinate>&, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, boost::function_types::detail::property_tag<0l, 0l> > >'
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/graph/depth_first_search.hpp:63:5: [ skipping 4 instantiation contexts, use -ftemplate-backtrace-limit=0 to disable ]
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/graph/depth_first_search.hpp:239:57: required from 'void boost::depth_first_search(const VertexListGraph&, DFSVisitor, ColorMap, typename boost::graph_traits::vertex_descriptor) [with VertexListGraph = boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, Coordinate>; DFSVisitor = boost::detail::components_recorder<int*>; ColorMap = boost::shared_array_property_map<boost::default_color_type, boost::vec_adj_list_vertex_id_map<Coordinate, long unsigned int> >; typename boost::graph_traits::vertex_descriptor = long unsigned int]'
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/graph/depth_first_search.hpp:338:117: required from 'void boost::graph::detail::depth_first_search_impl::operator()(const Graph&, const ArgPack&) const [with ArgPack = boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::graph::keywords::tag::visitor, const boost::detail::components_recorder<int*> >, boost::parameter::aux::empty_arg_list>; Graph = boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, Coordinate>]'
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/graph/depth_first_search.hpp:342:5: required from 'typename boost::result_of<boost::graph::detail::depth_first_search_impl(Param0, const ArgPack&)>::type boost::graph::depth_first_search_with_named_params(const Param0&, const ArgPack&) [with Param0 = boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, Coordinate>; ArgPack = boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<boost::graph::keywords::tag::visitor, const boost::detail::components_recorder<int*> >, boost::parameter::aux::empty_arg_list>; typename boost::result_of<boost::graph::detail::depth_first_search_impl(Param0, const ArgPack&)>::type = void]'
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/graph/depth_first_search.hpp:345:3: required from 'typename boost::result_of<boost::graph::detail::depth_first_search_impl(Param0, const typename boost::detail::convert_bgl_params_to_boost_parameter<boost::bgl_named_params<T, Tag, Base> >::type&)>::type boost::depth_first_search(const Param0&, const boost::bgl_named_params<T, Tag, Base>&) [with Param0 = boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, Coordinate>; P = boost::detail::components_recorder<int*>; T = boost::graph_visitor_t; R = boost::no_property; typename boost::result_of<boost::graph::detail::depth_first_search_impl(Param0, const typename boost::detail::convert_bgl_params_to_boost_parameter<boost::bgl_named_params<T, Tag, Base> >::type&)>::type = void]'
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/graph/connected_components.hpp:96:39: required from 'typename boost::property_traits::value_type boost::connected_components(const Graph&, ComponentMap, typename boost::enable_if_c<boost::is_base_and_derived<boost::vertex_list_graph_tag, typename boost::graph_traits::traversal_category>::value, boost::graph::detail::no_parameter>::type) [with Graph = boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, Coordinate>; ComponentMap = int*; typename boost::property_traits::value_type = int; typename boost::enable_if_c<boost::is_base_and_derived<boost::vertex_list_graph_tag, typename boost::graph_traits::traversal_category>::value, boost::graph::detail::no_parameter>::type = boost::graph::detail::no_parameter]'
    graph_helpers.cpp:51:60: required from here
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/tti/detail/dmem_fun.hpp:59:43: error: '&boost::dfs_visitor<>::finish_edge' is not a valid template argument for type 'void (boost::detail::components_recorder<int*>::)(boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, const boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, Coordinate>&)' because it is of type 'void (boost::dfs_visitor<>::)(boost::detail::edge_desc_impl<boost::undirected_tag, long unsigned int>, const boost::adjacency_list<boost::vecS, boost::vecS, boost::undirectedS, Coordinate>&)'
    static ::boost::type_traits::yes_type chkt(helper<&BOOST_TTI_DETAIL_TP_EC:
    ^
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/tti/detail/dmem_fun.hpp:71:3: note: in expansion of macro 'BOOST_TTI_DETAIL_TRAIT_HAS_TYPES_MEMBER_FUNCTION'
    BOOST_TTI_DETAIL_TRAIT_HAS_TYPES_MEMBER_FUNCTION(trait,name)
    ^
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/tti/detail/dmem_fun.hpp:84:3: note: in expansion of macro 'BOOST_TTI_DETAIL_TRAIT_CTMF_INVOKE'
    BOOST_TTI_DETAIL_TRAIT_CTMF_INVOKE(trait,name)
    ^
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/tti/detail/dmem_fun.hpp:114:3: note: in expansion of macro 'BOOST_TTI_DETAIL_TRAIT_HAS_CALL_TYPES_MEMBER_FUNCTION'
    BOOST_TTI_DETAIL_TRAIT_HAS_CALL_TYPES_MEMBER_FUNCTION(trait,name)
    ^
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/tti/has_member_function.hpp:66:3: note: in expansion of macro 'BOOST_TTI_DETAIL_TRAIT_HAS_MEMBER_FUNCTION'
    BOOST_TTI_DETAIL_TRAIT_HAS_MEMBER_FUNCTION(trait,name)
    ^
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/tti/has_member_function.hpp:112:3: note: in expansion of macro 'BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION'
    BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION
    ^
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/graph/depth_first_search.hpp:63:5: note: in expansion of macro 'BOOST_TTI_HAS_MEMBER_FUNCTION'
    BOOST_TTI_HAS_MEMBER_FUNCTION(finish_edge)
    ^
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/tti/detail/dmem_fun.hpp:59:43: note: standard conversions are not allowed in this context
    static ::boost::type_traits::yes_type chkt(helper<&BOOST_TTI_DETAIL_TP_EC:
    ^
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/tti/detail/dmem_fun.hpp:71:3: note: in expansion of macro 'BOOST_TTI_DETAIL_TRAIT_HAS_TYPES_MEMBER_FUNCTION'
    BOOST_TTI_DETAIL_TRAIT_HAS_TYPES_MEMBER_FUNCTION(trait,name)
    ^
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/tti/detail/dmem_fun.hpp:84:3: note: in expansion of macro 'BOOST_TTI_DETAIL_TRAIT_CTMF_INVOKE'
    BOOST_TTI_DETAIL_TRAIT_CTMF_INVOKE(trait,name)
    ^
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/tti/detail/dmem_fun.hpp:114:3: note: in expansion of macro 'BOOST_TTI_DETAIL_TRAIT_HAS_CALL_TYPES_MEMBER_FUNCTION'
    BOOST_TTI_DETAIL_TRAIT_HAS_CALL_TYPES_MEMBER_FUNCTION(trait,name)
    ^
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/tti/has_member_function.hpp:66:3: note: in expansion of macro 'BOOST_TTI_DETAIL_TRAIT_HAS_MEMBER_FUNCTION'
    BOOST_TTI_DETAIL_TRAIT_HAS_MEMBER_FUNCTION(trait,name)
    ^
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/tti/has_member_function.hpp:112:3: note: in expansion of macro 'BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION'
    BOOST_TTI_TRAIT_HAS_MEMBER_FUNCTION
    ^
    /public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/BH/include/boost/graph/depth_first_search.hpp:63:5: note: in expansion of macro 'BOOST_TTI_HAS_MEMBER_FUNCTION'
    BOOST_TTI_HAS_MEMBER_FUNCTION(finish_edge)
    ^
    make: *** [graph_helpers.o] Error 1
    ERROR: compilation failed for package 'binless'
  • removing '/public1/home/stu_wangyibin/packages/R-devel/lib64/R/library/binless'
    Error in i.p(...) :
    (converted from warning) installation of package '/tmp/RtmppMrezo/file9366b217c10/binless_0.15.0.tar.gz' had non-zero exit status

Any help would be greatly appreciated !

Thanks so much

I got error in running chromosome_binless.R script

Hi,
I, Ajay Kumar Saw, a research scholar in IISER, Pune, India.
I am trying to run binless protocol. I successful run preprocessing.R, optimized_binless.R and fast_binless.R but I stuck in "chromosome_binless.R". I need your help to sort out this issue. Thank you in advance for your help.

####### R version information ################################################

R version 3.6.1 (2019-07-05) -- "Action of the Toes"
Copyright (C) 2019 The R Foundation for Statistical Computing
Platform: x86_64-conda_cos6-linux-gnu (64-bit)

###########################################

I got error while running "chromosome_binless.R" script which is given below:-

library(binless)
ajay1 <- load("example/rao_HiCall_SEMA3C_csnorm.RData")
args=commandArgs(trailingOnly=TRUE)
args = c("5000","ajay1")
args
[1] "5000" "ajay1"
if (length(args)<= 1 || length(args) > 3) stop(paste0("\nargs: resolution sample1 [sample2]\n"))
resolution=as.integer(args[1])
sample=args[2] #provide path to csdata object in RData format
if (length(args)==3) { sample2 = args[3] } else { sample2 = NA }
ncores = 8
far.cutoff=10e6
out_prefix="chromosome_binless"
zoom_region="full"
chromosome_binless(sample, sample2=sample2, zoom_region=zoom_region, ncores=ncores, base.res=resolution, far.cutoff=far.cutoff, out_prefix=out_prefix)
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
In addition: Warning message:
In readChar(con, 5L, useBytes = TRUE) :
cannot open compressed file 'ajay1', probable reason 'No such file or directory'

installation failed on Mac Book Pro with R 3.5.1

Hi,
I have a problem with the installation, see the output below.

Any clue?

R version 3.5.1 (2018-07-02) -- "Feather Spray"
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.

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.

library(devtools)
Warning messages:
1: package ‘devtools’ was built under R version 3.5.2
2: package ‘usethis’ was built under R version 3.5.2
devtools::install_github("3DGenomes/binless",subdir="binless")
Downloading GitHub repo 3DGenomes/binless@master
Skipping 1 packages not available: quadprog
✔ checking for file ‘/private/var/folders/r6/fttwjvts4tx456v09tzw9flr0000gn/T/RtmpqvMtyd/remotes811a1dd064ee/3DGenomes-binless-ccc92c3/binless/DESCRIPTION’ ...
─ preparing ‘binless’:
✔ checking DESCRIPTION meta-information ...
─ cleaning src
─ running ‘cleanup’
─ checking for LF line-endings in source and make files and shell scripts (455ms)
─ checking for empty or unneeded directories
─ building ‘binless_0.15.0.tar.gz’

  • installing source package ‘binless’ ...
    ** libs
    clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include" -I/usr/local/include -fPIC -Wall -g -O2 -c AnalyticalGAMLibrary.cpp -o AnalyticalGAMLibrary.o
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:30:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Core:535:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:30:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:2:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/LU:47:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:30:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:3:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Cholesky:12:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Jacobi:29:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:30:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:3:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Cholesky:43:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:30:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:4:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/QR:17:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Householder:27:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:30:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:5:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/SVD:48:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:30:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:6:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Geometry:58:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:30:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Dense:7:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Eigenvalues:58:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:31:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Sparse:26:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/SparseCore:66:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:31:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Sparse:27:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/OrderingMethods:71:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:31:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Sparse:29:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/SparseCholesky:43:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:31:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Sparse:32:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/SparseQR:35:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:31:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/Sparse:33:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/IterativeLinearSolvers:46:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:32:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/CholmodSupport:45:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:35:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/unsupported/Eigen/KroneckerProduct:34:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/unsupported/Eigen/../../Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:39:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/unsupported/Eigen/Polynomials:135:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/unsupported/Eigen/../../Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    In file included from AnalyticalGAMLibrary.cpp:1:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigen.h:25:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/RcppEigenForward.h:40:
    In file included from /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/unsupported/Eigen/SparseExtra:51:
    /Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include/unsupported/Eigen/../../Eigen/src/Core/util/ReenableStupidWarnings.h:10:30: warning: pragma diagnostic pop could not pop, no matching push [-Wunknown-pragmas]
    #pragma clang diagnostic pop
    ^
    17 warnings generated.
    clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include" -I/usr/local/include -fPIC -Wall -g -O2 -c FastData.cpp -o FastData.o
    clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/BH/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/Rcpp/include" -I"/Library/Frameworks/R.framework/Versions/3.5/Resources/library/RcppEigen/include" -I/usr/local/include -fPIC -Wall -g -O2 -c GFLLibraryTrapezeImpl.cpp -o GFLLibraryTrapezeImpl.o
    In file included from GFLLibraryTrapezeImpl.cpp:6:
    In file included from ./gfl_graph_fl.h:14:
    In file included from ./gfl_tf.h:39:
    ./gfl_utils.h:29:10: fatal error: 'gsl/gsl_rng.h' file not found
    #include <gsl/gsl_rng.h>
    ^~~~~~~~~~~~~~~
    1 error generated.
    make: *** [GFLLibraryTrapezeImpl.o] Error 1
    ERROR: compilation failed for package ‘binless’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/binless’
    Error in i.p(...) :
    (converted from warning) installation of package ‘/var/folders/r6/fttwjvts4tx456v09tzw9flr0000gn/T//RtmpqvMtyd/file811a7ede504b/binless_0.15.0.tar.gz’ had non-zero exit status

sequencing depth normalization before Binless

Hello,

I am interested in comparing samples with different conditions which were done in three replicates. The total number of reads in one condition, across multiple replicates vary a lot. I wonder whether you would recommend down-sampling the replicate with higher read before performing normalization with Binless.

Thank you in advance for your answer.

How to get significant interactions?

After I have generated the mat object and do the plot_binless_matrix() I set a threshold and then get the top 1% or so. But, this strategy leads me to calling always significant bins, even if in a certain region there is nothing significant, because I am splitting the dataset in 100 parts and simply taking the 1% higher values.

How can I select the statistically relevant interactions without using this thresholding system?

Thanks,
Juan

No man pages found in package ‘binless’

Although there is a directory binless/man/ with manual pages in there, installing binless from the git repository, the manual pages are not installed.

$ R --version
R version 3.5.3 (2019-03-11) -- "Great Truth"
[…]
$ git describe
v0.15.0-4-g067ef87
$ R CMD INSTALL --preclean --debug binless
[…]
installing to /home/joey/R/x86_64-pc-linux-gnu-library/3.5/binless/libs
** R
** byte-compile and prepare package for lazy loading
** help
No man pages found in package  ‘binless’ 
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (binless)
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   binless/NAMESPACE
	deleted:    binless/man/CSbdiff-class.Rd
	deleted:    binless/man/CSbsig-class.Rd
	deleted:    binless/man/CSdata-class.Rd
	deleted:    binless/man/CSdiff-class.Rd
	deleted:    binless/man/CSgroup-class.Rd
[…]

So somehow these files are deleted when building the package.

save_stripped not working perfectly

  • fname argument is not correct in optimized_binless.R
  • stripped CSnorm object is still too heavy. Are we removing all we can in the binning stage?

Compilation error in Arch Linux with R 3.6.0

I got a build error on Arch Linux with R 3.6.0

I installed with:

remotes::install_github("3DGenomes/binless",subdir="binless")

I believe this is the relevant part of the output but I can include the whole thing if you want.

g++ -std=gnu++11 -I"/usr/include/R/" -DNDEBUG -UNDEBUG -DUSE_BOOST=1 -I"/home/tom/.local/lib/R/library/BH/include" -I"
/home/tom/.local/lib/R/library/Rcpp/include" -I"/home/tom/.local/lib/R/library/RcppEigen/include" -D_FORTIFY_SOURCE=2
 -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt  -c perf_iteration_diff.cpp -o perf_i
teration_diff.o

...
~ various warnings and notes
...

In file included from ScoreComputer.hpp:13,
                 from FixedSparsity.hpp:8,
                 from perf_iteration_diff.cpp:15:
ScorePreparator.hpp: In member function ‘std::vector<double> ScorePreparator<CVkSD<kSD>, GaussianEstimator>::get_betas
() const’:
ScorePreparator.hpp:33:52: error: could not convert ‘((const ScorePreparator<CVkSD<kSD>, GaussianEstimator>*)this)->Sc
orePreparator<CVkSD<kSD>, GaussianEstimator>::betas_’ from ‘vector<std::vector<double>>’ to ‘vector<double>’
     std::vector<double> get_betas() const { return betas_; }
                                                    ^~~~~~

I successfully built this with Ubuntu 18.04 and R 3.6.0, and the only difference (that I can tell anyway) is the compiler flags. I guess the method gets optimized away somehow, because I don't see where it's used?

Anyway it just seems like a simple type error, so after changing the type

diff --git a/binless/src/ScorePreparator.hpp b/binless/src/ScorePreparator.hpp
index 4c7fee6..7a22627 100644
--- a/binless/src/ScorePreparator.hpp
+++ b/binless/src/ScorePreparator.hpp
@@ -30,7 +30,7 @@ public:
     std::vector<double> get_beta_cv() const { return beta_cv_; }
     Rcpp::NumericVector get_likelihood_var() const { return Rcpp::wrap(beta_cv_); }

-    std::vector<double> get_betas() const { return betas_; }
+    std::vector<std::vector<double> > get_betas() const { return betas_; }

 private:

it compiles and installs successfully.

error in normalize_binless

Hi,
I am trying to run optimized_binless protocol. I successfully run preprocessing.R,
At the third iteration of normalize_binless I have a reproducible error:

Iteration 1

Residuals
Exposures
log-likelihood = 22.44619
Dispersion
fit: alpha 108913.2
log-likelihood = -19171238
Genomic
group 1 : 10 steps lambda_iota 0.01666102 lambda_rho 0.0151357
group 2 : 7 steps lambda_iota 0.01875217 lambda_rho 0.02100009
log-likelihood = -239971.1
Decay
group 1 : 3 steps lambda_diag 0.1814284
log-likelihood = -111541.3

Iteration 2

Residuals
Exposures
log-likelihood = 33.22606
Dispersion
fit: alpha 0.01
log-likelihood = -4687710
Genomic
group 1 : 42 steps lambda_iota 1.693895e-05 lambda_rho 1.143178e-05
group 2 : 25 steps lambda_iota 0.0003145 lambda_rho 0.0001278387
log-likelihood = -348224061259
Decay
group 1 : 1 steps lambda_diag 0.1268076
log-likelihood = -244909

Iteration 3

Residuals
Exposures
log-likelihood = 15.92615
Dispersion
Error in { : task 7 failed - "missing value where TRUE/FALSE needed"
Calls: normalize_binless ... system.time -> -> %dopar% ->
Timing stopped at: 36.34 18.49 12.62
Execution halted

Could you please help me to solve the error?

Installation failed on CentOS7 with R 3.5.3

Hi there,

I am having trouble installing binless....

I am working on CentOS7 with R3.5.3 and tried the following command :
devtools::install_github("3DGenomes/binless/binless")

Everything seems to go quite smoothly during compilation, then....
Here is the end of the output :
`g++ -std=gnu++11 -shared -Linstall_path_of_R/lib64/R/lib -L/usr/local/lib64 -o binless.so AnalyticalGAMLibrary.o FastData.o GFLLibraryTrapezeImpl.o GFLLibraryTriangleImpl.o QuadProg++.o QuadProgGAMLibrary.o candidate_generation.o csnorm_cpp.o cts_core.o cts_to_mat.o fast_binless.o fast_dataframe.o gam.o gfl_csparse.o gfl_graph_fl.o gfl_tf.o gfl_utils.o graph_helpers.o minimum_UB.o perf_iteration_diff.o perf_iteration_signal.o spline.o util.o -lgsl -lgslcblas -lboost_iostreams -Linstall_path_of_R/lib64/R/lib -lR
installing to install_path_of_R/lib64/R/library/binless/libs
** R
** byte-compile and prepare package for lazy loading
** help
No man pages found in package ‘binless’
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error: package or namespace load failed for ‘binless’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object 'install_path_of_R/lib64/R/library/binless/libs/binless.so':
install_path_of_R/lib64/R/library/binless/libs/binless.so: undefined symbol: _ZN5boost9iostreams20file_descriptor_sinkC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt13_Ios_Openmode
Error: loading failed
Execution halted
ERROR: loading failed

  • removing ‘install_path_of_R/lib64/R/library/binless’
    Error in i.p(...) :
    (converted from warning) installation of package ‘/gs/scratch/ehenrion/RtmpqcSM3H/filed9f577dd233/binless_0.15.0.tar.gz’ had non-zero exit status

`

Any help would be greatly appreciated !

Thanks so much,
Edouard

Accounting for batch effects

Hi,
I was wondering if there is a way to include batches in the binless analyses. I have 4 conditions, of which two have 3 replicates (control & treatment) and two have only 2 replicates (control + inhibitor as well as treatment + inhibitor). We are interested in detecting differences induced by treatment and dependent on the inhibitor but already noticed that one of our replicate batches clusters separately (globally the same changes are still visible though).
Any advice is greatly appreciated!
Best regards

Error in mean(contact.up) : object 'contact.up' not found

Hi,
I am encountering the following error

Error in mean(contact.up) : object 'contact.up' not found

when running read_and_prepare() for my samples and specifying a locus (c("chr1","23552917","23564794")).
I was able to trace the cause to a call of dset_statistics(), however, the problem arises because no reads fulfill the criteria of the "contact.up" category for my locus of interest.

To solve this problem, one could initialize all categories with 0 counts before calculating Y in prepare_for_sparse_cs_norm() (line 38) or introduce any missing columns after Y has been calculated:

Y = dcast.data.table(enrich[id1 != id2 & category %in% c("contact.close", 
  "contact.down", "contact.far", "contact.up"), .(id1, 
  id2, pos1 = re.closest1, pos2 = re.closest2, category, 
  N)], ... ~ category, value.var = "N", fill = 0)
if (!all(c("contact.close", "contact.down", "contact.far", "contact.up") %in% colnames(Y))) {
  missing <- c("contact.close", "contact.down", "contact.far","contact.up")[!c("contact.close","contact.down", "contact.far", "contact.up") %in% colnames(Y)]
  Y[,missing] <- 0
}

Best regards

README recommendations

The command described did not work for me, but this did instead:

devtools::install_github("3DGenomes/binless/binless")

Also, please specify minimum required R version is R v3.2.0.

Regards

normalize_binless Error of rbindlist

Hi
I have a trouble when I run normalize_binless:
I don't know how should I do for sloving this error.

library(ggplot2)
library(scales)
library(data.table)
data.table 1.12.2 using 48 threads (see ?getDTthreads). Latest news: r-datatable.com
library(foreach)
library(binless)
Loading required package: Rcpp
Loading required package: RcppEigen
Binless version 0.15.0

csd = read_and_prepare('Chr1.tsv','Chr1_1M',c('Chr1'), '1',enzyme='MboI', nam*** READ, circularize=-1, dangling.L=c(0),dangling.R=c(3),maxlen=1500,read.len=|--------------------------------------------------|
|==================================================|
put read2 always downstream of read1
set rbegin and rend
find each read's closest restriction site
number it
sort by begins
remove duplicates
*** CATEGORIZE
Contacts
Random
Rejoined
Self Circle
Dangling L/R
*** BIASES AND COUNTS
Sum up counts and biases
Reattribute biases to proper rsites
Add Rsite info
Produce bias list
Produce count list
Mean counts
Rejoined : 1.203869
Dangling L: 0.00614342
Dangling R: 0.01183917
C. close : 0.307316
C. far : 0.3020897
C. up : 0.3117914
C. down : 0.3113474
Median counts
Rejoined : 0
Dangling L: 0
Dangling R: 0
C. close : 0
C. far : 0
C. up : 0
C. down : 0
Percent of zero counts
Rejoined : 51.1116
Dangling L: 99.48897
Dangling R: 99.01857
C. close : 74.79925
C. far : 75.15272
C. up : 74.41302
C. down : 74.45141
*** WRITE
load('Chr1_1M_csdata_with_data.RData')
data=get_raw_reads(csd@data, csd@biases[,min(pos)], csd@biases[,max(pos)])
cs=merge_cs_norm_datasets(list(csd), different.decays="none")
compile table of experiments, sorted by id
Chr1 : fused 3033 cut sites ( 2.088901 %)
Chr1 : Removing possible PCR artifacts
pos1 = 31651531 pos2 = 32779896 distance = 1128365 contact.up = 8
pos1 = 9316463 pos2 = 25345388 distance = 16028925 contact.up = 7
pos1 = 7762423 pos2 = 33570639 distance = 25808216 contact.close = 7
pos1 = 5411758 pos2 = 34621900 distance = 29210142 contact.down = 7
pos1 = 3686275 pos2 = 41134083 distance = 37447808 contact.down = 7
pos1 = 27743815 pos2 = 34527059 distance = 6783244 contact.close = 8
pos1 = 32245999 pos2 = 42554587 distance = 10308588 contact.close = 8
pos1 = 1277824 pos2 = 19170741 distance = 17892917 contact.up = 8
pos1 = 10517733 pos2 = 28509278 distance = 17991545 contact.close = 8
pos1 = 2728458 pos2 = 25272595 distance = 22544137 contact.down = 8
merge biases and counts into data tables, make IDs unique
design matrix
enforce minimum distance
return CSnorm object
ncores=4 #parallelize on so many processors
ngibbs=15 #maximum number of iterations
base.res=5000 #base resolution for the fused lasso signal detection
bg.steps=5 #maximum number of steps where only the background model is fitted
ncores=12
tol=1e-1 #relative tolerance on computed quantities upon convergence
cs <- normalize_binless(cs, ngibbs = ngibbs, ncores = ncores, base.res = baseNormalization with fast approximation and performance iteration
No initial guess provided
Preparing for signal estimation
Counting zeros

Error in rbindlist(l, use.names, fill, idcol) :
Total rows in the list is 2616377574 which is larger than the maximum number of rows, currently 2147483647

Any help would be greatly appreciated !
Thanks so much,
YibinWang

Interaction and difference detection

Hi,
I have a question regarding the method to detect interaction and difference. Is there p-values associated with the significant interactions and differences? I cannot find this information from the paper. Or are you suppose to filter interactions based only on the fold-change? Thanks!

*tsv.gz files from /example not downloading correctly

Yannick,

The tsv files for doing the example are not downloading correctly, either by cloning the repo or by downloading binless manually. Seeing their size in gitHub says iuts 50 Mb, but when I see it in my folder its only 133 bits, and I am not able to open them from the code in tutorial. This is the error, just in case, but it says that file is empty:

Error in fread(fname, col.names = c("id", "chr1", "begin1", "strand1", : File is empty: /dev/shm/file199ee33727
Traceback:

1. examine_dataset("zcat ~/binless/example/GM12878_MboI_HICall_FOXP1ext.tsv.gz", 
 .     skip = 0L, nrows = 1e+06, skip.fbm = T, read.len = 101)
2. read_tsv(infile, skip = skip, nrows = nrows, locus = locus)
3. fread(fname, col.names = c("id", "chr1", "begin1", "strand1", 
 .     "length1", "re.up1", "re.dn1", "chr2", "begin2", "strand2", 
 .     "length2", "re.up2", "re.dn2"), nrows = nrows, skip = skip)

Thank you!

Best,
Juan

read_and_prepare error

csd=read_and_prepare(paste0(wdir,"/",sample,"-chr7.tsv"),
paste0(wdir,"/",sample,"-chr7.RData"), sample, "1",
enzyme="MboI", name=sample, dangling.L=c(0),circularize=-1,
dangling.R=c(3), maxlen=800, read.len=100, dmin=1000, save.data=T)

*** BIASES AND COUNTS
Sum up counts and biases
Reattribute biases to proper rsites
Add Rsite info
Produce bias list
Error in dcast.data.table(enrich[id1 == id2 & category %in% c("dangling.L", :
Can not cast an empty data.table

"std::bad_alloc" when running optimized_binless.R

Hello professor,
The server I used had 512 Gb of memory. I took two 10M ChIA-PET data as input, not Hi-C data. When I ran preprocessing.R, everything went well. But when I ran the optimized_binless.R, it always failed during the first iteration to calculate the genomic biases. As shown below.

Normalization with fast approximation and performance iteration
No initial guess provided
Preparing for signal estimation
Counting zeros
Initial guess: residuals
Initial guess: exposures
Initial guess: decay
Initial guess: biases

Iteration 1

Residuals
Exposures
log-likelihood = 19.50625
Dispersion
fit: alpha 14121.34
log-likelihood = -140099.9
Genomic
group 1 : Error in generate_spline_base(cutsites, min(cutsites), max(cutsites), :
std::bad_alloc
Timing stopped at: 49.94 47.93 42.57

I looked up all the function definitions, but I couldn't find the function "generate_spline_base". Is there something wrong with this function? Or with my data?

How to take "HiC-Pro validPairs file" as input

The column 5 in .tsv input file, you said it means "length1: how many bases were mapped (integer)".
I don't understand it much.

I use HiC-Pro pipeline which output a *allValidPairs file , it has the following columns
"read name / chr_reads1 / pos_reads1 / strand_reads1 / chr_reads2 / pos_reads2 / strand_reads2 / fragment_size [/ allele_specific_tag]"
Is it possible covert this file to .tsv file?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.