<p>The fundamental unit of a Hi-C contact is the nearest restriction enzyme cut site.
This is where each mate in a read pair from a Hi-C library comes from and is mapped to when converting sequencing data into a contact matrix.</p>
<p>Because the distance to the nearest cut site is variable at different genomic positions, and depth of coverage of any single locus is typically low, contacts are aggregated into bins and &quot;normalized&quot; to account for differences in cut site densities within those bins.
This normalization transforms the raw contact matrix into something resembling a stochastic transition matrix, where you can think of the elements of that matrix as &quot;what is the probability that at any moment in time bin <span class="math-container">$i$</span> is in contact with bin <span class="math-container">$j$</span>&quot;.</p>
<p>So the probability you're looking for is the <span class="math-container">$(i, j)$</span>th element of the normalized contact matrix, where bins <span class="math-container">$i$</span> and <span class="math-container">$j$</span> contain your regions of interest.
If your regions straddle the bin boundaries, you may want to average those bins.</p>
<p>You get to pick the resolution of the contact matrix, but if you select a resolution that's too small, you run the risk of making your matrix too sparse and having no contact between those loci.
If you pick one that's too large, your matrix elements aren't really informative for your question at hand.</p>
<p>Given your 500-5000 bp range and median of 1 kbp, it may make sense to pick a resolution between 1 kbp and 5 kbp and use that.</p>

CC BY-SA 4.0
2020-05-07T19:43:40.410Z
2022-12-21T14:20:17.077Z
2022-12-21T14:20:17.077Z
James Hawley
<p>Hello to the experts in analyzing chromosome structure data in HiC format,</p>

<p>I have a very basic question. I have a HiC file (specifics are mentioned below), using which I would like to obtain contact probability between a pair of genomic loci.
I obtained contact probabilities between the two loci at different resolutions available in the HiC file. However, rather than having a vector of contact probabilities, I would like to have a single number that appropriately represents the contact probability between the loci.</p>

<p>My guess is that there could be two ways to get a single number as the contact probability between two given genomic loci. </p>

<ol>
<li>Should I take the highest contact probability?
or,</li>
<li>Depending on the lengths of the genomics loci of interest, may be the resolution that is close to that could be selected as a single number that represents the contact probability between the loci. Eg. with this strategy, if genomic loci of interest are ~5kb in length the contact probability at 5kb resolution is selected as a single number. Then, the issue is that the length of the genomic loci of interest could be lower than the lowest length of resolution available in the HiC file.<br>
or,  </li>
<li>Contact probabilities at different resolutions could be aggregated. Then I wonder what would be the appropriate way to aggregate contact probabilities, e.g. by multiplication or median or something else.</li>
</ol>

<p>Just to reiterate, above these are my guess and I am not sure whats the best way.
So basically my question is: <strong>how can I get a single number that would represent the contact probability between a pair of genomic loci using HiC data</strong>?</p>

<hr>

<p>Some specifics that might be useful in answering my question.</p>

<ul>
<li>source of the HiC file: <a href="https://ftp.ncbi.nlm.nih.gov/geo/series/GSE63nnn/GSE63525/suppl/GSE63525_K562_combined_30.hic" rel="nofollow noreferrer">https://ftp.ncbi.nlm.nih.gov/geo/series/GSE63nnn/GSE63525/suppl/GSE63525_K562_combined_30.hic</a></li>
<li>organism: human (K562 cell line)</li>
<li>Resolutions in HiC data (bp): [2500000, 1000000, 500000, 250000, 100000, 50000, 25000, 10000, 5000]</li>
<li>Type of genomic loci: upstream non-coding regions of the genes</li>
<li>lengths of genomic loci of interest: average ~1000bp (range: 500-5000bp).</li>
<li>software I am using to "extract" data from HiC file: <a href="https://github.com/aidenlab/straw" rel="nofollow noreferrer">https://github.com/aidenlab/straw</a></li>
</ul>

<genome><hi-c><chromosome-capture><chromosomes>
Get a single number representing the contact probability between a pair of genomic loci using HiC data
# Get a single number representing the contact probability between a pair of genomic loci using HiC data

(Asked by: username_0 on 2020-05-06)

Hello to the experts in analyzing chromosome structure data in HiC format,

I have a very basic question. I have a HiC file (specifics are mentioned below), using which I would like to obtain contact probability between a pair of genomic loci.
I obtained contact probabilities between the two loci at different resolutions available in the HiC file. However, rather than having a vector of contact probabilities, I would like to have a single number that appropriately represents the contact probability between the loci.

My guess is that there could be two ways to get a single number as the contact probability between two given genomic loci.

1. Should I take the highest contact probability?
   or,
2. Depending on the lengths of the genomics loci of interest, may be the resolution that is close to that could be selected as a single number that represents the contact probability between the loci. Eg. with this strategy, if genomic loci of interest are ~5kb in length the contact probability at 5kb resolution is selected as a single number. Then, the issue is that the length of the genomic loci of interest could be lower than the lowest length of resolution available in the HiC file.  
   or,
3. Contact probabilities at different resolutions could be aggregated. Then I wonder what would be the appropriate way to aggregate contact probabilities, e.g. by multiplication or median or something else.

Just to reiterate, above these are my guess and I am not sure whats the best way.
So basically my question is: **how can I get a single number that would represent the contact probability between a pair of genomic loci using HiC data**?

---

Some specifics that might be useful in answering my question.

* source of the HiC file: <https://ftp.ncbi.nlm.nih.gov/geo/series/GSE63nnn/GSE63525/suppl/GSE63525_K562_combined_30.hic>
* organism: human (K562 cell line)
* Resolutions in HiC data (bp): [2500000, 1000000, 500000, 250000, 100000, 50000, 25000, 10000, 5000]
* Type of genomic loci: upstream non-coding regions of the genes
* lengths of genomic loci of interest: average ~1000bp (range: 500-5000bp).
* software I am using to "extract" data from HiC file: <https://github.com/aidenlab/straw>

**Tags:** genome, hi-c, chromosome-capture, chromosomes

---

## 1 answers

### Answer by username_1 on 2020-05-07. Score: 3 | Accepted answer

The fundamental unit of a Hi-C contact is the nearest restriction enzyme cut site.
This is where each mate in a read pair from a Hi-C library comes from and is mapped to when converting sequencing data into a contact matrix.

Because the distance to the nearest cut site is variable at different genomic positions, and depth of coverage of any single locus is typically low, contacts are aggregated into bins and "normalized" to account for differences in cut site densities within those bins.
This normalization transforms the raw contact matrix into something resembling a stochastic transition matrix, where you can think of the elements of that matrix as "what is the probability that at any moment in time bin $i$ is in contact with bin $j$".

So the probability you're looking for is the $(i, j)$th element of the normalized contact matrix, where bins $i$ and $j$ contain your regions of interest.
If your regions straddle the bin boundaries, you may want to average those bins.

You get to pick the resolution of the contact matrix, but if you select a resolution that's too small, you run the risk of making your matrix too sparse and having no contact between those loci.
If you pick one that's too large, your matrix elements aren't really informative for your question at hand.

Given your 500-5000 bp range and median of 1 kbp, it may make sense to pick a resolution between 1 kbp and 5 kbp and use that.


---

