Skip to content

Commit 76b4e6e

Browse files
committed
Merge branch 'hotfix-contact'
closes issue #15
2 parents 3cf37dc + a9a354d commit 76b4e6e

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to *binless* will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
for versions 0.x of binless, minor releases might break backwards compatibility.
66

7+
## [0.15.1]
8+
### Fixed
9+
- bug arising when a particular locus does not have reads in at least one
10+
contact category
11+
712
## [0.15.0]
813
### Added
914
- less errors regarding documentation when compiling
@@ -134,7 +139,8 @@ for versions 0.x of binless, minor releases might break backwards compatibility.
134139
- Initial commit
135140

136141

137-
[0.15.0]: ../../compare/v0.14.0...HEAD
142+
[0.15.1]: ../../compare/v0.15.0...HEAD
143+
[0.15.0]: ../../compare/v0.14.0...v0.15.0
138144
[0.14.0]: ../../compare/v0.13.0...v0.14.0
139145
[0.13.0]: ../../compare/v0.12.0...v0.13.0
140146
[0.12.0]: ../../compare/v0.11.0...v0.12.0

binless/DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: binless
22
Type: Package
33
Title: binless: Resolution-independent Normalization And Interaction Detection For Hi-C Data
4-
Version: 0.15.0
4+
Version: 0.15.1
55
Authors@R: person("Yannick", "Spill", email = "yannick.spill@nsup.org", role = c("aut", "cre"))
66
Author: Yannick Spill [aut, cre]
77
Maintainer: Yannick Spill <yannick.spill@nsup.org>

binless/R/preprocess.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,15 @@ prepare_for_sparse_cs_norm = function(data, both=F, circularize=-1) {
244244
stopifnot(all(X[,id==.I])) #IDs must start at one and have no gaps, for current stan implementation
245245
#
246246
cat("Produce count list\n")
247+
contact.names = c("contact.close", "contact.down", "contact.far", "contact.up")
247248
Y=dcast.data.table(enrich[id1 != id2
248-
& category %in% c("contact.close", "contact.down", "contact.far", "contact.up"),
249+
& category %in% contact.names,
249250
.(id1,id2,pos1=re.closest1,pos2=re.closest2,category,N)],
250251
...~category, value.var="N", fill=0)
252+
if (!all(contact.names %in% colnames(Y))) {
253+
missing <- contact.names[!contact.names %in% colnames(Y)]
254+
Y[,missing] <- 0
255+
}
251256
setkey(Y,id1,id2)
252257
Y[,distance:=pos2-pos1]
253258
if (circularize>0) Y[,distance:=pmin(distance,circularize-distance+1)]

binless/man/plot_virtual_4C.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)