Skip to content

Commit 1f69074

Browse files
authored
Merge pull request #742 from deeptools/develop
Develop
2 parents e917b3e + ed804ad commit 1f69074

331 files changed

Lines changed: 36059 additions & 24833 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

MANIFEST.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
include hicexplorer/trained_models/10kb_model_cleanlab_proteins_obs_exp.BIN
2+
include hicexplorer/trained_models/25kb_model_cleanlab_proteins_obs_exp.BIN
3+
include hicexplorer/trained_models/50kb_model_cleanlab_proteins_obs_exp.BIN
4+
include hicexplorer/trained_models/100kb_model_cleanlab_proteins_obs_exp.BIN
5+
include hicexplorer/trained_models/10kb_model_cleanlab_proteins_range.BIN
6+
include hicexplorer/trained_models/25kb_model_cleanlab_proteins_range.BIN
7+
include hicexplorer/trained_models/50kb_model_cleanlab_proteins_range.BIN
8+
include hicexplorer/trained_models/100kb_model_cleanlab_proteins_range.BIN
9+

azure-pipelines.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ jobs:
4343
displayName: doc_test_and_number_of_cases
4444
- script: |
4545
source activate hicexplorer
46-
py.test hicexplorer/test/general/ --doctest-modules --capture=sys -n 4
46+
py.test hicexplorer/test/general/ --doctest-modules --capture=sys -n 4 --ignore=hicexplorer/test/general/test_hicTADClassifier.py --ignore=hicexplorer/test/general/test_hicTrainTADClassifier.py
47+
py.test hicexplorer/test/general/test_hicTADClassifier.py
48+
py.test hicexplorer/test/general/test_hicTrainTADClassifier.py
4749
displayName: pytest
4850
4951
- job: 'OSX'
@@ -86,5 +88,7 @@ jobs:
8688
displayName: doc_test_and_number_of_cases
8789
- script: |
8890
source activate hicexplorer
89-
py.test hicexplorer/test/general/ --doctest-modules --capture=sys -n 4
91+
py.test hicexplorer/test/general/ --doctest-modules --capture=sys -n 4 --ignore=hicexplorer/test/general/test_hicTADClassifier.py --ignore=hicexplorer/test/general/test_hicTrainTADClassifier.py
92+
py.test hicexplorer/test/general/test_hicTADClassifier.py
93+
py.test hicexplorer/test/general/test_hicTrainTADClassifier.py
9094
displayName: pytest

bin/chicExportData

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
from hicexplorer.chicExportData import main
5+
6+
if __name__ == "__main__":
7+
main()
8+

bin/hicInterIntraTAD

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
from hicexplorer.hicInterIntraTAD import main
5+
6+
if __name__ == "__main__":
7+
main()

bin/hicTADClassifier

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
from hicexplorer.hicTADClassifier import main
5+
6+
if __name__ == "__main__":
7+
main()

bin/hicTrainTADClassifier

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
from hicexplorer.hicTrainTADClassifier import main
5+
6+
if __name__ == "__main__":
7+
main()

docs/conf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,12 @@
2828
'matplotlib', 'matplotlib.pyplot', 'matplotlib.gridspec', 'matplotlib.ticker',
2929
'matplotlib.textpath', 'matplotlib.patches', 'matplotlib.colors', 'matplotlib.cm',
3030
'mpl_toolkits', 'mpl_toolkits.axisartist', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid1',
31-
'Bio', 'Bio.Seq', 'Bio.Alphabet', 'pyBigWig', 'tables', 'pytables', 'future', 'past', 'past.builtins',
31+
'Bio.Seq', 'pyBigWig', 'tables', 'pytables', 'future', 'past', 'past.builtins',
3232
'future.utils', 'cooler', 'logging', 'unidecode', 'hic2cool', 'hicmatrix', 'hicmatrix.HiCMatrix',
33-
'hicmatrix.lib', 'krbalancing', 'fit_nbinom', 'pybedtools', 'graphviz', 'hyperopt', 'sklearn', 'sklearn.cluster']
33+
'hicmatrix.lib', 'krbalancing', 'fit_nbinom', 'pybedtools', 'graphviz', 'hyperopt', 'sklearn', 'sklearn.cluster',
34+
'h5py', 'numpy.random', 'sklearn', 'sklearn.model_selection', 'matplotlib.backends', 'sklearn.preprocessing',
35+
'matplotlib.backends.backend_agg', 'cleanlab.classification', 'imblearn.under_sampling', 'sklearn.ensemble',
36+
'sklearn.metrics', 'sklearn.impute', 'tarfile']
3437

3538
for mod_name in MOCK_MODULES:
3639
sys.modules[mod_name] = Mock()

docs/content/News.rst

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,41 @@ News and Developments
22
=====================
33

44

5+
Release 3.7
6+
-----------
7+
**27 July 2021**
8+
9+
- A new TAD prediction method: `hicTADClassifier` and a method to train own classifiers `hicTrainTADClassifier`. Thanks @AlbertLidel for the design and implementation.
10+
- New file formats for capture Hi-C modules. `chicViewpoint`, `chicSignificantInteractions`, `chicAggregateStatistic` and `chicDifferentialTest` use now HDF5 based files. A new export script `chicExportData` is provided to retrieve text files from these HDF5 files.
11+
- Implementing a few feature requests:
12+
- `hicPlotMatrix`: TADs can be visualized with hicPlotMatrix
13+
- `hicAdjustMatrix` is able to remove intra- or inter-chromosomal contacts (#664, #704)
14+
- `hicValidateLocations`: An option to validate TADs and to use additional data stored in `cool` matrices
15+
- `hicPCA`: Adding a function to select which eigenvector should be used for the output (#669)
16+
- `hicConvertFormat`: Adding the function to export hicpro file format and to import `2D-text` files.
17+
- `hicFindRestSites`: Support of multiple restriction cut sequences (#659)
18+
- `hicPlotMatrix`: Option for loop locations spanning more than one bin to define if the start, center or end should be used for plotting (#640)
19+
- `hicInterIntraTAD`: A new script to compute the ratio of inter and intra TAD. ($404)
20+
- `hicAggregateContacts`: Option to consider the strand orientation (#633)
21+
- `hicAverageRegions`: Option to consider the strand orientation (#633)
22+
- `hicCompareMatrices`: An option to not normalize the matrices before the computation. (#677, #645) Thanks @lldelisle
23+
- `hicDifferentialTAD`: Adding rank sum statistics to the output (#728, #727). Thanks @dawe
24+
- `hicPlotDistVsCounts`: Adding a function to plot the counts vs distance in TAD regions. (#696) Thanks @lldelisle
25+
- Bug fixes:
26+
- `hicCorrectMatrix`: A bug that lead to wrong correction factors for the KR correction for `cool` files (#724)
27+
- `hicDifferentialTAD`: Solved multicore issue related to skipping data at the start and end of chromosomes (#725, #685)
28+
- `hicHyperoptDetectLoops`: Added an option to set if the `chr` prefix should be added or removed (#723)
29+
- `hicPCA`: Solving an issue if the region defined by the gene track is larger the region stored in the interaction matrix (#655, #710, #716, #719)
30+
- `hicPCA`: Fixing a bug where the masking of bins was automatically applied which lead to differing matrix dimensions for the e.g. the Pearson correlation matrices (#618)
31+
- `hicBuildMatrix`: Solving a bug if multiple restriction cut sites have the same dangling ends (#720)
32+
- `hicBuildMatrix`: Solving a bug that the parameter `--removeSelfLigations` was always set to true. Changed parameter name to `--keepSelfLigations` to keep the functionality. If the parameter is not set, the self ligations are removed.
33+
- `hicBuildMatrix`: If a region is specified, only the restrictionCutSite file information for that region is loaded to save memory (#646)
34+
- `hicConvertFormat`: Fixing a bug to copy the genome annotation information in the case of a `cool` to `cool` file conversion (#657)
35+
- `hicCorrelate`: Correcting the range of colors for the heatmap (#585)
36+
- `hicCompartmentalization`: Fixed index bug (#635, #637) Thanks @LeilyR
37+
- Updating `hicBuildMatrix` to be able to work with biopython versions > 1.77. Thanks @lldelisle (#691)
38+
39+
540
Release 3.6
641
-----------
742
**10 November 2020**
@@ -113,7 +148,7 @@ Release 3.4.2
113148

114149
Preprint
115150
--------
116-
**6 March 2020*
151+
**6 March 2020**
117152

118153
The preprint of the loop detection algorithm is online via biorXiv: `<https://www.biorxiv.org/content/10.1101/2020.03.05.979096v1>`_
119154

0 commit comments

Comments
 (0)