Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/consistency-basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def plotConsistency(
)

fig = go.Figure(data=data, layout=layout)
plotly.offline.plot(fig, filename=outfile, auto_open=show, show_link=False)
plotly.offline.plot(fig, filename=outfile, auto_open=show)


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion bin/consistency-heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def plotConsistency(
layout = go.Layout(layoutDict)

fig = go.Figure(data=data, layout=layout)
plotly.offline.plot(fig, filename=outfile, auto_open=show, show_link=False)
plotly.offline.plot(fig, filename=outfile, auto_open=show)


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion bin/multiple-significant-base-frequencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def plotScores(sampleData, outfile):

layout = go.Layout(xaxis=xaxis, yaxis=yaxis)
fig = go.Figure(data=data, layout=layout)
plotly.offline.plot(fig, filename=outfile, show_link=False)
plotly.offline.plot(fig, filename=outfile)


if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "midtools"
version = "1.2.3"
version = "1.3.0"
description = "Command line scripts and Python classes for detecting multiple infections from NGS reads."
readme = "README.md"
license = "MIT"
Expand All @@ -28,7 +28,7 @@ classifiers = [
dependencies = [
"colorlover>=0.3.0",
"dark-matter>=7.1.19",
"plotly>=6.6.0",
"plotly>=7.0.0",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd still recommend using ~=, otherwise you'll have the same problem again when plotly 8 is released.

]

[project.urls]
Expand Down
16 changes: 8 additions & 8 deletions src/midtools/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def plotSAM(
hovermode="closest",
)
fig = go.Figure(data=data, layout=layout)
plotly.offline.plot(fig, filename=str(outfile), auto_open=show, show_link=False)
plotly.offline.plot(fig, filename=str(outfile), auto_open=show)


def plotAllReferencesSAM(
Expand Down Expand Up @@ -312,7 +312,7 @@ def plotAllReferencesSAM(

fig.update_layout(legend_title_text="Genotype (total reads)")

plotly.offline.plot(fig, filename=str(outfile), auto_open=show, show_link=False)
plotly.offline.plot(fig, filename=str(outfile), auto_open=show)


def _plotSortedMaxBaseFrequencies(
Expand Down Expand Up @@ -417,7 +417,7 @@ def _plotSortedMaxBaseFrequencies(
},
)
fig = go.Figure(data=data, layout=layout)
plotly.offline.plot(fig, filename=str(outfile), auto_open=show, show_link=False)
plotly.offline.plot(fig, filename=str(outfile), auto_open=show)
return frequencyInfo


Expand Down Expand Up @@ -516,7 +516,7 @@ def _plotBaseFrequenciesEntropy(
},
)
fig = go.Figure(data=data, layout=layout)
plotly.offline.plot(fig, filename=str(outfile), auto_open=show, show_link=False)
plotly.offline.plot(fig, filename=str(outfile), auto_open=show)
return entropyInfo


Expand Down Expand Up @@ -602,7 +602,7 @@ def _plotBaseFrequenciesAllOffsets(
)

fig = go.Figure(data=data, layout=layout)
plotly.offline.plot(fig, filename=str(outfile), auto_open=show, show_link=False)
plotly.offline.plot(fig, filename=str(outfile), auto_open=show)


def _plotBaseFrequencies(
Expand Down Expand Up @@ -674,7 +674,7 @@ def _plotBaseFrequencies(
)

fig = go.Figure(data=data, layout=layout)
plotly.offline.plot(fig, filename=str(outfile), auto_open=show, show_link=False)
plotly.offline.plot(fig, filename=str(outfile), auto_open=show)


def plotBaseFrequencies(
Expand Down Expand Up @@ -843,7 +843,7 @@ def plotCoverageAndSignificantLocations(
}
)

plotly.offline.plot(fig, filename=str(outfile), auto_open=show, show_link=False)
plotly.offline.plot(fig, filename=str(outfile), auto_open=show)


def plotConsistentComponents(
Expand Down Expand Up @@ -1125,4 +1125,4 @@ def offsetsToLocationsStr(offsets: list[int]) -> str:
)

fig = go.Figure(data=data, layout=layout)
plotly.offline.plot(fig, filename=str(outfile), auto_open=show, show_link=False)
plotly.offline.plot(fig, filename=str(outfile), auto_open=show)
120 changes: 60 additions & 60 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.