-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
78 changed files
with
3,829 additions
and
1,998 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
* [ ] Flake8 passes (`flake8 . --exclude=.venv,.build,planemo_test_env,build --ignore=E501,F403,E402,F999,F405,E712`) | ||
* [ ] Local tests pass (`py.test hicexplorer --doctest-modules`) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
from hicexplorer.hicAggregateContacts import main | ||
|
||
if __name__ == "__main__": | ||
main() | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
.. _hicAggregateContacts: | ||
|
||
hicAggregateContacts | ||
==================== | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Background | ||
^^^^^^^^^^ | ||
|
||
``hicAggregateContacts`` is a tool that allows plotting of aggregated Hi-C sub-matrices of a specified list of positions. Positions of interest can for example be binding sites of a specific protein that were determined by ChIP-seq or genetic elements as transcription start sites of active genes. | ||
|
||
Description | ||
^^^^^^^^^^^ | ||
|
||
.. argparse:: | ||
:ref: hicexplorer.hicAggregateContacts.parse_arguments | ||
:prog: hicAggregateContacts | ||
|
||
Usage example | ||
^^^^^^^^^^^^^ | ||
|
||
Below, you can find an example of an aggregate Hi-C matrix obtained from *Drosophila melanogaster* Hi-C data. The interactions are plotted at binding sites of a protein that were determined by ChIP-seq. We plot sub-matrices of 30 bins (1.5 kb bin size, 45 kb in total). The regions specified in the BED file will be centered between half number of bins and the other half number of bins.The considered range is 300-1000 kb. The range should be adjusted and only contain contacts larger than TAD size to reduce background interactions. | ||
|
||
.. code-block:: bash | ||
$ hicAggregateContacts --matrix Dmel.h5 --BED ChIP-seq-peaks.bed \ | ||
--outFileName Dmel_aggregate_Contacts --vMin 0.8 --vMax 2.2 \ | ||
--range 300000:1000000 --numberOfBins 30 --chromosomes X \ | ||
--avgType mean --transform obs/exp | ||
.. image:: ../../images/hicAggregateContacts.png | ||
|
||
This example was calculated using mean interactions of an observed vs expected transformed Hi-C matrix. Additional options for the matrix transformation are total-counts or z-score. Aggregate contacts can be plotted in 2D or 3D. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,50 @@ | ||
.. _hicCompareMatrices: | ||
|
||
hicCorrectMatrix | ||
================ | ||
hicCompareMatrices | ||
================== | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Background | ||
^^^^^^^^^^ | ||
|
||
This tool is useful to compare two matrices in .h5 format by applying operations like difference, ratio or log2ratio after normalization. This can be used to determine the effect of a mutation compared to wild-type samples on contact enrichment, or to see TAD structure modifications near differentially expressed genes between two conditions when followed by :doc:`hicPlotMatrix`. It can also be used to compare two biological replicates. | ||
|
||
Description | ||
^^^^^^^^^^^ | ||
|
||
.. argparse:: | ||
:ref: hicexplorer.hicCompareMatrices.parse_arguments | ||
:prog: hicCompareMatrices | ||
|
||
Usage example | ||
^^^^^^^^^^^^^ | ||
|
||
``hicCompareMatrices`` is usually perfomed on corrected matrices (:doc:`hicCorrectMatrix`) with bins merged (:doc:`hicMergeMatrixBins`) depending on the downstream analyses to perform. Here is an example of a log2ratio comparison between M1BP Knockdown and GST cells in *Drosophila melanogaster* on corrected matrices with 50 bins merged (about 30kb bins). | ||
|
||
.. code:: bash | ||
hicCompareMatrices -m \ | ||
M1BP_KD_merge_m50_corrected.h5 \ | ||
GST_merge_rf_m50_corrected.h5 \ | ||
--operation log2ratio -o m1bp_over_gst_log2_m50.h5 | ||
This code outputs a matrix containing the normalized log2ratio values of M1BP_KD_merge_m50_corrected.h5 over GST_merge_rf_m50_corrected.h5. We can then display this matrix using :doc:`hicPlotMatrix`. | ||
|
||
.. code:: bash | ||
hicPlotMatrix -m \ | ||
m1bp_over_gst_log2_m50.h5 \ | ||
--clearMaskedBins \ | ||
--region chr2L:12,000,000-19,000,000 \ | ||
--vMin -4 --vMax 4 \ | ||
-o m1bp_over_gst_log2_m50_matrix_plot.png | ||
.. image:: ../../images/hicCompareMatrices_m1bp_over_gst_log2_m50_matrix_plot.png | ||
|
||
In this plot we see that the cells with a M1BP Knockdown display a negative log2ratio compared to the wild-type. Depletion of M1BP thus show a dramatic effect on the distribution of Hi-C contacts in which short range contacts decrease (Ramirez *et al.* 2017, High-resolution TADs reveal DNA sequences underlying genome organization in flies, https://doi.org/10.1038/s41467-017-02525-w). | ||
|
||
Below you can find an example of a log2ratio plot between Hi-C matrices of two biological replicates, no differences are observable which means that the replicates are well correlated. | ||
|
||
.. image:: ../../images/hicCompareMatrices_QC_log2_m50_matrix_plot.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.