Closed junjunlab closed 1 year ago
Found the same issue, should this section rather read:
cooler <- as.data.table(cooler)
temp <- cooler[, c("start1", "start2", "IF"), with = FALSE]
colnames(temp) <- c("region1", "region2", "IF")
temp <- subset(temp, IF != 0)
?
@agata-sm, thanks for reporting, we'll look into it.
Thanks, @agata-sm, this is indeed the solution. Fixed in https://github.com/dozmorovlab/HiCcompare/commit/f5eff087029dac9f9222dcc584a8249d283258f3, and pushed to Bioconductor.
@junjunlab, sorry for the late reply, I overlooked your initial post. You likely figured, now it'll work by default. Thanks for reporting!
Closing as changes are propagated on Bioconductor, https://bioconductor.org/checkResults/release/bioc-LATEST/HiCcompare/, http://bioconductor.org/checkResults/devel/bioc-LATEST/HiCcompare/
Hi, I use cooler2sparse function to transform data into up-triangle format. But the data contains only one chromosome, and cooler2sparse doesn't work and get error "no temp found. I check the source code and found the if loop for dealing with only one chromosome seems not right, the following is the code:
the error occurs on which temp object not been defined:
Thanks for you checking it! Best wished!