Skip to content

Commit 7ed6232

Browse files
authored
Merge pull request #629 from deeptools/develop
Develop
2 parents c4e811b + 69af81f commit 7ed6232

File tree

70 files changed

+1193
-451
lines changed

Some content is hidden

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

70 files changed

+1193
-451
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
python.version: '3.6'
1414
Python37:
1515
python.version: '3.7'
16+
Python38:
17+
python.version: '3.8'
1618

1719
steps:
1820
- bash: |
@@ -54,6 +56,8 @@ jobs:
5456
python.version: '3.6'
5557
Python37:
5658
python.version: '3.7'
59+
Python38:
60+
python.version: '3.8'
5761

5862
steps:
5963
- bash: |

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
'mpl_toolkits', 'mpl_toolkits.axisartist', 'mpl_toolkits.mplot3d', 'mpl_toolkits.axes_grid1',
3131
'Bio', 'Bio.Seq', 'Bio.Alphabet', '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']
33+
'hicmatrix.lib', 'krbalancing', 'fit_nbinom', 'pybedtools', 'graphviz', 'hyperopt', 'sklearn', 'sklearn.cluster']
3434

3535
for mod_name in MOCK_MODULES:
3636
sys.modules[mod_name] = Mock()

docs/content/News.rst

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
11
News and Developments
22
=====================
33

4+
5+
Release 3.6
6+
-----------
7+
**10 November 2020**
8+
9+
- hicAggregateContacts, thanks @LeilyR:
10+
- hicAggragateContact has been updated to be able to handle inter chromosomal contacts as well as inter chromosomal contacts
11+
- Added scikit-learn to dependencies
12+
- hicBuildMatrix: Fixing another bug concerning scaffolds without any restriction enzyme cut site
13+
- Updated dependencies
14+
- Adding default values to the documentation. Thanks @lldelisle
15+
- hicTransform: Fixing a bug in case one of the intermediate matrices is empty
16+
- Official Python 3.8 support:
17+
- Manually setting 'fork' as the start method for multiprocessing because the default on macOS was set to 'spawn'
18+
19+
420
Release 3.5.3
521
-------------
622
**14 October 2020**
723

824
- Bug fix release:
9-
- Reads from scaffolds without any restriction enzym cut site are considered as 'same fragment'. An appearance of such a read will not lead to a crash anymore
25+
- Reads from scaffolds without any restriction enzyme cut site are considered as 'same fragment'. An appearance of such a read will not lead to a crash anymore
1026
- Minor documentation improvements
1127

1228

docs/content/citation.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
Citation
3+
========
4+
5+
Please cite HiCExplorer as follows:
6+
7+
Joachim Wolff, Leily Rabbani, Ralf Gilsbach, Gautier Richard, Thomas Manke, Rolf Backofen, Björn A Grüning.
8+
**Galaxy HiCExplorer 3: a web server for reproducible Hi-C, capture Hi-C and single-cell Hi-C data analysis, quality control and visualization, Nucleic Acids Research**, Nucleic Acids Research, Volume 48, Issue W1, 02 July 2020, Pages W177–W184, https://doi.org/10.1093/nar/gkaa220
9+
10+
Joachim Wolff, Vivek Bhardwaj, Stephan Nothjunge, Gautier Richard, Gina Renschler, Ralf Gilsbach, Thomas Manke, Rolf Backofen, Fidel Ramírez, Björn A Grüning.
11+
**Galaxy HiCExplorer: a web server for reproducible Hi-C data analysis, quality control and visualization**, Nucleic Acids Research, Volume 46, Issue W1, 2 July 2018, Pages W11–W16, doi: https://doi.org/10.1093/nar/gky504
12+
13+
Fidel Ramirez, Vivek Bhardwaj, Jose Villaveces, Laura Arrigoni, Bjoern A Gruening,Kin Chung Lam, Bianca Habermann, Asifa Akhtar, Thomas Manke.
14+
**"High-resolution TADs reveal DNA sequences underlying genome organization in flies". Nature Communications**, Volume 9, Article number: 189 (2018), doi: https://doi.org/10.1038/s41467-017-02525-w

docs/content/tools/hicAggregateContacts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Below, you can find an example of an aggregate Hi-C matrix obtained from *Drosop
2828
$ hicAggregateContacts --matrix Dmel.h5 --BED ChIP-seq-peaks.bed \
2929
--outFileName Dmel_aggregate_Contacts --vMin 0.8 --vMax 2.2 \
3030
--range 300000:1000000 --numberOfBins 30 --chromosomes X \
31-
--avgType mean --transform obs/exp
31+
--operationType mean --transform obs/exp --mode intra-chr
3232
3333
.. image:: ../../images/hicAggregateContacts.png
3434

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Contents:
8484
content/list-of-tools
8585
content/example_usage
8686
content/News
87+
content/citation
8788

8889

8990
Citation

hicexplorer/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@
1515

1616
warnings.simplefilter(action="ignore", category=RuntimeWarning)
1717
warnings.simplefilter(action="ignore", category=PendingDeprecationWarning)
18+
19+
import multiprocessing as mp
20+
mp.set_start_method('fork')

hicexplorer/chicAggregateStatistic.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,31 +60,35 @@ def parse_arguments(args=None):
6060
parserOpt = parser.add_argument_group('Optional arguments')
6161

6262
parserOpt.add_argument('--outFileNameSuffix', '-suffix',
63-
help='File name suffix to save the result.',
63+
help='File name suffix to save the result'
64+
' (Default: %(default)s).',
6465
required=False,
6566
default='_aggregate_target.txt')
6667

6768
parserOpt.add_argument('--interactionFileFolder', '-iff',
68-
help='Folder where the interaction files are stored. Applies only for batch mode.',
69+
help='Folder where the interaction files are stored. Applies only for batch mode'
70+
' (Default: %(default)s).',
6971
required=False,
7072
default='.')
7173
parserOpt.add_argument('--targetFileFolder', '-tff',
7274
help='Folder where the target files are stored. Applies only for batch mode.',
7375
required=False)
7476
parserOpt.add_argument('--outputFolder', '-o',
75-
help='Output folder containing the files.',
77+
help='Output folder containing the files'
78+
' (Default: %(default)s).',
7679
required=False,
7780
default='aggregatedFiles')
7881
parserOpt.add_argument('--writeFileNamesToFile', '-w',
79-
help='',
82+
help='(Default: %(default)s).',
8083
default='aggregatedFilesBatch.txt')
8184
parserOpt.add_argument('--batchMode', '-bm',
8285
help='turns on batch mode. The files provided by --interactionFile and/or --targetFile contain a list of the files to be processed.',
8386
required=False,
8487
action='store_true')
8588

8689
parserOpt.add_argument('--threads', '-t',
87-
help='Number of threads (uses the python multiprocessing module). ',
90+
help='Number of threads (uses the python multiprocessing module)ist'
91+
' (Default: %(default)s).',
8892
required=False,
8993
default=4,
9094
type=int

hicexplorer/chicDifferentialTest.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,35 +53,39 @@ def parse_arguments(args=None):
5353
parserRequired.add_argument('--alpha', '-a',
5454
help='define a significance level (alpha) for accepting samples',
5555
type=float,
56-
default=0.05,
5756
required=True)
5857

5958
parserOpt = parser.add_argument_group('Optional arguments')
6059

6160
parserOpt.add_argument('--interactionFileFolder', '-iff',
62-
help='Folder where the interaction files are stored. Applies only for batch mode.',
61+
help='Folder where the interaction files are stored. Applies only for batch mode'
62+
' (Default: %(default)s).',
6363
required=False,
6464
default='.')
6565
parserOpt.add_argument('--outputFolder', '-o',
66-
help='Output folder of the files.',
66+
help='Output folder of the files'
67+
' (Default: %(default)s).',
6768
required=False,
6869
default='differentialResults')
6970
parserOpt.add_argument('--statisticTest',
70-
help='Type of test used: fisher\'s exact test or chi2 contingency',
71+
help='Type of test used: fisher\'s exact test or chi2 contingency'
72+
' (Default: %(default)s).',
7173
choices=['fisher', 'chi2'],
7274
default='fisher')
7375
parserOpt.add_argument('--batchMode', '-bm',
7476
help='turn on batch mode. The given file for --interactionFile and or --targetFile contain a list of the to be processed files.',
7577
required=False,
7678
action='store_true')
7779
parserOpt.add_argument('--threads', '-t',
78-
help='Number of threads (uses the python multiprocessing module)',
80+
help='Number of threads (uses the python multiprocessing module)'
81+
' (Default: %(default)s).',
7982
required=False,
8083
default=4,
8184
type=int
8285
)
8386
parserOpt.add_argument('--rejectedFileNamesToFile', '-r',
84-
help='Writes the names of the rejected H0 (therefore containing the differential interactions) to file. Can be used for batch processing mode of chicPlotViewpoint.',
87+
help='Writes the names of the rejected H0 (therefore containing the differential interactions) to file. Can be used for batch processing mode of chicPlotViewpoint.'
88+
' (Default: %(default)s).',
8589
default='rejected_H0.txt')
8690
parserOpt.add_argument("--help", "-h", action="help",
8791
help="show this help message and exit")

hicexplorer/chicPlotViewpoint.py

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def parse_arguments(args=None):
4949
'Format is --region upstream downstream, e.g.: --region 500000 500000 plots 500kb up- and 500kb downstream. This value should not exceed the range used in the other chic-tools.',
5050
required=True,
5151
type=int,
52-
default=[500000, 500000],
5352
nargs=2)
5453

5554
parserOpt = parser.add_argument_group('Optional arguments')
@@ -58,19 +57,22 @@ def parse_arguments(args=None):
5857
help='path to the background file which should be used for plotting',
5958
required=False)
6059
parserOpt.add_argument('--interactionFileFolder', '-iff',
61-
help='Folder where the interaction files are stored. Applies only for batch mode.',
60+
help='Folder where the interaction files are stored. Applies only for batch mode'
61+
' (Default: %(default)s).',
6262
required=False,
6363
default='.')
6464
parserOpt.add_argument('--differentialTestResult', '-dif',
6565
help='Path to the H0 rejected files to highlight the regions in the plot.',
6666
required=False,
6767
nargs='+')
6868
parserOpt.add_argument('--significantInteractionFileFolder', '-siff',
69-
help='Folder where the files with detected significant interactions are stored. Applies only for batch mode.',
69+
help='Folder where the files with detected significant interactions are stored. Applies only for batch mode'
70+
' (Default: %(default)s).',
7071
required=False,
7172
default='.')
7273
parserOpt.add_argument('--differentialTestResultsFolder', '-diff',
73-
help='Folder where the H0 rejected files are stored. Applies only for batch mode.',
74+
help='Folder where the H0 rejected files are stored. Applies only for batch mode'
75+
' (Default: %(default)s).',
7476
required=False,
7577
default='.')
7678
parserOpt.add_argument('--significantInteractions', '-si',
@@ -82,36 +84,43 @@ def parse_arguments(args=None):
8284
required=False,
8385
action='store_true')
8486
parserOpt.add_argument('--outputFolder', '-of',
85-
help='Output folder of the files.',
87+
help='Output folder of the files'
88+
' (Default: %(default)s).',
8689
required=False,
8790
default='.')
8891
parserOpt.add_argument('--outputFormat', '-format',
89-
help='Output format of the plot.',
92+
help='Output format of the plot'
93+
' (Default: %(default)s).',
9094
required=False,
9195
default='png')
9296
parserOpt.add_argument('--dpi',
9397
help='Optional parameter: Resolution for the image, if'
94-
'output is a raster graphics image (e.g png, jpg)',
98+
'output is a raster graphics image (e.g png, jpg)'
99+
' (Default: %(default)s).',
95100
type=int,
96101
default=300,
97102
required=False)
98103
parserOpt.add_argument('--binResolution', '-r',
99-
help='Resolution of the bin in genomic units. Values are set as number of bases, e.g. 1000 for a 1kb, 5000 for a 5kb or 10000 for a 10kb resolution.',
104+
help='Resolution of the bin in genomic units. Values are set as number of bases, e.g. 1000 for a 1kb, 5000 for a 5kb or 10000 for a 10kb resolution'
105+
' (Default: %(default)s).',
100106
type=int,
101107
default=1000,
102108
required=False)
103109

104110
parserOpt.add_argument('--colorMapPvalue',
105111
help='Color map to use for the p-value. Available '
106112
'values can be seen here: '
107-
'http://matplotlib.org/examples/color/colormaps_reference.html',
113+
'http://matplotlib.org/examples/color/colormaps_reference.html'
114+
' (Default: %(default)s).',
108115
default='RdYlBu')
109116
parserOpt.add_argument('--maxPValue', '-map',
110-
help='Maximal value for p-value. Values above this threshold are set to this value.',
117+
help='Maximal value for p-value. Values above this threshold are set to this value'
118+
' (Default: %(default)s).',
111119
type=float,
112120
default=0.1)
113121
parserOpt.add_argument('--minPValue', '-mp',
114-
help='Minimal value for p-value. Values below this threshold are set to this value.',
122+
help='Minimal value for p-value. Values below this threshold are set to this value'
123+
' (Default: %(default)s).',
115124
type=float,
116125
default=0.0)
117126

@@ -139,18 +148,20 @@ def parse_arguments(args=None):
139148
required=False,
140149
action='store_true')
141150
parserOpt.add_argument('--plotSampleNumber', '-psn',
142-
help='Number of samples per plot. Applies only in batch mode.',
151+
help='Number of samples per plot. Applies only in batch mode'
152+
' (Default: %(default)s).',
143153
required=False,
144154
default=2,
145155
type=int)
146156
parserOpt.add_argument('--colorList', '-cl',
147-
help='Colorlist for the viewpoint lines.',
157+
help='Colorlist for the viewpoint lines (Default g b c m y k).',
148158
required=False,
149159
default=['g', 'b', 'c', 'm', 'y', 'k'],
150160
type=str,
151161
nargs='+')
152162
parserOpt.add_argument('--threads', '-t',
153-
help='Number of threads (uses the python multiprocessing module).',
163+
help='Number of threads (uses the python multiprocessing module)'
164+
' (Default: %(default)s).',
154165
required=False,
155166
default=4,
156167
type=int

0 commit comments

Comments
 (0)