Skip to content

Commit 8b0c96b

Browse files
authored
Merge pull request #474 from deeptools/develop
Release 3.19
2 parents b8918d4 + e588397 commit 8b0c96b

File tree

91 files changed

+134425
-518
lines changed

Some content is hidden

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

91 files changed

+134425
-518
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
prune pygenometracks/tests

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ are highly customizable. Currently, it is possible to plot:
2626

2727
Here is a scheme which describe how pyGenomeTracks is working (graphical abstract of [Lopez-Delisle et al. 2020](https://doi.org/10.1093/bioinformatics/btaa692)):
2828

29-
![pyGenomeTracks](./docs/content/images/graphicalabstract.png)
29+
![pyGenomeTracks](https://github.com/deeptools/pyGenomeTracks/blob/b8918d43b0bd1ca9dd2939fdd0d93a5a297d0453/docs/content/images/graphicalabstract.png)
3030

3131
pyGenomeTracks can make plots with or without Hi-C data. The following is an example output of
3232
pyGenomeTracks from [Ramírez et al. 2017](https://www.nature.com/articles/s41467-017-02525-w)
3333

34-
![pyGenomeTracks example](./docs/content/images/hic_example_nat_comm_small.png)
34+
![pyGenomeTracks example](https://github.com/deeptools/pyGenomeTracks/blob/b8918d43b0bd1ca9dd2939fdd0d93a5a297d0453/docs/content/images/hic_example_nat_comm_small.png)
3535

3636
Table of content
3737
----------------
@@ -45,12 +45,12 @@ Table of content
4545
Installation
4646
------------
4747

48-
pyGenomeTracks works with python >=3.7.
48+
pyGenomeTracks works with python >=3.8.
4949

5050
The recommended way to install pyGenomeTracks is via conda
5151

5252
```bash
53-
conda create -n pygenometracks -c bioconda -c conda-forge pygenometracks python=3.7
53+
conda create -n pygenometracks -c bioconda -c conda-forge pygenometracks
5454
```
5555

5656
To get a specific version, one can specify it. For example:
@@ -63,7 +63,7 @@ However, we noticed that conda installation can be quite slow so using mamba can
6363
You first need to create the environment and install mamba:
6464

6565
```bash
66-
conda create -n pygenometracks -c bioconda -c conda-forge mamba python=3.7
66+
conda create -n pygenometracks -c bioconda -c conda-forge mamba python=3.9
6767
```
6868

6969
Then activate the environment and install pygenometracks with mamba:
@@ -112,7 +112,7 @@ The ending `--outFileName` defines the image format. If `.pdf` is used, then the
112112
Description of other possible arguments:
113113
<!--- Start of possible arguments of pgt -->
114114
``` text
115-
optional arguments:
115+
options:
116116
-h, --help show this help message and exit
117117
--tracks TRACKS File containing the instructions to plot the tracks.
118118
The tracks.ini file can be genarated using the

azure-pipelines.yml

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,18 @@ stages:
3030
vmImage: 'ubuntu-latest'
3131
strategy:
3232
matrix:
33-
Python37LowMatplotlib:
34-
python.version: '3.7'
35-
matplotlib.version: '3.1.1'
36-
Python37HighMatplotlib:
37-
python.version: '3.7'
38-
matplotlib.version: '3.5.3'
3933
Python38LowMatplotlib:
4034
python.version: '3.8'
4135
matplotlib.version: '3.1.1'
4236
Python38HighMatplotlib:
4337
python.version: '3.8'
44-
matplotlib.version: '3.6.2'
38+
matplotlib.version: '3.6.0'
4539
Python39HighMatplotlib:
4640
python.version: '3.9'
47-
matplotlib.version: '3.6.2'
41+
matplotlib.version: '3.7.3'
42+
Python310HighMatplotlib:
43+
python.version: '3.10'
44+
matplotlib.version: '3.8.4'
4845

4946
steps:
5047
- bash: |
@@ -54,11 +51,10 @@ stages:
5451
- bash: |
5552
conda config --set always_yes yes --set changeps1 no
5653
conda info -a
57-
cat requirements_CI.txt | awk -v v=$(matplotlib.version) '{if($0~/matplotlib/){$0="matplotlib =="v}; print}' > requirements_CI_updated.txt
58-
conda create -n pygenometracks --yes -c conda-forge -c bioconda python=$(python.version) mamba
54+
cat requirements_CI.txt | awk -v v=$(matplotlib.version) -v vp=$(python.version) 'BEGIN{print "python =="vp}{if($0~/matplotlib/){$0="matplotlib =="v}; print}' > requirements_CI_updated.txt
55+
conda create -n pygenometracks --yes -c conda-forge -c bioconda --file requirements_CI_updated.txt
5956
source activate pygenometracks
60-
mamba install --yes -c conda-forge -c bioconda --file requirements_CI_updated.txt
61-
python setup.py install
57+
python -m pip install .
6258
displayName: installing dependencies
6359
- script: |
6460
source activate pygenometracks
@@ -71,12 +67,6 @@ stages:
7167
vmImage: 'macOS-11'
7268
strategy:
7369
matrix:
74-
Python37LowMatplotlib:
75-
python.version: '3.7'
76-
matplotlib.version: '3.1.1'
77-
Python37HighMatplotlib:
78-
python.version: '3.7'
79-
matplotlib.version: '3.5.1'
8070
Python38LowMatplotlib:
8171
python.version: '3.8'
8272
matplotlib.version: '3.1.1'
@@ -99,11 +89,9 @@ stages:
9989
- bash: |
10090
conda config --set always_yes yes --set changeps1 no
10191
conda info -a
102-
cat requirements_CI.txt | awk -v v=$(matplotlib.version) '{if($0~/matplotlib/){$0="matplotlib =="v}; print}' > requirements_CI_updated.txt
103-
conda create -n pygenometracks --yes -c conda-forge -c bioconda python=$(python.version) mamba
104-
source activate pygenometracks
105-
mamba install --yes -c conda-forge -c bioconda --file requirements_CI_updated.txt
106-
python setup.py install
92+
cat requirements_CI.txt | awk -v v=$(matplotlib.version) -v vp=$(python.version) 'BEGIN{print "python =="vp}{if($0~/matplotlib/){$0="matplotlib =="v}; print}' > requirements_CI_updated.txt
93+
conda create -n pygenometracks --yes -c conda-forge -c bioconda --file requirements_CI_updated.txt
94+
python -m pip install .
10795
displayName: installing dependencies
10896
- script: |
10997
source activate pygenometracks
@@ -121,7 +109,9 @@ stages:
121109
container: python:3.8
122110
steps:
123111
- script: |
124-
python setup.py sdist bdist_wheel
112+
python -m pip install --upgrade pip
113+
pip install build
114+
python -m build
125115
python -m pip install --user --upgrade twine
126116
python -m twine upload -r pypi dist/*
127117
env:

bin/make_tracks_file

Lines changed: 0 additions & 7 deletions
This file was deleted.

bin/pgt

Lines changed: 0 additions & 1 deletion
This file was deleted.

bin/pyGenomeTracks

Lines changed: 0 additions & 11 deletions
This file was deleted.

docs/content/all_default_properties.csv

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ color_utr,,,,,grey,grey,,,,,,,,,,,
3232
color_backbone,,,,,black,black,,,,,,,,,,,
3333
height_utr,,,,,1,1,,,,,,,,,,,
3434
arrow_length,,,,,not set,not set,,,,,,,,,,,
35+
height_intron,,,,,0.5,0.5,,,,,,,,,,,
3536
all_labels_inside,,,,,false,false,,,,,,,,,,,
3637
labels_in_margin,,,,,false,false,,,,,,,,,,,
3738
fontstyle,,,,,normal,normal,,,,,,,,,,,
39+
color_arrow,,,,,black,black,,,,,,,,,,,
3840
show_data_range,,,,,,,true,true,true,true,true,,,,,,
3941
show_labels,,,,,,,true,,,,,,,,,,
4042
use_summit,,,,,,,true,,,,,,,,,,
@@ -50,7 +52,7 @@ y_axis_values,,,,,,,,transformed,transformed,,,,,,,,
5052
second_file*,,,,,,,,not set,not set,,,,,,,,
5153
operation*,,,,,,,,file,file,,,,,,,,
5254
grid,,,,,,,,false,false,,,,,,,,
53-
rasterize,,,,,,,,,false,true,,true,true,,,,
55+
rasterize,,,,,,,,,false,true,,true,true,false,,,
5456
pos_score_in_bin,,,,,,,,,,center,,,,,,,
5557
plot_horizontal_lines,,,,,,,,,,false,,,,,,,
5658
colormap,,,,,,,,,,viridis,,RdYlBu_r,RdYlBu_r,,,,

docs/content/all_default_properties_rst.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ color_utr
3434
color_backbone black black
3535
height_utr 1 1
3636
arrow_length not set not set
37+
height_intron 0.5 0.5
3738
all_labels_inside false false
3839
labels_in_margin false false
3940
fontstyle normal normal
41+
color_arrow black black
4042
show_data_range true true true true true
4143
show_labels true
4244
use_summit true
@@ -52,7 +54,7 @@ y_axis_values
5254
second_file* not set not set
5355
operation* file file
5456
grid false false
55-
rasterize false true true true
57+
rasterize false true true true false
5658
pos_score_in_bin center
5759
plot_horizontal_lines false
5860
colormap viridis RdYlBu_r RdYlBu_r

docs/content/all_possible_properties.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
- **overlay_previous**:
22

3-
- for *x_axis, epilogos, links, domains, bed, gtf, narrow_peak, bigwig, bedgraph, bedgraph_matrix, hlines, hic_matrix, hic_matrix_square, maf, scalebar, fasta, spacer*: no, yes, share-y
3+
- for *x_axis, epilogos, links, domains, bed, gtf, narrow_peak, bigwig, bedgraph, bedgraph_matrix, hlines, hic_matrix, hic_matrix_square, maf, scalebar, spacer, fasta*: no, yes, share-y
44

55
- **where**:
66

@@ -34,13 +34,11 @@
3434

3535
- **style**:
3636

37-
- for *bed, gtf*: flybase, UCSC, tssarrow
37+
- for *bed, gtf*: flybase, UCSC, tssarrow, exonarrows
3838

3939
- **display**:
4040

41-
- for *bed*: collapsed, triangles, interleaved, stacked, squares
42-
43-
- for *gtf*: collapsed, triangles, interleaved, stacked
41+
- for *bed, gtf*: collapsed, triangles, interleaved, stacked, squares, deletions, inversions
4442

4543
- **fontstyle**:
4644

@@ -114,7 +112,7 @@
114112

115113
- **rasterize**:
116114

117-
- for *bedgraph, bedgraph_matrix, hic_matrix, hic_matrix_square*: true, false
115+
- for *bedgraph, bedgraph_matrix, hic_matrix, hic_matrix_square, maf*: true, false
118116

119117
- **pos_score_in_bin**:
120118

0 commit comments

Comments
 (0)