Skip to content

Commit 1c6b592

Browse files
Update version 3.5.1 (#290)
* remove constrain on openblas * add message if bedtools is not installed. * overcome potential other error * Test tabix independently of extension * modify get_scores to reach end_region * linting * mention installation of BEDTools in the doc * update the requirements in the doc * Highlight BEDTools as external dependency * raise an error when BEDTools is not installed * use one more log in utilities * copy the expected pdf before compare_images * linting * add line if FAQ regarding hicmatrix14 * fix broken link in all properties table * update installation doc * change error to warning * update version of HiCMatrix * update version * copy the bug fix line of hicexplorer to pgt Co-authored-by: Joachim Wolff <wolffj@informatik.uni-freiburg.de>
1 parent 709aa6e commit 1c6b592

20 files changed

+224
-103
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ Also, pyGenomeTracks can be installed using pip
5656
$ pip install pyGenomeTracks
5757
```
5858

59+
Since version 3.5, pyGenomeTracks uses BEDTools, don't forget to install it or load it into your environment
60+
61+
5962
If the latest version wants to be installed use:
6063

6164
```bash

docs/content/all_default_properties_rst.txt

Lines changed: 59 additions & 59 deletions
Large diffs are not rendered by default.

docs/content/faq.rst

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,27 @@ FAQ
44
.. contents::
55
:local:
66

7-
Why the scale of my Hi-C plot suddenly changed
8-
----------------------------------------------
7+
Why the scale of my Hi-C plot suddenly changed?
8+
-----------------------------------------------
99
pyGenomeTracks is using `HiCMatrix <https://github.com/deeptools/HiCMatrix>`_ to read the matrix from ``h5`` and ``cool`` format.
1010
From version 12 to version 13, a normalization step when reading ``cool`` file was removed. This normalization was mostly used
1111
when you were providing ``cool`` file from `cooler balance <https://cooler.readthedocs.io/en/latest/cli.html#cooler-balance>`_.
1212

1313
If you want to keep the old scale you need to downgrade to HiCMatrix version 12 but version 13 also correct some bugs so we advice
1414
to change your ``max_value`` in your parameter file to adjust to the new scale.
1515

16+
No output generated with version 3.5 installed with pip
17+
-------------------------------------------------------
18+
If you used pyGenomeTracks version 3.5 and the last line you get is:
19+
20+
.. code:: bash
21+
22+
INFO:pygenometracks.tracksClass:initialize x. [xxxxx]
23+
24+
It is highly probable that BEDTools is not installed or not loaded in your environment.
25+
26+
My Hi-C plot looks like no correction was applied when using cool matrix
27+
------------------------------------------------------------------------
28+
pyGenomeTracks is using `HiCMatrix <https://github.com/deeptools/HiCMatrix>`_ to read the matrix from ``cool`` format.
29+
Unfortunately, a bug was introduced in version 14 ignoring the correction factors.
30+
This bug was fixed in version 15 so update HiCMatrix to last version should fix it.

docs/content/installation.rst

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,22 @@ Remember -- pyGenomeTracks is available for **command line usage** as well as fo
1010
Requirements
1111
-------------
1212

13-
* Python >=3.6
13+
Python dependencies:
14+
15+
* Python >= 3.6
1416
* numpy >= 1.16
15-
* intervaltree >=2.1.0
16-
* pyBigWig >= 0.3.4
17-
* hicmatrix >= 0.14
18-
* pysam >= 0.8
19-
* matplotlib >= 3.1.1
20-
* gffutils >=0.9
17+
* intervaltree >= 2.1.0
18+
* pyBigWig >= 0.3.16
19+
* hicmatrix >= 15
20+
* pysam >= 0.14
21+
* matplotlib == 3.1.1
22+
* gffutils >= 0.9
23+
* pybedtools >= 0.8.1
24+
* tqdm >= 4.20
25+
26+
External dependencies:
27+
28+
* BEDTools
2129

2230
Command line installation using ``conda``
2331
-----------------------------------------
@@ -44,6 +52,8 @@ Install pyGenomeTracks using the following command:
4452

4553
All python requirements should be automatically installed.
4654

55+
Since version 3.5, pyGenomeTracks require BEDTools, do not forget to install it or load it into your environment.
56+
4757
If you need to specify a specific path for the installation of the tools, make use of `pip install`'s numerous options:
4858

4959
.. code:: bash
@@ -55,7 +65,7 @@ Command line installation without ``pip``
5565

5666
You are highly recommended to use `conda install` rather than the following complicated steps.
5767

58-
1. Install the requirements listed above in the "requirements" section. This is done automatically by `pip`.
68+
1. Install the requirements listed above in the "requirements" section. This is done automatically by `pip` (except BEDTools).
5969

6070
2. Download source code
6171
::

docs/content/releases.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Releases
44
.. toctree::
55
:maxdepth: 1
66

7+
releases/3.5.1
78
releases/3.5
89
releases/3.4
910
releases/3.3

docs/content/releases/3.5.1.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
3.5.1
2+
=====
3+
4+
Bugfixes:
5+
^^^^^^^^^
6+
7+
- Get a message when bedtools is installed instead of crashing without any message.
8+
9+
- Always test if a bedgraph is tabix indexed without checking the extension
10+
11+
- Fix a bug which was happening when ``operation`` or ``summary_method`` was used on bedgraph whereas the bedgraph had some missing intervals.
12+
13+
- Enforcing version 15 of HiCMatrix. Version 14 had a bug concerning the application of the correction factors of cool files.

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
- intervaltree >=2.1.0
1212
- pybigwig >=0.3.16
1313
- future >=0.17.0
14-
- hicmatrix >=13
14+
- hicmatrix >=15
1515
- pysam >=0.14
1616
- pytest
1717
- gffutils >=0.9

pygenometracks/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# This file is originally generated from Git information by running 'setup.py
33
# version'. Distribution tarballs contain a pre-generated copy of this file.
44

5-
__version__ = '3.5'
5+
__version__ = '3.5.1'

pygenometracks/getAllDefaultsAndPossible.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def main():
8585

8686
# For the default they are summarized in a matrix
8787
mat = np.empty((len(all_default_parameters) + 2, len(all_tracks_with_default) + 1),
88-
dtype='U25')
88+
dtype='U100')
8989
mat[0, 0] = 'parameter'
9090
mat[1, 0] = '--'
9191
for j, track_type in enumerate(all_tracks_with_default, start=1):

pygenometracks/tests/generateAllOutput.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ bin/pgt --tracks ./pygenometracks/tests/test_data/bedgraph_useMid.ini --region c
3434
bin/pgt --tracks ./pygenometracks/tests/test_data/operation_bdg.ini --region X:2700000-3100000 --trackLabelFraction 0.2 --dpi 130 -o ./pygenometracks/tests/test_data/master_operation_bdg.png
3535
bin/pgt --tracks ./pygenometracks/tests/test_data/bedgraph_withNA.ini --region X:2700000-3100000 --trackLabelFraction 0.2 --dpi 130 -o ./pygenometracks/tests/test_data/master_bedgraph_withNA.png
3636
bin/pgt --tracks ./pygenometracks/tests/test_data/bedgraph_negative.ini --region X:2700000-3100000 --trackLabelFraction 0.2 --dpi 130 -o ./pygenometracks/tests/test_data/master_negative.png
37+
bin/pgt --tracks ./pygenometracks/tests/test_data/bedgraph_end_not_covered.ini --region chr7:100-400 --trackLabelFraction 0.2 --dpi 130 -o ./pygenometracks/tests/test_data/master_bedgraph_end_not_covered.png
3738

3839
# test bigWigTrack:
3940
bin/pgt --tracks ./pygenometracks/tests/test_data/bigwig.ini --region X:2700000-3100000 --trackLabelFraction 0.2 --dpi 130 -o ./pygenometracks/tests/test_data/master_bigwig.png

0 commit comments

Comments
 (0)