Skip to content

Commit 8ffaee5

Browse files
authored
Merge pull request #1049 from deeptools/develop
Develop- for the 3.5.1 release
2 parents 7811ae7 + 32666a6 commit 8ffaee5

23 files changed

+59
-47
lines changed

.planemo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ else
2828
fi
2929

3030
planemo lint ${wrappers}
31-
planemo test --no_dependency_resolution --galaxy_branch release_18.05 --install_galaxy ${wrappers} 2>&1 | grep -v -e "^galaxy" | grep -v -e "^requests"
31+
planemo test --no_dependency_resolution --galaxy_branch release_20.09 --install_galaxy ${wrappers} 2>&1 | grep -v -e "^galaxy" | grep -v -e "^requests"
3232
test ${PIPESTATUS[0]} -eq 0

CHANGES.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
3.5.1
2+
* cmp usage is updated to fit the recent mpl updates.
3+
* The requirements.txt is updated.
4+
* "NA" occurences in plotFingerprint.py have been replaced by numpy.NAN (PR #1002)
5+
* computeMatrixOperations.xml is fixed (brought up in #1003)
6+
* plotly error is fixed. (issue #1013)
7+
* relase version is updated in planemo.sh
8+
* fixed galaxy tests
9+
* A bug is taken care of in computeMatrixOperations.py / dataRange
10+
* in plotProfile.py legen location is changed from auto to best (issue #1042)
11+
112
3.5.0
213

314
* Fixed a small issue in computeGCBias (issue #969)

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
[![Build Status](https://dev.azure.com/dpryan79/dpryan79/_apis/build/status/deeptools.deepTools?branchName=master)](https://dev.azure.com/dpryan79/dpryan79/_build/latest?definitionId=1&branchName=master)
33
[![Documentation Status](https://readthedocs.org/projects/deeptools/badge/)](http://deeptools.readthedocs.org/) [![PyPI Version](https://img.shields.io/pypi/v/deeptools.svg?style=plastic)](https://pypi.org/project/deepTools/)
44
[![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat)](http://bioconda.github.io/recipes/deeptools/README.html)
5-
[![European Galaxy server](https://img.shields.io/badge/usegalaxy-.eu-brightgreen?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAASCAYAAABB7B6eAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAAsTAAALEwEAmpwYAAACC2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNS40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZXNzaW9uPjE8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlBob3RvbWV0cmljSW50ZXJwcmV0YXRpb24+MjwvdGlmZjpQaG90b21ldHJpY0ludGVycHJldGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KD0UqkwAAAn9JREFUOBGlVEuLE0EQruqZiftwDz4QYT1IYM8eFkHFw/4HYX+GB3/B4l/YP+CP8OBNTwpCwFMQXAQPKtnsg5nJZpKdni6/6kzHvAYDFtRUT71f3UwAEbkLch9ogQxcBwRKMfAnM1/CBwgrbxkgPAYqlBOy1jfovlaPsEiWPROZmqmZKKzOYCJb/AbdYLso9/9B6GppBRqCrjSYYaquZq20EUKAzVpjo1FzWRDVrNay6C/HDxT92wXrAVCH3ASqq5VqEtv1WZ13Mdwf8LFyyKECNbgHHAObWhScf4Wnj9CbQpPzWYU3UFoX3qkhlG8AY2BTQt5/EA7qaEPQsgGLWied0A8VKrHAsCC1eJ6EFoUd1v6GoPOaRAtDPViUr/wPzkIFV9AaAZGtYB568VyJfijV+ZBzlVZJ3W7XHB2RESGe4opXIGzRTdjcAupOK09RA6kzr1NTrTj7V1ugM4VgPGWEw+e39CxO6JUw5XhhKihmaDacU2GiR0Ohcc4cZ+Kq3AjlEnEeRSazLs6/9b/kh4eTC+hngE3QQD7Yyclxsrf3cpxsPXn+cFdenF9aqlBXMXaDiEyfyfawBz2RqC/O9WF1ysacOpytlUSoqNrtfbS642+4D4CS9V3xb4u8P/ACI4O810efRu6KsC0QnjHJGaq4IOGUjWTo/YDZDB3xSIxcGyNlWcTucb4T3in/3IaueNrZyX0lGOrWndstOr+w21UlVFokILjJLFhPukbVY8OmwNQ3nZgNJNmKDccusSb4UIe+gtkI+9/bSLJDjqn763f5CQ5TLApmICkqwR0QnUPKZFIUnoozWcQuRbC0Km02knj0tPYx63furGs3x/iPnz83zJDVNtdP3QAAAABJRU5ErkJggg==)](https://usegalaxy.eu/root?tool_id=deeptools_multi_bam_summary)
65

76
## User-friendly tools for exploring deep-sequencing data
87

deeptools/_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.0'
5+
__version__ = '3.5.1'

deeptools/bamPEFragmentSize.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def main(args=None):
341341

342342
if args.plotFileFormat == 'plotly':
343343
fig = go.Figure()
344-
fig['data'] = data
344+
fig.add_traces(data)
345345
fig['layout']['yaxis1'].update(title='Frequency')
346346
fig['layout']['xaxis1'].update(title='Fragment Length')
347347
fig['layout'].update(title=args.plotTitle)

deeptools/computeGCBias.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def plotlyGCbias(file_name, frequencies, reads_per_gc, region_size):
571571
x = np.linspace(0, 1, frequencies.shape[0])
572572
trace = go.Scatter(x=x, y=np.log2(frequencies[:, 2]), xaxis='x2', yaxis='y2', showlegend=False, line=dict(color='rgb(107,174,214)'))
573573
data.append(trace)
574-
fig['data'] = data
574+
fig.add_traces(data)
575575
fig['layout']['annotations'] = annos
576576
py.plot(fig, filename=file_name, auto_open=False)
577577

deeptools/computeMatrixOperations.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def parse_arguments():
7373
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
7474
parents=[infoArgs(), relabelArgs()],
7575
help="Change sample and/or group label information",
76-
usage='An example usage is:\n computeMatrixOperations relabel -m input.mat.gz -o output.mat.gz --samples "sample 1" "sample 2"\n\n')
76+
usage='An example usage is:\n computeMatrixOperations relabel -m input.mat.gz -o output.mat.gz --sampleLabels "sample 1" "sample 2"\n\n')
7777

7878
# subset
7979
subparsers.add_parser(
@@ -795,10 +795,9 @@ def main(args=None):
795795
hm = heatmapper.heatmapper()
796796
if not isinstance(args.matrixFile, list):
797797
hm.read_matrix_file(args.matrixFile)
798-
799798
if args.command == 'info':
800799
printInfo(hm)
801-
if args.command == 'dataRange':
800+
elif args.command == 'dataRange':
802801
printDataRange(hm)
803802
elif args.command == 'subset':
804803
sIdx = getSampleBounds(args, hm)

deeptools/correlation.py

100644100755
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import sys
22
import itertools
3+
import copy
34
import numpy as np
45
import scipy.cluster.hierarchy as sch
56
import scipy.stats
@@ -291,7 +292,7 @@ def plot_correlation(self, plot_filename, plot_title='', vmax=None,
291292
link_color_func=lambda k: 'darkred')
292293
axdendro.set_xticks([])
293294
axdendro.set_yticks([])
294-
cmap = plt.get_cmap(colormap)
295+
cmap = copy.copy(plt.get_cmap(colormap))
295296

296297
# this line simply makes a new cmap, based on the original
297298
# colormap that goes from 0.0 to 0.9
@@ -421,7 +422,7 @@ def plotly_scatter(self, plot_filename, corr_matrix, plot_title='', minXVal=None
421422
data[-1]['colorbar'].update(title="log10(instances per bin)", titleside="right")
422423
data[-1].update(showscale=True)
423424

424-
fig['data'] = data
425+
fig.add_traces(data)
425426
fig['layout'].update(title=plot_title, showlegend=False, annotations=annos)
426427

427428
offline.plot(fig, filename=plot_filename, auto_open=False)
@@ -588,7 +589,7 @@ def plotly_pca(self, plotFile, Wt, pvar, PCs, eigenvalues, cols, plotTitle):
588589
annos.append({'yanchor': 'bottom', 'xref': 'paper', 'xanchor': 'center', 'yref': 'paper', 'text': 'PCA', 'y': 1.0, 'x': 0.25, 'font': {'size': 16}, 'showarrow': False})
589590
annos.append({'yanchor': 'bottom', 'xref': 'paper', 'xanchor': 'center', 'yref': 'paper', 'text': 'Scree plot', 'y': 1.0, 'x': 0.75, 'font': {'size': 16}, 'showarrow': False})
590591

591-
fig['data'] = data
592+
fig.add_traces(data)
592593
fig['layout']['annotations'] = annos
593594
offline.plot(fig, filename=plotFile, auto_open=False)
594595

deeptools/correlation_heatmap.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import scipy.cluster.hierarchy as sch
77
from matplotlib import rcParams
88
import matplotlib.colors as pltcolors
9+
import copy
910

1011
rcParams['pdf.fonttype'] = 42
1112
rcParams['svg.fonttype'] = 'none'
@@ -43,7 +44,7 @@ def plot_correlation(corr_matrix, labels, plotFileName, vmax=None,
4344
link_color_func=lambda k: 'darkred')
4445
axdendro.set_xticks([])
4546
axdendro.set_yticks([])
46-
cmap = plt.get_cmap(colormap)
47+
cmap = copy.copy(plt.get_cmap(colormap))
4748

4849
# this line simply makes a new cmap, based on the original
4950
# colormap that goes from 0.0 to 0.9

deeptools/plotCoverage.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def main(args=None):
320320
# Don't clip plots
321321
y_max = max(y_max)
322322
if args.plotFileFormat == "plotly":
323-
fig['data'] = data
323+
fig.add_traces(data)
324324
fig['layout']['yaxis1'].update(range=[0.0, min(1, y_max + (y_max * 0.10))])
325325
fig['layout']['yaxis2'].update(range=[0.0, 1.0])
326326
py.plot(fig, filename=args.plotFile, auto_open=False)

0 commit comments

Comments
 (0)