Skip to content

Commit

Permalink
Fix blank muts
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery committed Oct 4, 2024
1 parent 3cf4438 commit 7053fed
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tsbrowse/pages/mutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from .. import config
from ..plot_helpers import center_plot_title
from ..plot_helpers import customise_ticks
from ..plot_helpers import filter_points
from ..plot_helpers import hover_points
from ..plot_helpers import make_hist_on_axis
from ..plot_helpers import selected_hist
Expand All @@ -35,16 +34,14 @@ def make_muts_panel(log_y, tsm):

range_stream = hv.streams.RangeXY(source=points)

filtered = points.apply(filter_points, streams=[range_stream])

tooltips = [
("ID", "@id"),
("parents", "@num_parents"),
("descendants", "@num_descendants"),
("inheritors", "@num_inheritors"),
]
hover = HoverTool(tooltips=tooltips)
filtered.opts(
points.opts(
color="num_inheritors",
alpha="num_inheritors",
cmap="BuGn",
Expand All @@ -53,9 +50,9 @@ def make_muts_panel(log_y, tsm):
tools=[hover, "tap"],
)

hover = filtered.apply(hover_points)
hover = points.apply(hover_points)
shaded = hd.datashade(
filtered,
points,
width=400,
height=400,
streams=[range_stream],
Expand Down

0 comments on commit 7053fed

Please sign in to comment.