question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cooler/higlass for capture Hi-C data

See original GitHub issue

Hi guys,

I was trying to analyse capture Hi-C data with cooler/higlass but I’m facing a couple of issues. Let say I have a Hi-C map on chr1 from range A to B. I processed the data with HiC-Pro and I have now a sparse text format with bin1/bin2/count and a bin file from A to B.

cooler load -f coo --one-based CAPTURE.bed CAPTURE.mat CAPTURE.cool

works well. However, when I try to zoomify with

cooler zoomify --balance CAPTURE.cool -r 5000,10000,20000,40000

It crashes with cooler.create._ingest.BadInputError: Found a bin ID that exceeds the declared number of bins. Check whether your bin table is correct.

I guess this is because when I zoomify, I’m going outside the range of my A-B capture.

Note that if I’m doing the same with the whole chromosome size, it works. However, as soon as I normalize, the higlass output is empty, I have no map. So in theory, I would like to run the normalization of my capture region only, and the fact that I have the whole chromosome may explain why there is nothing in higlass.

Therefore, I normalized the data by myself and try to build a cooler file but I have TypeError: Cannot cast array from dtype('float64') to dtype('int32') according to the rule 'safe' But I though that this issue of floating value was already fixed ?

Any idea is welcome. Best Nicolas

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nservantcommented, Aug 5, 2020

Hi, Indeed, sorry, it was my fault. I made a mistake in the resolution. It works now ! And your command also works.

>>cooler dump -t bins --header CAPTURE.mcool::resolutions/10000 | head
chrom	start	end
chrX	0	10000
chrX	10000	20000
chrX	20000	30000
chrX	30000	40000
chrX	40000	50000
chrX	50000	60000
chrX	60000	70000
chrX	70000	80000
chrX	80000	90000

Thanks guys for the quick support. I’m closing the issue. N

Read more comments on GitHub >

github_iconTop Results From Across the Web

cooler/higlass for capture Hi-C data · Issue #216 - GitHub
Hi guys, I was trying to analyse capture Hi-C data with cooler/higlass but I'm facing a couple of issues. Let say I have...
Read more >
Fine mapping chromatin contacts in capture Hi-C data
Hi-C and capture Hi-C (CHi-C) are used to map physical contacts between chromatin regions in cell nuclei using high-throughput sequencing.
Read more >
Promoter Capture Hi-C: High-resolution, Genome-wide ... - NCBI
PCHi-C is an ideally suited method to map the genome-wide ensemble of DNA sequences interacting with promoters. Related approaches, such as  ...
Read more >
Comparison of Capture Hi-C Analytical Pipelines - Frontiers
Here, we compare multiple analytical pipelines for CHi-C data analysis. We consider the effect of retaining multi-mapping reads and compare the ...
Read more >
Capture Hi-C (CHiC) Browser
Query and visualize Capture Hi-C data, by simply typing in a gene name, SNP ID, or a genomic locus. · Step 1. Choose...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found